debian-mirror-gitlab/app/graphql/types/ci/ci_cd_setting_type.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
1 KiB
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
module Types
module Ci
class CiCdSettingType < BaseObject
graphql_name 'ProjectCiCdSetting'
authorize :admin_project
2022-05-07 20:08:51 +05:30
field :job_token_scope_enabled, GraphQL::Types::Boolean, null: true,
description: 'Indicates CI job tokens generated in this project have restricted access to resources.',
method: :job_token_scope_enabled?
field :keep_latest_artifact, GraphQL::Types::Boolean, null: true,
description: 'Whether to keep the latest builds artifacts.',
method: :keep_latest_artifacts_available?
2021-10-27 15:23:28 +05:30
field :merge_pipelines_enabled, GraphQL::Types::Boolean, null: true,
2021-02-22 17:27:13 +05:30
description: 'Whether merge pipelines are enabled.',
method: :merge_pipelines_enabled?
2021-10-27 15:23:28 +05:30
field :merge_trains_enabled, GraphQL::Types::Boolean, null: true,
2021-03-08 18:12:59 +05:30
description: 'Whether merge trains are enabled.',
2021-02-22 17:27:13 +05:30
method: :merge_trains_enabled?
field :project, Types::ProjectType, null: true,
description: 'Project the CI/CD settings belong to.'
end
end
end