debian-mirror-gitlab/app/graphql/mutations/issues/common_mutation_arguments.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module Mutations
module Issues
module CommonMutationArguments
extend ActiveSupport::Concern
included do
2021-10-27 15:23:28 +05:30
argument :description, GraphQL::Types::String,
2021-01-03 14:25:43 +05:30
required: false,
description: copy_field_description(Types::IssueType, :description)
argument :due_date, GraphQL::Types::ISO8601Date,
required: false,
description: copy_field_description(Types::IssueType, :due_date)
2021-10-27 15:23:28 +05:30
argument :confidential, GraphQL::Types::Boolean,
2021-01-03 14:25:43 +05:30
required: false,
description: copy_field_description(Types::IssueType, :confidential)
2021-10-27 15:23:28 +05:30
argument :locked, GraphQL::Types::Boolean,
2021-01-03 14:25:43 +05:30
as: :discussion_locked,
required: false,
description: copy_field_description(Types::IssueType, :discussion_locked)
2021-06-08 01:23:25 +05:30
argument :type, Types::IssueTypeEnum,
as: :issue_type,
required: false,
description: copy_field_description(Types::IssueType, :type)
2021-01-03 14:25:43 +05:30
end
end
end
end