Sha256: dbc9f9a30cd29128964704072f2eb4b53d9820339e9ed57678c97f0fb99c1046

Contents?: true

Size: 615 Bytes

Versions: 31

Compression:

Stored size: 615 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'lib', 'octopi')

include Octopi

authenticated :trace => "curl" do |g|
  repo = g.repository("api-labrat")
  
  issue = repo.open_issue :title => "Sample issue", 
    :body => "This issue was opened using GitHub API and Octopi"
  puts "Successfully opened issue \##{issue.number}"
  
  # # labels = issue.add_label "Working", "Todo"
  # # puts "Labels: #{labels.inspect}"
  
  issue.close
  puts "Successfully closed issue \##{issue.number}"
  
  # labels = issue.remove_label "Todo"
  # puts "Successfully removed label Todo. Current labels: #{labels.inspect}"
end

Version data entries

31 entries across 31 versions & 7 rubygems

Version Path
ddollar-octopi-0.0.13 examples/authenticated.rb
fcoury-octopi-0.0.11 examples/authenticated.rb
fcoury-octopi-0.1.0 examples/authenticated.rb
philnash-octopi-0.0.11 examples/authenticated.rb
philnash-octopi-0.0.12 examples/authenticated.rb
octopi-0.4.5 examples/authenticated.rb
octopi-0.4.4 examples/authenticated.rb
octopi-0.4.2 examples/authenticated.rb
octopi-0.4.1 examples/authenticated.rb
octopi-0.4.0 examples/authenticated.rb
octopi-0.3.0 examples/authenticated.rb
dcuddeback-octopi-0.2.12 examples/authenticated.rb
dcuddeback-octopi-0.2.11 examples/authenticated.rb
dcuddeback-octopi-0.2.9 examples/authenticated.rb
dcuddeback-octopi-0.2.8 examples/authenticated.rb
devver-octopi-0.2.14 examples/authenticated.rb
tpitale-octopi-0.3.0 examples/authenticated.rb
devver-octopi-0.2.13 examples/authenticated.rb
devver-octopi-0.2.12 examples/authenticated.rb
octopi-0.2.8 examples/authenticated.rb