Last active
March 2, 2023 12:58
-
-
Save nhomar/41a43cbb9c2505bab3f6 to your computer and use it in GitHub Desktop.
Get the pull requests to a branch. With PyGithub
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
from github import Github | |
g = Github("user", "password") | |
repo = g.get_repo('organizacion/repo') | |
pulls = repo.get_pulls() | |
for p in pulls: | |
print p.merged | |
print p.base.sha | |
print p.id | |
print dir(p) |
Author
nhomar
commented
Jul 29, 2014
This is great! Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment