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

pipeline_status_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: e0b2020dcc18609234c883d3a157b523a7f45eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Types
  module Ci
    class PipelineStatusEnum < BaseEnum
      ::Ci::Pipeline.all_state_names.each do |state_symbol|
        value state_symbol.to_s.upcase,
              description: ::Ci::Pipeline::STATUSES_DESCRIPTION[state_symbol],
              value: state_symbol.to_s
      end
    end
  end
end