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

Function get_pull_request

tools/gh_api.py:99–109  ·  view source on GitHub ↗

Return the pull request info for a given PR number.

(project, num, auth=False)

Source from the content-addressed store, hash-verified

97 return response_data['html_url']
98
99def get_pull_request(project, num, auth=False):
100 """Return the pull request info for a given PR number."""
101 url = f"https://api.github.com/repos/{project}/pulls/{num}"
102 if auth:
103 header = make_auth_header()
104 else:
105 header = None
106 print("fetching %s" % url, file=sys.stderr)
107 response = requests.get(url, headers=header)
108 response.raise_for_status()
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"""

Callers 1

split_pullsFunction · 0.90

Calls 2

make_auth_headerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…