2018-12-23 19:55:41 +03:00
|
|
|
type Query {
|
2020-02-05 03:06:53 +03:00
|
|
|
"""Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
|
|
|
|
repository(ref: String): Repository
|
2018-12-23 19:55:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Mutation {
|
2019-06-16 22:40:45 +03:00
|
|
|
"""Create a new bug"""
|
2019-06-16 22:29:49 +03:00
|
|
|
newBug(input: NewBugInput!): NewBugPayload!
|
|
|
|
"""Add a new comment to a bug"""
|
|
|
|
addComment(input: AddCommentInput!): AddCommentPayload!
|
|
|
|
"""Add or remove a set of label on a bug"""
|
|
|
|
changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
|
|
|
|
"""Change a bug's status to open"""
|
|
|
|
openBug(input: OpenBugInput!): OpenBugPayload!
|
|
|
|
"""Change a bug's status to closed"""
|
|
|
|
closeBug(input: CloseBugInput!): CloseBugPayload!
|
2019-06-23 22:29:04 +03:00
|
|
|
"""Change a bug's title"""
|
2019-06-16 22:29:49 +03:00
|
|
|
setTitle(input: SetTitleInput!): SetTitlePayload!
|
|
|
|
"""Commit write the pending operations into storage. This mutation fail if nothing is pending"""
|
|
|
|
commit(input: CommitInput!): CommitPayload!
|
|
|
|
"""Commit write the pending operations into storage. This mutation succed if nothing is pending"""
|
|
|
|
commitAsNeeded(input: CommitAsNeededInput!): CommitAsNeededPayload!
|
2019-01-20 17:41:27 +03:00
|
|
|
}
|