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

Method get_key

github/Repository.py:3295–3303  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/keys/{key_id} `_ :param id: integer :rtype: :class:`github.RepositoryKey.RepositoryKey`

(self, id: int)

Source from the content-addressed store, hash-verified

3293 )
3294
3295 def get_key(self, id: int) -> RepositoryKey:
3296 """
3297 :calls: `GET /repos/{owner}/{repo}/keys/{key_id} <https://docs.github.com/en/rest/reference/repos#deploy-keys>`_
3298 :param id: integer
3299 :rtype: :class:`github.RepositoryKey.RepositoryKey`
3300 """
3301 assert isinstance(id, int), id
3302 url = f"{self.url}/keys/{id}"
3303 return github.RepositoryKey.RepositoryKey(self._requester, url=url)
3304
3305 def get_keys(self) -> PaginatedList[RepositoryKey]:
3306 """

Callers 3

setUpMethod · 0.45
testLazyAttributesMethod · 0.45
setUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected