diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-16 14:31:28 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-19 17:49:38 +0100 |
commit | 50cd1a9c177120a78e0c7f4e2f4238d2debfbfc6 (patch) | |
tree | cb66e5a93d7a3d96f71f0e24f319496f1d7dd538 /api/graphql/models/gen_models.go | |
parent | 4960448ac7efb13ea8cb6687d05c0ee766c02763 (diff) | |
download | git-bug-50cd1a9c177120a78e0c7f4e2f4238d2debfbfc6.tar.gz |
GraphQL: Add EditComment input/payload to gen_models
Diffstat (limited to 'api/graphql/models/gen_models.go')
-rw-r--r-- | api/graphql/models/gen_models.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/api/graphql/models/gen_models.go b/api/graphql/models/gen_models.go index 675c4b6b..5bf8ea9e 100644 --- a/api/graphql/models/gen_models.go +++ b/api/graphql/models/gen_models.go @@ -38,6 +38,28 @@ type AddCommentPayload struct { Operation *bug.AddCommentOperation `json:"operation"` } +type EditCommentInput 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 first message of the new bug. + Message string `json:"message"` + // The collection of file's hash required for the first message. + Files []repository.Hash `json:"files"` +} + +type EditCommentPayload struct { + // A unique identifier for the client performing the mutation. + ClientMutationID *string `json:"clientMutationId"` + // The affected bug. + Bug BugWrapper `json:"bug"` + // The resulting operation. + Operation *bug.EditCommentOperation `json:"operation"` +} + // The connection type for Bug. type BugConnection struct { // A list of edges. |