From 4954bbcd7e8433aac672405f3f4741490cb4561a Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Thu, 23 Nov 2023 11:38:13 +0000 Subject: [PATCH] feat: add pipeline status as Enum https://docs.gitlab.com/ee/api/pipelines.html --- gitlab/const.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gitlab/const.py b/gitlab/const.py index fb9ede7b5..0600d710c 100644 --- a/gitlab/const.py +++ b/gitlab/const.py @@ -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