Skip to content

Commit

Permalink
$ github issues [open|closed] now supports private repositories (i.e.…
Browse files Browse the repository at this point in the history
… personal and organization) Fixes defunkt#58 on defunkt
  • Loading branch information
ghuntley authored and caifara committed Apr 21, 2012
1 parent 8ef0c30 commit 4b9d891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commands/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,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|
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/issues.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b9d891

Please sign in to comment.