-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use the most recent check runs on a commit (#823)
This fixes an issue where we would iterate over all check runs on a commit and keep the last one. Because GitHub returns check runs in reverse chronological order, this meant we used the oldest result for each run in the event of duplicates instead of the most recent.
- Loading branch information
Showing
4 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- status: 200 | ||
body: | | ||
{ | ||
"total_count": 3, | ||
"check_runs": [ | ||
{ | ||
"status": "completed", | ||
"conclusion": "success", | ||
"started_at": "2024-08-14T12:12:45Z", | ||
"completed_at": "2024-08-14T12:13:14Z", | ||
"name": "check-run-a" | ||
}, | ||
{ | ||
"status": "completed", | ||
"conclusion": "failure", | ||
"started_at": "2024-08-14T12:10:00Z", | ||
"completed_at": "2024-08-14T12:10:36Z", | ||
"name": "check-run-b" | ||
}, | ||
{ | ||
"status": "completed", | ||
"conclusion": "failure", | ||
"started_at": "2024-08-14T12:10:00Z", | ||
"completed_at": "2024-08-14T12:10:21Z", | ||
"name": "check-run-a" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- status: 200 | ||
body: | | ||
{ | ||
"state": "pending", | ||
"statuses": [ | ||
{ | ||
"state": "pending", | ||
"context": "commit-status-b", | ||
"created_at": "2024-08-14T12:13:14Z", | ||
"updated_at": "2024-08-14T12:13:14Z" | ||
}, | ||
{ | ||
"state": "success", | ||
"context": "commit-status-a", | ||
"created_at": "2024-08-14T12:12:00Z", | ||
"updated_at": "2024-08-14T12:12:00Z" | ||
} | ||
] | ||
} |