Created
July 23, 2018 16:04
-
-
Save dgilperez/b4341063c9cd2e2f0a3bf453558b7ade to your computer and use it in GitHub Desktop.
List PRs with author
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $> 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