Skip to content

Commit 4954bbc

Browse files
nickbroonnejch
authored andcommitted
feat: add pipeline status as Enum
https://docs.gitlab.com/ee/api/pipelines.html
1 parent 7b864b8 commit 4954bbc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

gitlab/const.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@ class DetailedMergeStatus(GitlabEnum):
7272
POLICIES_DENIED: str = "policies_denied"
7373

7474

75+
# https://docs.gitlab.com/ee/api/pipelines.html
76+
class PipelineStatus(GitlabEnum):
77+
CREATED: str = "created"
78+
WAITING_FOR_RESOURCE: str = "waiting_for_resource"
79+
PREPARING: str = "preparing"
80+
PENDING: str = "pending"
81+
RUNNING: str = "running"
82+
SUCCESS: str = "success"
83+
FAILED: str = "failed"
84+
CANCELED: str = "canceled"
85+
SKIPPED: str = "skipped"
86+
MANUAL: str = "manual"
87+
SCHEDULED: str = "scheduled"
88+
89+
7590
DEFAULT_URL: str = "https://gitlab.com"
7691

7792
NO_ACCESS = AccessLevel.NO_ACCESS.value

0 commit comments

Comments
 (0)