MCPcopy Create free account
hub / github.com/ceph/ceph / GithubBearerAuth

Class GithubBearerAuth

src/script/ptl-tool.py:280–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 raise argparse.ArgumentTypeError("Audit labels must be 'queue', 'passed,failed', or 'queue,passed,failed'")
279
280class GithubBearerAuth(requests.auth.AuthBase):
281 def __call__(self, r):
282 if GITHUB_TOKEN:
283 r.headers['Authorization'] = f'Bearer {GITHUB_TOKEN}'
284 r.headers['Accept'] = 'application/vnd.github.v3+json'
285 return r
286
287_PR_CACHE = {}
288def get_pr_info(session, pr):

Callers 5

getFunction · 0.85
post_draft_reviewFunction · 0.85
manage_qa_trackerFunction · 0.85
build_branchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected