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

Method pullRequests

src/ghstack/github_fake.py:209–217  ·  view source on GitHub ↗
(self, info: GraphQLResolveInfo)

Source from the content-addressed store, hash-verified

207 return github_state(info).pull_request(self, number)
208
209 def pullRequests(self, info: GraphQLResolveInfo) -> "PullRequestConnection":
210 return PullRequestConnection(
211 nodes=list(
212 filter(
213 lambda pr: self == pr.repository(info),
214 github_state(info).pull_requests.values(),
215 )
216 )
217 )
218
219 # TODO: This should take which repository the ref is in
220 # This only works if you have upstream_sh

Callers

nothing calls this directly

Calls 3

github_stateFunction · 0.85
repositoryMethod · 0.45

Tested by

no test coverage detected