Skip to content

Instantly share code, notes, and snippets.

@dgilperez
Created July 23, 2018 16:04
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