From 20de2015b8fa77cfbf40ad73a03a6dbcb835b646 Mon Sep 17 00:00:00 2001 From: Mario Apra Date: Mon, 21 Oct 2024 17:14:47 +0100 Subject: [PATCH] Add workflow to close stale issues and PRs Introduce a GitHub Actions workflow to automatically close stale issues and pull requests. This helps maintain repository hygiene by reducing clutter from inactive items. The workflow marks issues as stale after 35 days of inactivity and closes them 14 days later if no further activity occurs. The issues and PRs that have a milestone assigned will not be looked at by the bot. This means that it is still possible to plan work that won't be worked for some time --- .github/workflows/close-stale.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/close-stale.yml diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml new file mode 100644 index 000000000..3f9490f20 --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,15 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 35 days with no activity. Remove stale label or comment or this will be closed in 14 days.' + days-before-stale: 35 + days-before-close: 14 + exempt-all-milestones: true