Permalink
Browse files

$ github issues [open|closed] now supports private repositories (i.e.…

… personal and organization) Fixes #58 on defunkt
  • Loading branch information...
ghuntley committed Jun 22, 2011
1 parent 594ac58 commit 406db4a111373541efe10cdea892047ab6c63d46
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/commands/helpers.rb
  2. +1 −1 lib/commands/issues.rb
View
@@ -257,7 +257,7 @@
end
helper :list_issues_for do |user, state|
- "https://github.com/api/v2/yaml/issues/list/#{user}/#{project}/#{state}"
+ `curl -s -L -F 'login=#{github_user}' -F 'token=#{github_token}' https://github.com/api/v2/yaml/issues/list/#{user}/#{project}/#{state}`
end
helper :has_launchy? do |blk|
View
@@ -7,7 +7,7 @@
case command
when 'open', 'closed'
- report = YAML.load(open(@helper.list_issues_for(user, command)))
+ report = YAML.load(@helper.list_issues_for(user, command))
@helper.print_issues(report['issues'], options)
when 'web'
helper.open helper.issues_page_for(user)

0 comments on commit 406db4a

Please sign in to comment.