From 224ed15032ae6ae55ea7d1aa052785cbfee2e576 Mon Sep 17 00:00:00 2001 From: Ilias Tsakiridis Date: Mon, 22 Sep 2025 02:55:55 +0300 Subject: [PATCH] chore: add stale workflow to manage inactive issues/PRs Add a GitHub Actions workflow, 'stale.yml', to automatically manage stale issues and pull requests. This workflow marks issues and PRs as stale after 30 days of inactivity and closes them if no action is taken within an additional 5 days. This change helps maintain repository hygiene by reducing the number of inactive issues and PRs. Exempt labels include 'enhancement' and 'bug'. --- .github/workflows/stale.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000..3aa1a36 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,29 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '19 4 * * *' + +jobs: + stale: + permissions: + actions: write + issues: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v10 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 30 + days-before-close: 5 + exempt-issue-labels: 'enhancement,bug' + exempt-pr-labels: 'enhancement,bug'