Created
October 2, 2012 15:30
-
-
Save bilderbuchi/3820182 to your computer and use it in GitHub Desktop.
How to get issues closed since a certain date 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
# Get list of closed issues since a certain date | |
# Best pipe the results into a file and view with something tab-sensitive | |
from github import Github | |
import datetime | |
G = Github() | |
Repo=G.get_user('openframeworks').get_repo('openFrameworks') | |
Closed_Issues=Repo.get_issues(state='closed') | |
startdate=datetime.datetime(2012,5,28,0,0) # date of OF 0071 release | |
for c in Closed_Issues: | |
if c.closed_at > startdate: | |
if c.pull_request.diff_url: | |
PR=True # Is the issue a PR or not? | |
else: | |
PR=False | |
print c.number,'\t',str(c.title),'\t',PR,'\t',c.html_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment