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.
This commit is contained in:
OpenSauce04 2024-07-28 12:39:37 +01:00
parent a9dd78b8be
commit 99f8259bf6

23
.github/workflows/stale-issues.yml vendored Normal file
View file

@ -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"