MCPcopy Create free account
hub / github.com/ezyang/ghstack / pull_request

Method pull_request

src/ghstack/github_fake.py:94–102  ·  view source on GitHub ↗
(self, repo: "Repository", number: GitHubNumber)

Source from the content-addressed store, hash-verified

92 raise RuntimeError("unknown repository {}".format(nameWithOwner))
93
94 def pull_request(self, repo: "Repository", number: GitHubNumber) -> "PullRequest":
95 for pr in self.pull_requests.values():
96 if repo.id == pr._repository and pr.number == number:
97 return pr
98 raise RuntimeError(
99 "unrecognized pull request #{} in repository {}".format(
100 number, repo.nameWithOwner
101 )
102 )
103
104 def issue_comment(self, repo: "Repository", comment_id: int) -> "IssueComment":
105 for comment in self.issue_comments.values():

Callers 6

notify_mergedMethod · 0.95
get_pr_reviewersFunction · 0.80
get_pr_labelsFunction · 0.80
pullRequestMethod · 0.80
_update_pullMethod · 0.80
restMethod · 0.80

Calls 1

formatMethod · 0.80

Tested by 2

get_pr_reviewersFunction · 0.64
get_pr_labelsFunction · 0.64