From 28618367ea18e4f18b72ada9ea0cbb31d85eca38 Mon Sep 17 00:00:00 2001 From: wheatley Date: Sat, 2 Jul 2022 17:38:29 +1000 Subject: [PATCH] Add bot to help keep the issue backlog clean. (#2447) * Create stale.yml * Updated with exemptions and days * updated closed days and message * Update stale.yml --- .github/workflows/stale.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..cd041e197 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,35 @@ +# 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: '18 23 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 7 + days-before-pr-stale: 14 + days-before-close: 7 + days-before-pr-close: 14 + stale-issue-message: 'This issue as been marked as stale due to inactivity and will be closed in 7 days' + stale-pr-message: 'Stale pull request message' + stale-issue-label: 'Stale' + stale-pr-label: 'no-pr-activity' + exempt-issue-labels: 'Critical, High, Low, Medium, Review, Backlog' + exempt-milestones: true + exempt-draft-pr: true + debug-only: true