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 """Change a comment of a bug"""
12 editComment(input: EditCommentInput!): EditCommentPayload!
13 """Add or remove a set of label on a bug"""
14 changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
15 """Change a bug's status to open"""
16 openBug(input: OpenBugInput!): OpenBugPayload!
17 """Change a bug's status to closed"""
18 closeBug(input: CloseBugInput!): CloseBugPayload!
19 """Change a bug's title"""
20 setTitle(input: SetTitleInput!): SetTitlePayload!
21}