GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add Merge Request merge_status and detailed_merge_status values… · python-gitlab/python-gitlab@e18a424

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • gitlab
    • const.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎gitlab/const.py‎

Copy file name to clipboardExpand all lines: gitlab/const.py
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,34 @@ class SearchScope(GitlabEnum):
5454
PROJECT_NOTES: str = "notes"
5555

5656

57+
# https://archives.docs.gitlab.com/15.5/ee/api/merge_requests.html#single-merge-request-response-notes
58+
class MergeStatus(GitlabEnum):
59+
# depricated since GitLab 15.6, use DetailedMergeStatus instead
60+
UNCHECKED: str = "unchecked"
61+
CHECKING: str = "checking"
62+
CAN_BE_MERGED: str = "can_be_merged"
63+
CANNOT_BE_MERGED: str = "cannot_be_merged"
64+
CANNOT_BE_MERGED_RECHECK: str = "cannot_be_merged_recheck"
65+
66+
67+
# https://docs.gitlab.com/ee/api/merge_requests.html#merge-status
68+
class DetailedMergeStatus(GitlabEnum):
69+
# possible values for the detailed_merge_status field of Merge Requests
70+
BLOCKED_STATUS: str = "blocked_status"
71+
BROKEN_STATUS: str = "broken_status"
72+
CHECKING: str = "checking"
73+
UNCHECKED: str = "unchecked"
74+
CI_MUST_PASS: str = "ci_must_pass"
75+
CI_STILL_RUNNING: str = "ci_still_running"
76+
DISCUSSIONS_NOT_RESOLVED: str = "discussions_not_resolved"
77+
DRAFT_STATUS: str = "draft_status"
78+
EXTERNAL_STATUS_CHECKS: str = "external_status_checks"
79+
MERGEABLE: str = "mergeable"
80+
NOT_APPROVED: str = "not_approved"
81+
NOT_OPEN: str = "not_open"
82+
POLICIES_DENIED: str = "policies_denied"
83+
84+
5785
DEFAULT_URL: str = "https://gitlab.com"
5886

5987
NO_ACCESS = AccessLevel.NO_ACCESS.value

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.