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

Method get_artifact

github/Repository.py:4269–4277  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id} `_ :param artifact_id: int :rtype: :class:`github.Artifact.Artifact`

(self, artifact_id: int)

Source from the content-addressed store, hash-verified

4267 )
4268
4269 def get_artifact(self, artifact_id: int) -> Artifact:
4270 """
4271 :calls: `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id} <https://docs.github.com/en/rest/actions/artifacts#get-an-artifact>`_
4272 :param artifact_id: int
4273 :rtype: :class:`github.Artifact.Artifact`
4274 """
4275 assert isinstance(artifact_id, int), artifact_id
4276 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/actions/artifacts/{artifact_id}")
4277 return github.Artifact.Artifact(self._requester, headers, data)
4278
4279 def get_codescan_alerts(
4280 self,

Callers 3

testDeleteMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected