summaryrefslogtreecommitdiff
path: root/src/pulls.graphql
blob: a25f2479682c779e707e7636cbce3e877363f536 (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
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
        }
      }
    }
  }
}