diff options
Diffstat (limited to 'app/graphql/mutations/ci/pipeline_trigger/base.rb')
-rw-r--r-- | app/graphql/mutations/ci/pipeline_trigger/base.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/graphql/mutations/ci/pipeline_trigger/base.rb b/app/graphql/mutations/ci/pipeline_trigger/base.rb new file mode 100644 index 00000000000..23be70e7754 --- /dev/null +++ b/app/graphql/mutations/ci/pipeline_trigger/base.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Mutations + module Ci + module PipelineTrigger + class Base < BaseMutation + authorize :admin_build + authorize :admin_trigger + + PipelineTriggerID = ::Types::GlobalIDType[::Ci::Trigger] + + argument :id, PipelineTriggerID, + required: true, + description: 'ID of the pipeline trigger token to mutate.' + end + end + end +end |