chore(ci): add PR autocloser#490
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 daily GitHub Actions workflow (
Confidence Score: 5/5Safe to merge — the workflow is well-scoped, uses minimal permissions, and correctly handles partial failures. The workflow logic is sound: the date math correctly targets PRs inactive for 7+ days, the jq pipeline is null-safe, the || echo guard prevents a single close failure from aborting the batch, and exclusions for the repo owner and keep-open label are in place. Both issues flagged in the previous review round have been addressed. No files require special attention. Important Files Changed
Reviews (4): Last reviewed commit: "chore(ci): add PR autocloser" | Re-trigger Greptile |
02c9a75 to
9a75e30
Compare
Summary
Validation
Note
Medium Risk
Automates closing pull requests via the GitHub API based on status/merge state; misclassification or query mistakes could close PRs unexpectedly, though it’s limited to stale PRs and excludes
keep-openandjdx-authored PRs.Overview
Adds a new scheduled/dispatchable GitHub Actions workflow (
pr-closer) that scans for open PRs not updated in ~7 days (excludingjdx-authored,keep-open, and draft PRs) and automatically closes those with failing checks and/or merge conflicts.PRs with cancelled checks or unknown merge state are only logged (skipped), and the workflow runs with minimal PR/check/status read/write permissions plus concurrency to prevent overlapping runs.
Reviewed by Cursor Bugbot for commit bcfb2e7. Bugbot is set up for automated code reviews on this repo. Configure here.