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

Method get_environments

github/Repository.py:4436–4450  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/environments `_ :rtype: :class:`PaginatedList` of :class:`github.Environment.Environment`

(self)

Source from the content-addressed store, hash-verified

4434 return github.SecretScanAlert.SecretScanAlert(self._requester, headers, data)
4435
4436 def get_environments(self) -> PaginatedList[Environment]:
4437 """
4438 :calls: `GET /repos/{owner}/{repo}/environments <https://docs.github.com/en/rest/reference/deployments#get-all-environments>`_
4439 :rtype: :class:`PaginatedList` of :class:`github.Environment.Environment`
4440 """
4441 return PaginatedList(
4442 github.Environment.Environment,
4443 self._requester,
4444 f"{self.url}/environments",
4445 None,
4446 attributesTransformer=PaginatedList.override_attributes(
4447 {"environments_url": f"/repositories/{self.id}/environments"}
4448 ),
4449 list_item="environments",
4450 )
4451
4452 def get_environment(self, environment_name: str) -> Environment:
4453 """

Callers 1

testGetEnvironmentsMethod · 0.80

Calls 2

PaginatedListClass · 0.90
override_attributesMethod · 0.80

Tested by

no test coverage detected