aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/schema
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-05-25 15:58:21 +0200
committerSascha <GlancingMind@outlook.com>2021-05-26 12:52:07 +0200
commit27b5285b8cbccec7fb6d17fb2c765d45530605c2 (patch)
tree1d476f9745953d2394997991df110a5e6215caee /api/graphql/schema
parentbfad28d7feb3009de624c59edcfe670aa3832841 (diff)
downloadgit-bug-27b5285b8cbccec7fb6d17fb2c765d45530605c2.tar.gz
GraphQL: Implement AddCommentAndReopenBug mutation
Diffstat (limited to 'api/graphql/schema')
-rw-r--r--api/graphql/schema/mutations.graphql24
-rw-r--r--api/graphql/schema/root.graphql2
2 files changed, 26 insertions, 0 deletions
diff --git a/api/graphql/schema/mutations.graphql b/api/graphql/schema/mutations.graphql
index 36222e6b..cd5cba4e 100644
--- a/api/graphql/schema/mutations.graphql
+++ b/api/graphql/schema/mutations.graphql
@@ -66,6 +66,30 @@ type AddCommentAndCloseBugPayload {
statusOperation: SetStatusOperation!
}
+input AddCommentAndReopenBugInput {
+ """A unique identifier for the client performing the mutation."""
+ clientMutationId: String
+ """The name of the repository. If not set, the default repository is used."""
+ repoRef: String
+ """The bug ID's prefix."""
+ prefix: String!
+ """The message to be added to the bug."""
+ message: String!
+ """The collection of file's hash required for the first message."""
+ files: [Hash!]
+}
+
+type AddCommentAndReopenBugPayload {
+ """A unique identifier for the client performing the mutation."""
+ clientMutationId: String
+ """The affected bug."""
+ bug: Bug!
+ """The resulting AddComment operation."""
+ commentOperation: AddCommentOperation!
+ """The resulting SetStatusOperation."""
+ statusOperation: SetStatusOperation!
+}
+
input EditCommentInput {
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
diff --git a/api/graphql/schema/root.graphql b/api/graphql/schema/root.graphql
index 4b4e0e2f..e3c76c03 100644
--- a/api/graphql/schema/root.graphql
+++ b/api/graphql/schema/root.graphql
@@ -10,6 +10,8 @@ type Mutation {
addComment(input: AddCommentInput!): AddCommentPayload!
"""Add a new comment to a bug and close it"""
addCommentAndClose(input: AddCommentAndCloseBugInput!): AddCommentAndCloseBugPayload!
+ """Add a new comment to a bug and reopen it"""
+ addCommentAndReopen(input: AddCommentAndReopenBugInput!): AddCommentAndReopenBugPayload!
"""Change a comment of a bug"""
editComment(input: EditCommentInput!): EditCommentPayload!
"""Add or remove a set of label on a bug"""