Skip to content

Instantly share code, notes, and snippets.

@bilderbuchi
Created October 2, 2012 15:30
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 bilderbuchi/3820182 to your computer and use it in GitHub Desktop.
Save bilderbuchi/3820182 to your computer and use it in GitHub Desktop.
How to get issues closed since a certain date with PyGithub
# 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