From 6d7bbc8670d175fd63e8c834feb41f80e7b52e74 Mon Sep 17 00:00:00 2001 From: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com> Date: Mon, 21 Jul 2025 18:11:56 +0100 Subject: [PATCH] feat(ci): Add stale GitHub Action to automatically close stale PRs (#2924) Co-authored-by: Cem Aksoylar --- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..4804c38a1 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: "Mark and close stale PRs in the repo" +on: + schedule: + - cron: "00 14 * * *" # runs daily at 14:00 https://crontab.guru/#00_14_*_*_* + +jobs: + stale: + runs-on: ubuntu-24.04 + steps: + - uses: actions/stale@v9.1.0 + with: + days-before-pr-stale: 300 # ~10 months + stale-pr-label: "stale" + stale-pr-message: > + This PR has been automatically marked as stale because it has not + had activity in 10 months. It will be closed in 14 days if no + further activity occurs. Feel free to give a status update or + re-open when it has been rebased and is ready for review (again). + Thanks! + days-before-pr-close: 14 + close-pr-message: > + This PR was closed because it had no activity for over 10 months. + Feel free to give a status update or re-open when it has been + rebased and is ready for review (again). + days-before-issue-close: -1 + ascending: true # Process older PRs first + operations-per-run: 30 # Default value, listed here again to make it explicit