Skip to content

Commit

Permalink
Add missing enum values for detailed Merge Request status (#20)
Browse files Browse the repository at this point in the history
* Add missing enum values for detailed Merge Request status

* Add `requested_changes` as possible detailed merge status value

INFO: This value does not exist in https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/graphql/types/merge_requests/detailed_merge_status_enum.rb but our Gitlab instance sends it, and we have many exceptions "Could not cast enum: `requested_changes` into a `Oneduo\LaravelGitlabWebhookClient\Enums\DetailedMergeStatus`".
  • Loading branch information
Wirone authored Sep 26, 2024
1 parent f87c446 commit 78e802a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Enums/DetailedMergeStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,28 @@
*/
enum DetailedMergeStatus: string
{
case APPROVALS_SYNCING = 'approvals_syncing';
case BLOCKED_STATUS = 'blocked_status';
case BROKEN_STATUS = 'broken_status';
case CHECKING = 'checking';
case CI_MUST_PASS = 'ci_must_pass';
case CI_STILL_RUNNING = 'ci_still_running';
case COMMITS_STATUS = 'commits_status';
case CONFLICT = 'conflict';
case DISCUSSIONS_NOT_RESOLVED = 'discussions_not_resolved';
case DRAFT_STATUS = 'draft_status';
case EXTERNAL_STATUS_CHECKS = 'external_status_checks';
case JIRA_ASSOCIATION_MISSING = 'jira_association_missing';
case LOCKED_PATHS = 'locked_paths';
case LOCKED_LFS_FILES = 'locked_lfs_files';
case MERGEABLE = 'mergeable';
case MERGE_REQUEST_BLOCKED = 'merge_request_blocked';
case NEED_REBASE = 'need_rebase';
case NOT_APPROVED = 'not_approved';
case NOT_OPEN = 'not_open';
case POLICIES_DENIED = 'policies_denied';
case PREPARING = 'preparing';
case REQUESTED_CHANGES = 'requested_changes';
case SECURITY_POLICIES_EVALUATING = 'security_policy_evaluation';
case UNCHECKED = 'unchecked';
}

0 comments on commit 78e802a

Please sign in to comment.