From 68e17b02bedf0b26a32c34c6c33383eb35625263 2015-02-13 20:17:38 From: Min RK Date: 2015-02-13 20:17:38 Subject: [PATCH] also fetch closed milestones in gh_api --- diff --git a/tools/gh_api.py b/tools/gh_api.py index 6cea39e..a34e95d 100644 --- a/tools/gh_api.py +++ b/tools/gh_api.py @@ -162,6 +162,7 @@ def get_issues_list(project, auth=False, **params): return pages def get_milestones(project, auth=False, **params): + params.setdefault('state', 'all') url = "https://api.github.com/repos/{project}/milestones".format(project=project) if auth: headers = make_auth_header()