Welcome to mirror list, hosted at ThFree Co, Russian Federation.

job_failure_reason_enum.rb « ci « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b9c13536d68db26fc952ee733f6edd57bd273c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Types
  module Ci
    class JobFailureReasonEnum < BaseEnum
      graphql_name 'CiJobFailureReason'

      ::Enums::Ci::CommitStatus.failure_reasons.each_key do |reason|
        value reason.to_s.upcase,
          description: "A job that failed due to #{reason.to_s.tr('_', ' ')}.",
          value: reason
      end
    end
  end
end