Skip to content

Instantly share code, notes, and snippets.

@dgilperez
Created July 23, 2018 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgilperez/b4341063c9cd2e2f0a3bf453558b7ade to your computer and use it in GitHub Desktop.
Save dgilperez/b4341063c9cd2e2f0a3bf453558b7ade to your computer and use it in GitHub Desktop.
List PRs with author
# $> gem install octokit
# $> irb
require 'octokit'
client = Octokit::Client.new(login: 'whoami', password: 'whatamidoinghere')
client.pull_requests('user/repo_name', state: 'all', per_page: 100).each {|pr| p [pr.title, pr.body, pr.user.login].join("\n")};nil
# more pages?
# client.pull_requests('user/repo_name', state: 'all', per_page: 100, page: 2).each {|pr| p [pr.title, pr.body, pr.user.login].join("\n")};nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment