diff options
author | Michael Muré <batolettre@gmail.com> | 2021-05-27 11:08:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 11:08:53 +0200 |
commit | 76bdac7d11fd4f5d9cb52cd520c6b81f8d12665f (patch) | |
tree | 764d9a460a6dc95fdb88569c1a87e1210ee5e10c /api/graphql/models | |
parent | 2e9c83a08366ec20dd60e7cce3306650a0ec7e1f (diff) | |
parent | e867663bf01841684da6c74a7bcac478cf99655a (diff) | |
download | git-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.go | 24 |
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"` |