From 50068653801991e67487f1b555b83f9232a3bd48 Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 28 May 2022 15:14:52 +0200 Subject: initial commit --- src/pulls.graphql | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/pulls.graphql (limited to 'src/pulls.graphql') diff --git a/src/pulls.graphql b/src/pulls.graphql new file mode 100644 index 0000000..a25f247 --- /dev/null +++ b/src/pulls.graphql @@ -0,0 +1,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 + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3