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

Method node

src/ghstack/github_fake.py:301–309  ·  view source on GitHub ↗
(self, info: GraphQLResolveInfo, id: GraphQLId)

Source from the content-addressed store, hash-verified

299 return github_state(info).repository(owner, name)
300
301 def node(self, info: GraphQLResolveInfo, id: GraphQLId) -> Node:
302 if id in github_state(info).repositories:
303 return github_state(info).repositories[id]
304 elif id in github_state(info).pull_requests:
305 return github_state(info).pull_requests[id]
306 elif id in github_state(info).issue_comments:
307 return github_state(info).issue_comments[id]
308 else:
309 raise RuntimeError("unknown id {}".format(id))
310
311
312with open(

Callers

nothing calls this directly

Calls 2

github_stateFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected