mutations.graphql

  1input NewBugInput {
  2    """A unique identifier for the client performing the mutation."""
  3    clientMutationId: String
  4    """"The name of the repository. If not set, the default repository is used."""
  5    repoRef: String
  6    """The title of the new bug."""
  7    title: String!
  8    """The first message of the new bug."""
  9    message: String!
 10    """The collection of file's hash required for the first message."""
 11    files: [Hash!]
 12}
 13
 14type NewBugPayload {
 15    """A unique identifier for the client performing the mutation."""
 16    clientMutationId: String
 17    """The created bug."""
 18    bug: Bug!
 19    """The resulting operation."""
 20    operation: CreateOperation!
 21}
 22
 23input AddCommentInput {
 24    """A unique identifier for the client performing the mutation."""
 25    clientMutationId: String
 26    """"The name of the repository. If not set, the default repository is used."""
 27    repoRef: String
 28    """The bug ID's prefix."""
 29    prefix: String!
 30    """The first message of the new bug."""
 31    message: String!
 32    """The collection of file's hash required for the first message."""
 33    files: [Hash!]
 34}
 35
 36type AddCommentPayload {
 37    """A unique identifier for the client performing the mutation."""
 38    clientMutationId: String
 39    """The affected bug."""
 40    bug: Bug!
 41    """The resulting operation."""
 42    operation: AddCommentOperation!
 43}
 44
 45input ChangeLabelInput {
 46    """A unique identifier for the client performing the mutation."""
 47    clientMutationId: String
 48    """"The name of the repository. If not set, the default repository is used."""
 49    repoRef: String
 50    """The bug ID's prefix."""
 51    prefix: String!
 52    """The list of label to add."""
 53    added: [String!]
 54    """The list of label to remove."""
 55    Removed: [String!]
 56}
 57
 58enum LabelChangeStatus {
 59    ADDED
 60    REMOVED
 61    DUPLICATE_IN_OP
 62    ALREADY_EXIST
 63    DOESNT_EXIST
 64}
 65
 66type LabelChangeResult {
 67    """The source label."""
 68    label: Label!
 69    """The effect this label had."""
 70    status: LabelChangeStatus!
 71}
 72
 73type ChangeLabelPayload {
 74    """A unique identifier for the client performing the mutation."""
 75    clientMutationId: String
 76    """The affected bug."""
 77    bug: Bug!
 78    """The resulting operation."""
 79    operation: LabelChangeOperation!
 80    """The effect each source label had."""
 81    results: [LabelChangeResult]!
 82}
 83
 84input OpenBugInput {
 85    """A unique identifier for the client performing the mutation."""
 86    clientMutationId: String
 87    """"The name of the repository. If not set, the default repository is used."""
 88    repoRef: String
 89    """The bug ID's prefix."""
 90    prefix: String!
 91}
 92
 93type OpenBugPayload {
 94    """A unique identifier for the client performing the mutation."""
 95    clientMutationId: String
 96    """The affected bug."""
 97    bug: Bug!
 98    """The resulting operation."""
 99    operation: SetStatusOperation!
100}
101
102input CloseBugInput {
103    """A unique identifier for the client performing the mutation."""
104    clientMutationId: String
105    """"The name of the repository. If not set, the default repository is used."""
106    repoRef: String
107    """The bug ID's prefix."""
108    prefix: String!
109}
110
111type CloseBugPayload {
112    """A unique identifier for the client performing the mutation."""
113    clientMutationId: String
114    """The affected bug."""
115    bug: Bug!
116    """The resulting operation."""
117    operation: SetStatusOperation!
118}
119
120input SetTitleInput {
121    """A unique identifier for the client performing the mutation."""
122    clientMutationId: String
123    """"The name of the repository. If not set, the default repository is used."""
124    repoRef: String
125    """The bug ID's prefix."""
126    prefix: String!
127    """The new title."""
128    title: String!
129}
130
131type SetTitlePayload {
132    """A unique identifier for the client performing the mutation."""
133    clientMutationId: String
134    """The affected bug."""
135    bug: Bug!
136    """The resulting operation"""
137    operation: SetTitleOperation!
138}