diff options
Diffstat (limited to 'app/graphql/types/ci/ci_cd_setting_type.rb')
-rw-r--r-- | app/graphql/types/ci/ci_cd_setting_type.rb | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/app/graphql/types/ci/ci_cd_setting_type.rb b/app/graphql/types/ci/ci_cd_setting_type.rb index f7ef94f58c0..45ecbf5c084 100644 --- a/app/graphql/types/ci/ci_cd_setting_type.rb +++ b/app/graphql/types/ci/ci_cd_setting_type.rb @@ -7,32 +7,37 @@ module Types authorize :admin_project - field :job_token_scope_enabled, - GraphQL::Types::Boolean, - null: true, - description: 'Indicates CI/CD job tokens generated in this project ' \ - 'have restricted access to other projects.', - method: :job_token_scope_enabled? - field :inbound_job_token_scope_enabled, - GraphQL::Types::Boolean, - null: true, - description: 'Indicates CI/CD job tokens generated in other projects ' \ - 'have restricted access to this project.', - method: :inbound_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? - field :merge_pipelines_enabled, GraphQL::Types::Boolean, null: true, - description: 'Whether merge pipelines are enabled.', - method: :merge_pipelines_enabled? - field :merge_trains_enabled, GraphQL::Types::Boolean, null: true, - description: 'Whether merge trains are enabled.', - method: :merge_trains_enabled? - - field :project, Types::ProjectType, null: true, - description: 'Project the CI/CD settings belong to.' + GraphQL::Types::Boolean, + null: true, + description: 'Indicates CI/CD job tokens generated in other projects ' \ + 'have restricted access to this project.', + method: :inbound_job_token_scope_enabled? + field :job_token_scope_enabled, + GraphQL::Types::Boolean, + null: true, + description: 'Indicates CI/CD job tokens generated in this project ' \ + 'have restricted access to other projects.', + 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? + field :merge_pipelines_enabled, + GraphQL::Types::Boolean, + null: true, + description: 'Whether merge pipelines are enabled.', + method: :merge_pipelines_enabled? + field :merge_trains_enabled, + GraphQL::Types::Boolean, + null: true, + description: 'Whether merge trains are enabled.', + method: :merge_trains_enabled? + field :project, + Types::ProjectType, + null: true, + description: 'Project the CI/CD settings belong to.' end end end |