aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/bug/TimelineQuery.graphql
blob: 6d78ab7f851a7b6c85a55bc9404881db702b5712 (plain) (tree)
1
2
3
4
5
6
7
8






                                                                
              


                                              
                         








                     

















                                       
#import "./MessageCreateFragment.graphql"
#import "./MessageCommentFragment.graphql"
#import "./LabelChangeFragment.graphql"
#import "./SetTitleFragment.graphql"
#import "./SetStatusFragment.graphql"

query Timeline($id: String!, $first: Int = 10, $after: String) {
  repository {
    bug(prefix: $id) {
      timeline(first: $first, after: $after) {
        nodes {
          ...TimelineItem
        }
        pageInfo {
          hasNextPage
          endCursor
        }
      }
    }
  }
}

fragment TimelineItem on TimelineItem {
  ... on LabelChangeTimelineItem {
    ...LabelChange
  }
  ... on SetStatusTimelineItem {
    ...SetStatus
  }
  ... on SetTitleTimelineItem {
    ...SetTitle
  }
  ... on AddCommentTimelineItem {
    ...AddComment
  }
  ... on CreateTimelineItem {
    ...Create
  }
}