1type BugCreateOperation implements Operation & Authored
 2@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
 3    """The identifier of the operation"""
 4    id: ID!
 5    """The author of this object."""
 6    author: Identity!
 7    """The datetime when this operation was issued."""
 8    date: Time! @goField(name: "Time")
 9
10    title: String!
11    message: String!
12    files: [Hash!]!
13}
14
15type BugSetTitleOperation implements Operation & Authored
16@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
17    """The identifier of the operation"""
18    id: ID!
19    """The author of this object."""
20    author: Identity!
21    """The datetime when this operation was issued."""
22    date: Time! @goField(name: "Time")
23
24    title: String!
25    was: String!
26}
27
28type BugAddCommentOperation implements Operation & Authored
29@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
30    """The identifier of the operation"""
31    id: ID!
32    """The author of this object."""
33    author: Identity!
34    """The datetime when this operation was issued."""
35    date: Time! @goField(name: "Time")
36
37    message: String!
38    files: [Hash!]!
39}
40
41type BugEditCommentOperation implements Operation & Authored
42@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
43    """The identifier of the operation"""
44    id: ID!
45    """The author of this object."""
46    author: Identity!
47    """The datetime when this operation was issued."""
48    date: Time! @goField(name: "Time")
49
50    target: String!
51    message: String!
52    files: [Hash!]!
53}
54
55type BugSetStatusOperation implements Operation & Authored
56@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
57    """The identifier of the operation"""
58    id: ID!
59    """The author of this object."""
60    author: Identity!
61    """The datetime when this operation was issued."""
62    date: Time! @goField(name: "Time")
63
64    status: Status!
65}
66
67type BugLabelChangeOperation implements Operation & Authored
68@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
69    """The identifier of the operation"""
70    id: ID!
71    """The author of this object."""
72    author: Identity!
73    """The datetime when this operation was issued."""
74    date: Time! @goField(name: "Time")
75
76    added: [Label!]!
77    removed: [Label!]!
78}