Skip to content

Commit

Permalink
feat: add pipeline status as Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbroon authored and nejch committed Nov 23, 2023
1 parent 7b864b8 commit 4954bbc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gitlab/const.py
Expand Up @@ -72,6 +72,21 @@ class DetailedMergeStatus(GitlabEnum):
POLICIES_DENIED: str = "policies_denied"


# https://docs.gitlab.com/ee/api/pipelines.html
class PipelineStatus(GitlabEnum):
CREATED: str = "created"
WAITING_FOR_RESOURCE: str = "waiting_for_resource"
PREPARING: str = "preparing"
PENDING: str = "pending"
RUNNING: str = "running"
SUCCESS: str = "success"
FAILED: str = "failed"
CANCELED: str = "canceled"
SKIPPED: str = "skipped"
MANUAL: str = "manual"
SCHEDULED: str = "scheduled"


DEFAULT_URL: str = "https://gitlab.com"

NO_ACCESS = AccessLevel.NO_ACCESS.value
Expand Down

0 comments on commit 4954bbc

Please sign in to comment.