mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Co-authored-by: Aleksei Fedotov <aleksei@fedotov.email>
This commit is contained in:
co-authored by
Aleksei Fedotov
parent
17b44d8857
commit
437ff8452a
@@ -1,6 +1,7 @@
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
||||
# Copyright 2022 Aleksei Fedotov <aleksei@fedotov.email> #
|
||||
# #
|
||||
# This file is part of PyGithub. #
|
||||
# http://pygithub.readthedocs.io/ #
|
||||
@@ -22,6 +23,7 @@
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
import github.Artifact
|
||||
import github.GithubObject
|
||||
import github.PullRequest
|
||||
|
||||
@@ -170,6 +172,15 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._artifacts_url)
|
||||
return self._artifacts_url.value
|
||||
|
||||
def get_artifacts(self):
|
||||
return github.PaginatedList.PaginatedList(
|
||||
github.Artifact.Artifact,
|
||||
self._requester,
|
||||
self._artifacts_url.value,
|
||||
None,
|
||||
list_item="artifacts",
|
||||
)
|
||||
|
||||
@property
|
||||
def cancel_url(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user