MCPcopy
hub / github.com/pytorch/vision / run_query

Function run_query

scripts/release_notes/retrieve_prs_data.py:94–99  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

92
93
94def run_query(query):
95 request = requests.post("https://api.github.com/graphql", json={"query": query}, headers=headers)
96 if request.status_code == 200:
97 return request.json()
98 else:
99 raise Exception(f"Query failed to run by returning code of {request.status_code}. {query}")
100
101
102def gh_labels(pr_number):

Callers 1

gh_labelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…