From 4633a21291bdca8b47739e4a09ce2c76f1e20bd1 Mon Sep 17 00:00:00 2001 From: Alicia Lopez Date: Mon, 23 Nov 2020 20:55:17 -0800 Subject: [PATCH] fix: fetch most recent 100 commits (#520) --- lib/queries/PRCommits.gql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/queries/PRCommits.gql b/lib/queries/PRCommits.gql index f5a0647..62ae749 100644 --- a/lib/queries/PRCommits.gql +++ b/lib/queries/PRCommits.gql @@ -1,7 +1,7 @@ query Commits($prid: Int!, $owner: String!, $repo: String!, $after: String) { repository(owner: $owner, name: $repo) { pullRequest(number: $prid) { - commits(first: 100, after: $after) { + commits(last: 100, after: $after) { totalCount pageInfo { hasNextPage