summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/releases/base.rb
blob: d53cfbe6a115fc00bb2ff157d2576db78ec90d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Mutations
  module Releases
    class Base < BaseMutation
      include ResolvesProject

      argument :project_path, GraphQL::ID_TYPE,
               required: true,
               description: 'Full path of the project the release is associated with'

      private

      def find_object(full_path:)
        resolve_project(full_path: full_path)
      end
    end
  end
end