aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/models
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-05-27 11:08:53 +0200
committerGitHub <noreply@github.com>2021-05-27 11:08:53 +0200
commit76bdac7d11fd4f5d9cb52cd520c6b81f8d12665f (patch)
tree764d9a460a6dc95fdb88569c1a87e1210ee5e10c /api/graphql/models
parent2e9c83a08366ec20dd60e7cce3306650a0ec7e1f (diff)
parente867663bf01841684da6c74a7bcac478cf99655a (diff)
downloadgit-bug-76bdac7d11fd4f5d9cb52cd520c6b81f8d12665f.tar.gz
Merge pull request #682 from GlancingMind/webui-comment-and-reopen-bug
WebUI: Support comment-and-reopen a bug in one step
Diffstat (limited to 'api/graphql/models')
-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"`