MCPcopy Create free account
hub / github.com/ipython/ipython / get_pull_request_files

Function get_pull_request_files

tools/gh_api.py:120–127  ·  view source on GitHub ↗

get list of files in a pull request

(project, num, auth=False)

Source from the content-addressed store, hash-verified

118 return json.loads(response.text, object_hook=Obj)
119
120def get_pull_request_files(project, num, auth=False):
121 """get list of files in a pull request"""
122 url = "https://api.github.com/repos/{project}/pulls/{num}/files".format(project=project, num=num)
123 if auth:
124 header = make_auth_header()
125 else:
126 header = None
127 return get_paged_request(url, headers=header)
128
129element_pat = re.compile(r'<(.+?)>')
130rel_pat = re.compile(r'rel=[\'"](\w+)[\'"]&#x27;)

Callers 1

backport_prFunction · 0.90

Calls 3

make_auth_headerFunction · 0.85
get_paged_requestFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected