diff options
author | Michael Muré <batolettre@gmail.com> | 2021-03-24 20:28:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 20:28:06 +0100 |
commit | fb6b2d873e1bbc653aa84ddce56c842202e00c33 (patch) | |
tree | f722d8ac4381dd770b2cb96bf66478feabc94678 /api/graphql/models | |
parent | 01b949091290a3bfd5870c6457c941db1abf3d67 (diff) | |
parent | bd6159a25b548f8f939f137b70dcf77a722e70dc (diff) | |
download | git-bug-fb6b2d873e1bbc653aa84ddce56c842202e00c33.tar.gz |
Merge pull request #602 from GlancingMind/upstream-4-interface-to-edit-issues
WebUI: Edit comments and inspect edit history
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 675c4b6b..1046d11a 100644 --- a/api/graphql/models/gen_models.go +++ b/api/graphql/models/gen_models.go @@ -111,6 +111,30 @@ type CommentEdge struct { Node *bug.Comment `json:"node"` } +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 target. + Target string `json:"target"` + // The new message to be set. + 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"` +} + type IdentityConnection struct { Edges []*IdentityEdge `json:"edges"` Nodes []IdentityWrapper `json:"nodes"` |