mise-action/.github/workflows
jdx 5b3e4e007b
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Check dist/ / Check dist/ (push) Waiting to run
Continuous Integration / TypeScript Tests (push) Waiting to run
release-plz / release-plz (push) Waiting to run
Test Redacted Environment Variables / test-redacted-env (push) Waiting to run
build-test / build (push) Waiting to run
build-test / alpine (push) Waiting to run
build-test / macos (push) Waiting to run
build-test / ubuntu (push) Waiting to run
build-test / windows (push) Waiting to run
build-test / specific_version (push) Waiting to run
build-test / checksum_failure (push) Waiting to run
build-test / custom_cache_key (push) Waiting to run
build-test / fetch_from_github (push) Waiting to run
build-test / final (push) Blocked by required conditions
zizmor / zizmor (push) Waiting to run
chore(ci): close failing or conflicted PRs sooner (#480)
## Summary
- close inactive PRs after 7 days only when they have failing checks or
merge conflicts
- include merge state in the PR closer query and close with the specific
reason
- keep existing exclusions for @jdx-authored and keep-open PRs

## Validation
- actionlint .github/workflows/pr-closer.yml
- git diff --check
- jq filter sample validation

<!-- CURSOR_SUMMARY -->
---

> [!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-closer` GitHub 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 `mergeStateStatus` and 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 adds `concurrency` plus additional read
permissions (`checks`, `statuses`) to support the new filtering.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
34aded28f6. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2026-05-17 11:59:54 -05:00
..
check-dist.yml chore(ci): add zizmor workflow for github actions security analysis (#471) 2026-05-12 15:00:12 -05:00
ci.yml chore(ci): add zizmor workflow for github actions security analysis (#471) 2026-05-12 15:00:12 -05:00
codeql-analysis.yml fix(ci): pin codeql-action with exact version comment (#481) 2026-05-17 11:54:13 -05:00
pr-closer.yml chore(ci): close failing or conflicted PRs sooner (#480) 2026-05-17 11:59:54 -05:00
release-plz.yml chore(ci): add zizmor workflow for github actions security analysis (#471) 2026-05-12 15:00:12 -05:00
release.yml chore(ci): add zizmor workflow for github actions security analysis (#471) 2026-05-12 15:00:12 -05:00
test-redacted-env.yml chore(ci): add zizmor workflow for github actions security analysis (#471) 2026-05-12 15:00:12 -05:00
test.yml fix: install mise-shim.exe on Windows (#476) 2026-05-14 14:38:13 -05:00
zizmor.yml chore(ci): add zizmor workflow for github actions security analysis (#471) 2026-05-12 15:00:12 -05:00