MCPcopy
hub / github.com/commaai/openpilot / get_pr_number

Method get_pr_number

tools/lib/github_utils.py:79–82  ·  view source on GitHub ↗
(self, pr_branch)

Source from the content-addressed store, hash-verified

77 return r.json()['sha'] if r.ok else None
78
79 def get_pr_number(self, pr_branch):
80 github_path = f"commits/{pr_branch}/pulls"
81 r = self.api_call(github_path)
82 return r.json()[0]['number']
83
84 def get_bucket_link(self, bucket):
85 return f'https://raw.githubusercontent.com/{self.OWNER}/{self.DATA_REPO}/refs/heads/{bucket}'

Callers 2

comment_on_prMethod · 0.95
comment_replay_reportFunction · 0.80

Calls 1

api_callMethod · 0.95

Tested by

no test coverage detected