MCPcopy Create free account
hub / github.com/ipython/ipython / get_milestones

Function get_milestones

tools/gh_api.py:173–181  ·  view source on GitHub ↗
(project, auth=False, **params)

Source from the content-addressed store, hash-verified

171 return pages
172
173def get_milestones(project, auth=False, **params):
174 params.setdefault('state', 'all')
175 url = "https://api.github.com/repos/{project}/milestones".format(project=project)
176 if auth:
177 headers = make_auth_header()
178 else:
179 headers = None
180 milestones = get_paged_request(url, headers=headers, **params)
181 return milestones
182
183def get_milestone_id(project, milestone, auth=False, **params):
184 milestones = get_milestones(project, auth=auth, **params)

Callers 1

get_milestone_idFunction · 0.85

Calls 3

make_auth_headerFunction · 0.85
get_paged_requestFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected