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

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

20 lines
387 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# frozen_string_literal: true
module Mutations
module Ci
module Job
class Base < BaseMutation
JobID = ::Types::GlobalIDType[::Ci::Build]
argument :id, JobID,
required: true,
2021-10-27 15:23:28 +05:30
description: 'ID of the job to mutate.'
2021-06-08 01:23:25 +05:30
2023-01-13 00:05:48 +05:30
def find_object(id:)
2021-06-08 01:23:25 +05:30
GlobalID::Locator.locate(id)
end
end
end
end
end