diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-21 21:08:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-21 21:08:57 +0000 |
commit | a6c2be7cd20a9515b347e72d63c5b47bb9b79457 (patch) | |
tree | 568212b4debeb2a35bb1133209b98e1468d9ee85 /app/graphql | |
parent | 74a2d57b337034cfdcd719615e4da06643b69114 (diff) | |
download | gitlab-ce-a6c2be7cd20a9515b347e72d63c5b47bb9b79457.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql')
-rw-r--r-- | app/graphql/mutations/issues/update.rb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/app/graphql/mutations/issues/update.rb b/app/graphql/mutations/issues/update.rb index 119bc51e4a4..4a21df98898 100644 --- a/app/graphql/mutations/issues/update.rb +++ b/app/graphql/mutations/issues/update.rb @@ -5,7 +5,25 @@ module Mutations class Update < Base graphql_name 'UpdateIssue' - # Add arguments here instead of creating separate mutations + argument :title, + GraphQL::STRING_TYPE, + required: false, + description: copy_field_description(Types::IssueType, :title) + + argument :description, + GraphQL::STRING_TYPE, + required: false, + description: copy_field_description(Types::IssueType, :description) + + argument :due_date, + Types::TimeType, + required: true, + description: copy_field_description(Types::IssueType, :due_date) + + argument :confidential, + GraphQL::BOOLEAN_TYPE, + required: true, + description: copy_field_description(Types::IssueType, :confidential) def resolve(project_path:, iid:, **args) issue = authorized_find!(project_path: project_path, iid: iid) |