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