Add class Artifact (#2313) (#2319)

Co-authored-by: Aleksei Fedotov <aleksei@fedotov.email>
This commit is contained in:
Aleksei Fedotov
2022-10-25 11:02:33 +08:00
committed by GitHub
co-authored by Aleksei Fedotov
parent 17b44d8857
commit 437ff8452a
12 changed files with 432 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
from datetime import date, datetime
from typing import Any, Dict, List, Optional, Union, overload
from github.Artifact import Artifact
from github.AuthenticatedUser import AuthenticatedUser
from github.Branch import Branch
from github.CheckRun import CheckRun
@@ -305,6 +306,8 @@ class Repository(CompletableGithubObject):
def get_archive_link(
self, archive_format: str, ref: Union[str, _NotSetType] = ...
) -> str: ...
def get_artifact(self) -> Artifact: ...
def get_artifacts(self) -> PaginatedList[Artifact]: ...
def get_assignees(self) -> PaginatedList[NamedUser]: ...
def get_branch(self, branch: str) -> Branch: ...
def rename_branch(self, branch: Union[str, Branch], new_name: str) -> bool: ...