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

Method get_assets

github/GitRelease.py:381–390  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/releases/{release_id}/assets `_

(self)

Source from the content-addressed store, hash-verified

379 return github.GitReleaseAsset.GitReleaseAsset(self._requester, resp_headers, data, completed=True)
380
381 def get_assets(self) -> PaginatedList[github.GitReleaseAsset.GitReleaseAsset]:
382 """
383 :calls: `GET /repos/{owner}/{repo}/releases/{release_id}/assets <https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#get-a-release-asset>`_
384 """
385 return github.PaginatedList.PaginatedList(
386 github.GitReleaseAsset.GitReleaseAsset,
387 self._requester,
388 f"{self.url}/assets",
389 None,
390 )
391
392 def _useAttributes(self, attributes: dict[str, Any]) -> None:
393 if "assets" in attributes:

Callers 6

setUpMethod · 0.80
testGetReleaseByTagMethod · 0.80
testGetAssetsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected