chore(ci): add PR autocloser#640
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Greptile SummaryAdds a new
Confidence Score: 5/5Safe to merge — the workflow only affects repository automation and is conservative by design (unknown/cancelled states are skipped, not closed). The workflow correctly handles both GitHub Actions check runs and legacy commit statuses, guards against concurrent executions with the cancellation group, and has no code paths that could cause unintended data loss or destructive side effects in the main codebase. The only finding is a minor date-offset discrepancy that makes the actual threshold slightly longer than advertised. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "chore(ci): add PR autocloser" | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #640 +/- ##
=======================================
Coverage 73.25% 73.25%
=======================================
Files 49 49
Lines 7455 7455
Branches 7455 7455
=======================================
Hits 5461 5461
Misses 1359 1359
Partials 635 635 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Validation
Note
Medium Risk
Automatically closing PRs can disrupt contributor workflows if the query/filters are too broad or GitHub status/merge-state signals are misinterpreted. The change is limited to CI automation and uses scoped permissions, but it performs write actions on PRs.
Overview
Adds a new scheduled and manually-triggerable GitHub Actions workflow (
pr-closer) that scans open PRs inactive for 7+ days (excluding drafts,keep-openlabeled PRs, and PRs byjdx).The job uses
gh pr list+jqto auto-close PRs only when they have failing checks and/or merge conflicts, while only logging and skipping cases with cancelled checks or unknown merge state.Reviewed by Cursor Bugbot for commit 0e542f0. Bugbot is set up for automated code reviews on this repo. Configure here.