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

Function get_authors

tools/gh_api.py:195–205  ·  view source on GitHub ↗
(pr)

Source from the content-addressed store, hash-verified

193 return bool(issue.get('pull_request', {}).get('html_url', None))
194
195def get_authors(pr):
196 print("getting authors for #%i" % pr['number'], file=sys.stderr)
197 h = make_auth_header()
198 r = requests.get(pr['commits_url'], headers=h)
199 r.raise_for_status()
200 commits = r.json()
201 authors = []
202 for commit in commits:
203 author = commit['commit']['author']
204 authors.append("%s <%s>" % (author['name'], author['email']))
205 return authors
206
207# encode_multipart_formdata is from urllib3.filepost
208# The only change is to iter_fields, to enforce S3's required key ordering

Callers 1

github_stats.pyFile · 0.90

Calls 1

make_auth_headerFunction · 0.85

Tested by

no test coverage detected