From 6a29d112b0ca93bf3e0a31ce12cb263e55710ba2 Mon Sep 17 00:00:00 2001 From: Charles Vien Date: Tue, 26 May 2026 20:11:47 -0700 Subject: [PATCH] Add stale PR auto-close workflow --- .github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..495f9b988 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Close Stale PRs + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +concurrency: + group: stale-prs + cancel-in-progress: false + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-pr-stale: 30 + days-before-pr-close: 7 + days-before-issue-stale: -1 + days-before-issue-close: -1 + stale-pr-label: stale + stale-pr-message: "This PR has had no activity for 30 days and has been marked stale. It will be closed in 7 days if no further activity occurs." + close-pr-message: "Closing this PR due to inactivity. Feel free to reopen if you'd like to continue the work." + exempt-pr-labels: "no stale,security" + exempt-draft-pr: false