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

Method repository

github/ContentFile.py:184–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182
183 @property
184 def repository(self) -> Repository:
185 if self._repository is NotSet:
186 # The repository was not set automatically, so it must be looked up by url.
187 repo_url = "/".join(self.url.split("/")[:6]) # pragma no cover (Should be covered)
188 self._repository = _ValuedAttribute(
189 github.Repository.Repository(self._requester, self._headers, {"url": repo_url}, completed=False)
190 ) # pragma no cover (Should be covered)
191 return self._repository.value
192
193 @property
194 def sha(self) -> str:

Callers

nothing calls this directly

Calls 1

_ValuedAttributeClass · 0.90

Tested by

no test coverage detected