debian-mirror-gitlab/app/graphql/mutations/ci/pipeline/base.rb

22 lines
429 B
Ruby
Raw Normal View History

2021-03-08 18:12:59 +05:30
# frozen_string_literal: true
module Mutations
module Ci
module Pipeline
class Base < BaseMutation
PipelineID = ::Types::GlobalIDType[::Ci::Pipeline]
argument :id, PipelineID,
required: true,
2021-10-27 15:23:28 +05:30
description: 'ID of the pipeline to mutate.'
2021-03-08 18:12:59 +05:30
private
def find_object(id:)
GlobalID::Locator.locate(id)
end
end
end
end
end