MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_authors

Function get_authors

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

Source from the content-addressed store, hash-verified

183 return bool(issue.get('pull_request', {}).get('html_url', None))
184
185def get_authors(pr):
186 print("getting authors for #%i" % pr['number'], file=sys.stderr)
187 h = make_auth_header()
188 r = requests.get(pr['commits_url'], headers=h)
189 r.raise_for_status()
190 commits = r.json()
191 authors = []
192 for commit in commits:
193 author = commit['commit']['author']
194 authors.append(f"{author['name']} <{author['email']}>")
195 return authors
196
197# encode_multipart_formdata is from urllib3.filepost
198# The only change is to iter_fields, to enforce S3's required key ordering

Callers 1

github_stats.pyFile · 0.90

Calls 2

make_auth_headerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…