summaryrefslogtreecommitdiff
path: root/src/pulls.graphql
blob: 840e665625bec2b8da17e7e887fc55c9540f2afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
query PullsQuery($owner: String!, $name: String!, $label: String!, $after: String, $batch: Int!) {
  rateLimit {
    limit
    cost
    remaining
    resetAt
  }
  repository(owner: $owner, name: $name) {
    pullRequests(first: $batch, after: $after, labels: [ $label ], orderBy: { direction: DESC, field: UPDATED_AT }) {
      pageInfo {
        endCursor
        hasNextPage
      }
      edges {
        node {
          id
          bodyHTML
          closed
          merged
          baseRefName
          title
          updatedAt
          url
          mergeCommit {
            oid
          }
        }
      }
    }
  }
}