diff options
Diffstat (limited to 'app/graphql/types/merge_requests/mergeability_check_identifier_enum.rb')
-rw-r--r-- | app/graphql/types/merge_requests/mergeability_check_identifier_enum.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/graphql/types/merge_requests/mergeability_check_identifier_enum.rb b/app/graphql/types/merge_requests/mergeability_check_identifier_enum.rb new file mode 100644 index 00000000000..ac25c98941c --- /dev/null +++ b/app/graphql/types/merge_requests/mergeability_check_identifier_enum.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Types + module MergeRequests + class MergeabilityCheckIdentifierEnum < BaseEnum + graphql_name 'MergeabilityCheckIdentifier' + description 'Representation of mergeability check identifier.' + + MergeRequest.all_mergeability_checks.each do |check_class| + identifier = check_class.identifier.to_s + + value identifier.upcase, + value: identifier, + description: "Mergeability check identifier is #{identifier}." + end + end + end +end |