root.graphql

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