debian-mirror-gitlab/app/graphql/mutations/ci/job/base.rb
2023-01-12 18:35:48 +00:00

19 lines
387 B
Ruby

# frozen_string_literal: true
module Mutations
module Ci
module Job
class Base < BaseMutation
JobID = ::Types::GlobalIDType[::Ci::Build]
argument :id, JobID,
required: true,
description: 'ID of the job to mutate.'
def find_object(id:)
GlobalID::Locator.locate(id)
end
end
end
end
end