From 27b5285b8cbccec7fb6d17fb2c765d45530605c2 Mon Sep 17 00:00:00 2001 From: Sascha Date: Tue, 25 May 2021 15:58:21 +0200 Subject: GraphQL: Implement AddCommentAndReopenBug mutation --- api/graphql/schema/mutations.graphql | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'api/graphql/schema/mutations.graphql') 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 -- cgit