get list of files in a pull request
(project, num, auth=False)
| 109 | return json.loads(response.text, object_hook=Obj) |
| 110 | |
| 111 | def get_pull_request_files(project, num, auth=False): |
| 112 | """get list of files in a pull request""" |
| 113 | url = f"https://api.github.com/repos/{project}/pulls/{num}/files" |
| 114 | if auth: |
| 115 | header = make_auth_header() |
| 116 | else: |
| 117 | header = None |
| 118 | return get_paged_request(url, headers=header) |
| 119 | |
| 120 | element_pat = re.compile(r'<(.+?)>') |
| 121 | rel_pat = re.compile(r'rel=[\'"](\w+)[\'"]') |
nothing calls this directly
no test coverage detected
searching dependent graphs…