master
 1fragment PullRequest on PullRequest {
 2  id
 3  createdAt
 4  url
 5  number
 6  title
 7  body
 8  closed
 9  merged
10  mergedAt
11  mergedBy {
12    login
13  }
14  labels(first: 10) {
15    totalCount
16    nodes {
17      name
18    }
19  }
20  repository {
21    isPrivate
22    nameWithOwner
23    owner {
24      login
25    }
26    name
27    languages(first: 10, orderBy: { field: SIZE, direction: DESC }) {
28      totalCount
29      nodes {
30        name
31      }
32    }
33  }
34  participants(first: 20) {
35    totalCount
36    nodes {
37      login
38    }
39  }
40  lastCommit: commits(last: 1) {
41    nodes {
42      commit {
43        checkSuites(first: 20) {
44          totalCount
45          nodes {
46            app {
47              name
48            }
49            workflowRun {
50              workflow {
51                name
52              }
53            }
54            lastCheckRun: checkRuns(last: 1) {
55              totalCount
56              nodes {
57                name
58                conclusion
59                status
60                startedAt
61                completedAt
62              }
63            }
64          }
65        }
66      }
67    }
68  }
69  reactionsTotal: reactions {
70    totalCount
71  }
72}
73
74query PullsQuery($username: String!, $num: Int = 30, $cursor: String) {
75  user(login: $username) {
76    pullRequests(first: $num, after: $cursor) {
77      totalCount
78      nodes {
79        ...PullRequest
80      }
81      pageInfo {
82        hasNextPage
83        endCursor
84      }
85    }
86  }
87  rateLimit {
88    limit
89    cost
90    remaining
91    resetAt
92  }
93}