Created
July 7, 2015 12:47
-
-
Save sigmavirus24/055c723738ae4e052f42 to your computer and use it in GitHub Desktop.
Closed issues attached to a milestone with github3.py
This file contains hidden or 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
>>> import github3 | |
>>> r = github3.repository(username, repo_name) | |
>>> milestones = list(r.milestones()) | |
>>> milestone = None | |
>>> for m in milestones: | |
... if m.name == desired_milestone_name: | |
... milestone = m | |
... break | |
... | |
>>> issues = list(r.issues(state='closed', milestone=milestone.number)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment