(pr)
| 183 | return bool(issue.get('pull_request', {}).get('html_url', None)) |
| 184 | |
| 185 | def 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 |
no test coverage detected
searching dependent graphs…