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

Function get_pull_request_files

tools/gh_api.py:111–118  ·  view source on GitHub ↗

get list of files in a pull request

(project, num, auth=False)

Source from the content-addressed store, hash-verified

109 return json.loads(response.text, object_hook=Obj)
110
111def 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
120element_pat = re.compile(r'<(.+?)>')
121rel_pat = re.compile(r'rel=[\'"](\w+)[\'"]&#x27;)

Callers

nothing calls this directly

Calls 2

make_auth_headerFunction · 0.85
get_paged_requestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…