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/models/gen_models.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'api/graphql/models') diff --git a/api/graphql/models/gen_models.go b/api/graphql/models/gen_models.go index 708fa409..203d6451 100644 --- a/api/graphql/models/gen_models.go +++ b/api/graphql/models/gen_models.go @@ -40,6 +40,30 @@ type AddCommentAndCloseBugPayload struct { StatusOperation *bug.SetStatusOperation `json:"statusOperation"` } +type AddCommentAndReopenBugInput struct { + // A unique identifier for the client performing the mutation. + ClientMutationID *string `json:"clientMutationId"` + // The name of the repository. If not set, the default repository is used. + RepoRef *string `json:"repoRef"` + // The bug ID's prefix. + Prefix string `json:"prefix"` + // The message to be added to the bug. + Message string `json:"message"` + // The collection of file's hash required for the first message. + Files []repository.Hash `json:"files"` +} + +type AddCommentAndReopenBugPayload struct { + // A unique identifier for the client performing the mutation. + ClientMutationID *string `json:"clientMutationId"` + // The affected bug. + Bug BugWrapper `json:"bug"` + // The resulting AddComment operation. + CommentOperation *bug.AddCommentOperation `json:"commentOperation"` + // The resulting SetStatusOperation. + StatusOperation *bug.SetStatusOperation `json:"statusOperation"` +} + type AddCommentInput struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` -- cgit