chore(ci): close failing or conflicted PRs sooner#480
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Greptile SummaryThis PR tightens the
Confidence Score: 5/5Safe to merge — the change is confined to a scheduled GitHub Actions workflow with no runtime code, and the logic correctly guards against closing PRs in ambiguous states. The jq filter correctly handles all relevant mergeStateStatus and statusCheckRollup values, skipping UNKNOWN/CANCELLED states conservatively. The shell pipeline is guarded with pipefail and per-iteration error tolerance. No unintentional closure paths were identified. No files require special attention. Important Files Changed
Reviews (6): Last reviewed commit: "Revert "ci: allow reading attestations"" | Re-trigger Greptile |
9b9896a to
1ac8ab4
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1ac8ab4. Configure here.
1ac8ab4 to
36d387e
Compare
36d387e to
dbf8712
Compare

Summary
Validation
Note
Medium Risk
Automates PR closure based on CI/merge-state signals; a bug in the query or jq logic could incorrectly close active or recoverable PRs. Limited to GitHub Actions workflow changes but impacts contributor workflow.
Overview
Updates the
pr-closerGitHub Actions workflow to close PRs much sooner (7 days inactivity), but only when they have failing checks and/or merge conflicts.The workflow now queries
mergeStateStatusand expanded check conclusions to generate a specific closure reason, skips “warn-only” states (e.g., cancelled checks/unknown merge state), increases the listing limit to 500, and addsconcurrencyplus additional read permissions (checks,statuses) to support the new filtering.Reviewed by Cursor Bugbot for commit 34aded2. Bugbot is set up for automated code reviews on this repo. Configure here.