diff --git a/lib/commands/helpers.rb b/lib/commands/helpers.rb index 487216ae..aca332cd 100644 --- a/lib/commands/helpers.rb +++ b/lib/commands/helpers.rb @@ -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| diff --git a/lib/commands/issues.rb b/lib/commands/issues.rb index e8297dd2..679da8c4 100644 --- a/lib/commands/issues.rb +++ b/lib/commands/issues.rb @@ -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)