1"""Represents a comment on a bug."""
 2type Comment implements Authored {
 3  """The author of this comment."""
 4  author: Identity!
 5
 6  """The message of this comment."""
 7  message: String!
 8
 9  """All media's hash referenced in this comment"""
10  files: [Hash!]!
11}
12
13type CommentConnection {
14  edges: [CommentEdge!]!
15  nodes: [Comment!]!
16  pageInfo: PageInfo!
17  totalCount: Int!
18}
19
20type CommentEdge {
21  cursor: String!
22  node: Comment!
23}
24
25enum Status {
26  OPEN
27  CLOSED
28}
29
30type Bug {
31  """The identifier for this bug"""
32  id: String!
33  """The human version (truncated) identifier for this bug"""
34  humanId: String!
35  status: Status!
36  title: String!
37  labels: [Label!]!
38  author: Identity!
39  actors: [Identity]!
40  participants: [Identity]!
41  createdAt: Time!
42  lastEdit: Time!
43
44  comments(
45    """Returns the elements in the list that come after the specified cursor."""
46    after: String
47    """Returns the elements in the list that come before the specified cursor."""
48    before: String
49    """Returns the first _n_ elements from the list."""
50    first: Int
51    """Returns the last _n_ elements from the list."""
52    last: Int
53  ): CommentConnection!
54
55  timeline(
56    """Returns the elements in the list that come after the specified cursor."""
57    after: String
58    """Returns the elements in the list that come before the specified cursor."""
59    before: String
60    """Returns the first _n_ elements from the list."""
61    first: Int
62    """Returns the last _n_ elements from the list."""
63    last: Int
64  ): TimelineItemConnection!
65
66  operations(
67    """Returns the elements in the list that come after the specified cursor."""
68    after: String
69    """Returns the elements in the list that come before the specified cursor."""
70    before: String
71    """Returns the first _n_ elements from the list."""
72    first: Int
73    """Returns the last _n_ elements from the list."""
74    last: Int
75  ): OperationConnection!
76}
77
78"""The connection type for Bug."""
79type BugConnection {
80  """A list of edges."""
81  edges: [BugEdge!]!
82  nodes: [Bug!]!
83  """Information to aid in pagination."""
84  pageInfo: PageInfo!
85  """Identifies the total count of items in the connection."""
86  totalCount: Int!
87}
88
89"""An edge in a connection."""
90type BugEdge {
91  """A cursor for use in pagination."""
92  cursor: String!
93  """The item at the end of the edge."""
94  node: Bug!
95}
96