Skip to content

Commit 9b3101d

Browse files
Copilotalexr00
andcommitted
Use 'last: 1' to get the most recent review instead of 'first: 1'
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent b7fc541 commit 9b3101d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github/queriesShared.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ query IssueTimelineEvents($owner: String!, $name: String!, $number: Int!, $last:
345345
query LatestReviewCommit($owner: String!, $name: String!, $number: Int!, $author: String!) {
346346
repository(owner: $owner, name: $name) {
347347
pullRequest(number: $number) {
348-
reviews(first: 1, author: $author, states: [APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED]) {
348+
reviews(last: 1, author: $author, states: [APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED]) {
349349
nodes {
350350
commit {
351351
oid

0 commit comments

Comments
 (0)