aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/models/gen_models.go
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/models/gen_models.go
parentbfad28d7feb3009de624c59edcfe670aa3832841 (diff)
downloadgit-bug-27b5285b8cbccec7fb6d17fb2c765d45530605c2.tar.gz
GraphQL: Implement AddCommentAndReopenBug mutation
Diffstat (limited to 'api/graphql/models/gen_models.go')
-rw-r--r--api/graphql/models/gen_models.go24
1 files changed, 24 insertions, 0 deletions
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"`