1extend type Mutation {
2 """Create a new bug"""
3 bugCreate(input: BugCreateInput!): BugCreatePayload!
4 """Add a new comment to a bug"""
5 bugAddComment(input: BugAddCommentInput!): BugAddCommentPayload!
6 """Add a new comment to a bug and close it"""
7 bugAddCommentAndClose(input: BugAddCommentAndCloseInput!): BugAddCommentAndClosePayload!
8 """Add a new comment to a bug and reopen it"""
9 bugAddCommentAndReopen(input: BugAddCommentAndReopenInput!): BugAddCommentAndReopenPayload!
10 """Change a comment of a bug"""
11 bugEditComment(input: BugEditCommentInput!): BugEditCommentPayload!
12 """Add or remove a set of label on a bug"""
13 bugChangeLabels(input: BugChangeLabelInput): BugChangeLabelPayload!
14 """Change a bug's status to open"""
15 bugStatusOpen(input: BugStatusOpenInput!): BugStatusOpenPayload!
16 """Change a bug's status to closed"""
17 bugStatusClose(input: BugStatusCloseInput!): BugStatusClosePayload!
18 """Change a bug's title"""
19 bugSetTitle(input: BugSetTitleInput!): BugSetTitlePayload!
20}
21
22input BugCreateInput {
23 """A unique identifier for the client performing the mutation."""
24 clientMutationId: String
25 """The name of the repository. If not set, the default repository is used."""
26 repoRef: String
27 """The title of the new bug."""
28 title: String!
29 """The first message of the new bug."""
30 message: String!
31 """The collection of file's hash required for the first message."""
32 files: [Hash!]
33}
34
35type BugCreatePayload {
36 """A unique identifier for the client performing the mutation."""
37 clientMutationId: String
38 """The created bug."""
39 bug: Bug!
40 """The resulting operation."""
41 operation: BugCreateOperation!
42}
43
44input BugAddCommentInput {
45 """A unique identifier for the client performing the mutation."""
46 clientMutationId: String
47 """The name of the repository. If not set, the default repository is used."""
48 repoRef: String
49 """The bug ID's prefix."""
50 prefix: String!
51 """The message to be added to the bug."""
52 message: String!
53 """The collection of file's hash required for the first message."""
54 files: [Hash!]
55}
56
57type BugAddCommentPayload {
58 """A unique identifier for the client performing the mutation."""
59 clientMutationId: String
60 """The affected bug."""
61 bug: Bug!
62 """The resulting operation."""
63 operation: BugAddCommentOperation!
64}
65
66input BugAddCommentAndCloseInput {
67 """A unique identifier for the client performing the mutation."""
68 clientMutationId: String
69 """The name of the repository. If not set, the default repository is used."""
70 repoRef: String
71 """The bug ID's prefix."""
72 prefix: String!
73 """The message to be added to the bug."""
74 message: String!
75 """The collection of file's hash required for the first message."""
76 files: [Hash!]
77}
78
79type BugAddCommentAndClosePayload {
80 """A unique identifier for the client performing the mutation."""
81 clientMutationId: String
82 """The affected bug."""
83 bug: Bug!
84 """The resulting AddComment operation."""
85 commentOperation: BugAddCommentOperation!
86 """The resulting SetStatusOperation."""
87 statusOperation: BugSetStatusOperation!
88}
89
90input BugAddCommentAndReopenInput {
91 """A unique identifier for the client performing the mutation."""
92 clientMutationId: String
93 """The name of the repository. If not set, the default repository is used."""
94 repoRef: String
95 """The bug ID's prefix."""
96 prefix: String!
97 """The message to be added to the bug."""
98 message: String!
99 """The collection of file's hash required for the first message."""
100 files: [Hash!]
101}
102
103type BugAddCommentAndReopenPayload {
104 """A unique identifier for the client performing the mutation."""
105 clientMutationId: String
106 """The affected bug."""
107 bug: Bug!
108 """The resulting AddComment operation."""
109 commentOperation: BugAddCommentOperation!
110 """The resulting SetStatusOperation."""
111 statusOperation: BugSetStatusOperation!
112}
113
114input BugEditCommentInput {
115 """A unique identifier for the client performing the mutation."""
116 clientMutationId: String
117 """The name of the repository. If not set, the default repository is used."""
118 repoRef: String
119 """A prefix of the CombinedId of the comment to be changed."""
120 targetPrefix: String!
121 """The new message to be set."""
122 message: String!
123 """The collection of file's hash required for the first message."""
124 files: [Hash!]
125}
126
127type BugEditCommentPayload {
128 """A unique identifier for the client performing the mutation."""
129 clientMutationId: String
130 """The affected bug."""
131 bug: Bug!
132 """The resulting operation."""
133 operation: BugEditCommentOperation!
134}
135
136input BugChangeLabelInput {
137 """A unique identifier for the client performing the mutation."""
138 clientMutationId: String
139 """The name of the repository. If not set, the default repository is used."""
140 repoRef: String
141 """The bug ID's prefix."""
142 prefix: String!
143 """The list of label to add."""
144 added: [String!]
145 """The list of label to remove."""
146 Removed: [String!]
147}
148
149type BugChangeLabelPayload {
150 """A unique identifier for the client performing the mutation."""
151 clientMutationId: String
152 """The affected bug."""
153 bug: Bug!
154 """The resulting operation."""
155 operation: BugLabelChangeOperation!
156 """The effect each source label had."""
157 results: [LabelChangeResult]!
158}
159
160input BugStatusOpenInput {
161 """A unique identifier for the client performing the mutation."""
162 clientMutationId: String
163 """The name of the repository. If not set, the default repository is used."""
164 repoRef: String
165 """The bug ID's prefix."""
166 prefix: String!
167}
168
169type BugStatusOpenPayload {
170 """A unique identifier for the client performing the mutation."""
171 clientMutationId: String
172 """The affected bug."""
173 bug: Bug!
174 """The resulting operation."""
175 operation: BugSetStatusOperation!
176}
177
178input BugStatusCloseInput {
179 """A unique identifier for the client performing the mutation."""
180 clientMutationId: String
181 """The name of the repository. If not set, the default repository is used."""
182 repoRef: String
183 """The bug ID's prefix."""
184 prefix: String!
185}
186
187type BugStatusClosePayload {
188 """A unique identifier for the client performing the mutation."""
189 clientMutationId: String
190 """The affected bug."""
191 bug: Bug!
192 """The resulting operation."""
193 operation: BugSetStatusOperation!
194}
195
196input BugSetTitleInput {
197 """A unique identifier for the client performing the mutation."""
198 clientMutationId: String
199 """The name of the repository. If not set, the default repository is used."""
200 repoRef: String
201 """The bug ID's prefix."""
202 prefix: String!
203 """The new title."""
204 title: String!
205}
206
207type BugSetTitlePayload {
208 """A unique identifier for the client performing the mutation."""
209 clientMutationId: String
210 """The affected bug."""
211 bug: Bug!
212 """The resulting operation"""
213 operation: BugSetTitleOperation!
214}