mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Add support for Workflow Runs (#1583)
To build on the previous work supporting querying Workflows for GitHub Actions, add a class and relevant methods to support querying runs of a workflow.
This commit is contained in:
+13
-2
@@ -1,12 +1,23 @@
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict
|
||||
from typing import Any, Dict, Union
|
||||
|
||||
from github.GithubObject import CompletableGithubObject
|
||||
from github.Branch import Branch
|
||||
from github.GithubObject import CompletableGithubObject, _NotSetType
|
||||
from github.NamedUser import NamedUser
|
||||
from github.PaginatedList import PaginatedList
|
||||
from github.WorkflowRun import WorkflowRun
|
||||
|
||||
class Workflow(CompletableGithubObject):
|
||||
def __repr__(self) -> str: ...
|
||||
def _initAttributes(self) -> None: ...
|
||||
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
||||
def get_runs(
|
||||
self,
|
||||
actor: Union[str, NamedUser, _NotSetType],
|
||||
branch: Union[str, Branch, _NotSetType],
|
||||
event: Union[str, _NotSetType],
|
||||
status: Union[str, _NotSetType]
|
||||
) -> PaginatedList[WorkflowRun]: ...
|
||||
@property
|
||||
def id(self) -> int: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user