1type Query {
2 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
3 repository(ref: String): Repository
4}
5
6type Mutation {
7 """Create a new bug"""
8 newBug(input: NewBugInput!): NewBugPayload!
9 """Add a new comment to a bug"""
10 addComment(input: AddCommentInput!): AddCommentPayload!
11 """Add a new comment to a bug and close it"""
12 addCommentAndClose(input: AddCommentAndCloseBugInput!): AddCommentAndCloseBugPayload!
13 """Add a new comment to a bug and reopen it"""
14 addCommentAndReopen(input: AddCommentAndReopenBugInput!): AddCommentAndReopenBugPayload!
15 """Change a comment of a bug"""
16 editComment(input: EditCommentInput!): EditCommentPayload!
17 """Add or remove a set of label on a bug"""
18 changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
19 """Change a bug's status to open"""
20 openBug(input: OpenBugInput!): OpenBugPayload!
21 """Change a bug's status to closed"""
22 closeBug(input: CloseBugInput!): CloseBugPayload!
23 """Change a bug's title"""
24 setTitle(input: SetTitleInput!): SetTitlePayload!
25}