:calls: `GET /repos/{owner}/{repo}/actions/artifacts `_ :param name: str :rtype: :class:`PaginatedList` of :class:`github.Artifact.Artifact`
(self, name: Opt[str] = NotSet)
| 4248 | return github.CheckRun.CheckRun(self._requester, url=url) |
| 4249 | |
| 4250 | def get_artifacts(self, name: Opt[str] = NotSet) -> PaginatedList[Artifact]: |
| 4251 | """ |
| 4252 | :calls: `GET /repos/{owner}/{repo}/actions/artifacts <https://docs.github.com/en/rest/actions/artifacts#list-artifacts-for-a-repository>`_ |
| 4253 | :param name: str |
| 4254 | :rtype: :class:`PaginatedList` of :class:`github.Artifact.Artifact` |
| 4255 | """ |
| 4256 | |
| 4257 | assert is_optional(name, str), name |
| 4258 | |
| 4259 | param = {key: value for key, value in {"name": name}.items() if is_defined(value)} |
| 4260 | |
| 4261 | return PaginatedList( |
| 4262 | github.Artifact.Artifact, |
| 4263 | self._requester, |
| 4264 | f"{self.url}/actions/artifacts", |
| 4265 | firstParams=param, |
| 4266 | list_item="artifacts", |
| 4267 | ) |
| 4268 | |
| 4269 | def get_artifact(self, artifact_id: int) -> Artifact: |
| 4270 | """ |
no test coverage detected