Skip to content

Instantly share code, notes, and snippets.

@sigmavirus24
Created July 7, 2015 12:47
Show Gist options
  • Save sigmavirus24/055c723738ae4e052f42 to your computer and use it in GitHub Desktop.
Save sigmavirus24/055c723738ae4e052f42 to your computer and use it in GitHub Desktop.
Closed issues attached to a milestone with github3.py
>>> 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