From d9092903e5691c129a56e0771957216e4b84aaba Mon Sep 17 00:00:00 2001 From: Nerd Signals Date: Sat, 28 Sep 2024 15:59:59 -0400 Subject: [PATCH] Create stale.yml to automate closing old issues and PRs --- .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..ed62617 --- /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: '41 14 * * *' + +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: 60 + days-before-close: 30 + stale-issue-message: 'This issue has been inactive for 60 days. In 30 days it will be closed unless you reply or make a change.' + stale-pr-message: 'This PR has been inactive for 60 days. In 30 days it will be closed unless you add a comment or make a change.' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity'