@@ -54,6 +54,34 @@ class SearchScope(GitlabEnum): |
54 | 54 | PROJECT_NOTES: str = "notes" |
55 | 55 |
|
56 | 56 |
|
| 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 | + |
57 | 85 | DEFAULT_URL: str = "https://gitlab.com" |
58 | 86 |
|
59 | 87 | NO_ACCESS = AccessLevel.NO_ACCESS.value |
|