From 99f8259bf6da5e1b39d8a9c217fae6f4f156ed3f Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Sun, 28 Jul 2024 12:39:37 +0100 Subject: [PATCH] ci: Added stale action for issues - Issues which have seen no activity for 70 days will be marked as stale. - If no activity is seen for a further 20 days, the issue will be closed. - Issues which have been given a priority are immune from being marked as stale. --- .github/workflows/stale-issues.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 000000000..0ab5add80 --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,23 @@ +name: lime-stale-issues + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale-issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/stale@v9.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-issue-stale: 70 + days-before-issue-close: 20 + stale-issue-message: "This issue has been marked as stale. If there is no activity within the next 20 days, this issue will be closed." + close-issue-message: "This issue has been closed as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + remove-issue-stale-when-updated: true + exempt-issue-labels: "priority - low,priority - medium,priority - high,priority - urgent,documentation"