(pr)
| 193 | return bool(issue.get('pull_request', {}).get('html_url', None)) |
| 194 | |
| 195 | def 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 |
no test coverage detected