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: 2800454a999b8371c03f673c1380434e869580b1 (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