2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Mutations
|
|
|
|
module Issues
|
|
|
|
module CommonMutationArguments
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
included do
|
|
|
|
argument :description, GraphQL::STRING_TYPE,
|
|
|
|
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)
|
|
|
|
|
|
|
|
argument :confidential, GraphQL::BOOLEAN_TYPE,
|
|
|
|
required: false,
|
|
|
|
description: copy_field_description(Types::IssueType, :confidential)
|
|
|
|
|
|
|
|
argument :locked, GraphQL::BOOLEAN_TYPE,
|
|
|
|
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
|