From 707bb65dac0addc7055ec1b47f3ac440bb438de7 Mon Sep 17 00:00:00 2001 From: Niels Pardon Date: Fri, 5 Jun 2026 10:47:26 +0200 Subject: [PATCH] ci: add stale PR workflow Signed-off-by: Niels Pardon --- .github/workflows/stale.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..e1ece759b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +name: 'Close stale PRs' +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v10 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-issue-stale: -1 # don't operate on issues + stale-pr-message: | + This PR has been automatically marked as stale because it has not had + recent activity. It will be closed in 7 days if no further activity occurs. + + close-pr-message: | + This PR has been automatically closed due to inactivity. + If you believe this was closed in error, please reopen it.