MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / repository

Method repository

github/Issue.py:316–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

314
315 @property
316 def repository(self) -> Repository:
317 self._completeIfNotSet(self._repository)
318 if is_undefined(self._repository):
319 # The repository was not set automatically, so it must be looked up by url.
320 repo_url = "/".join(self.url.split("/")[:-2])
321 self._repository = github.GithubObject._ValuedAttribute(
322 github.Repository.Repository(self._requester, self._headers, {"url": repo_url}, completed=False)
323 )
324 return self._repository.value
325
326 @property
327 def repository_url(self) -> str:

Callers

nothing calls this directly

Calls 2

is_undefinedFunction · 0.90
_completeIfNotSetMethod · 0.80

Tested by

no test coverage detected