From f329bbc1b6dd08f0d677d369f77ef8cfcae4fcef Mon Sep 17 00:00:00 2001 From: Yongchang Hao <20069446+yongchanghao@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:07:58 -0600 Subject: [PATCH] Add issue management workflow Stale in 7 days + close in 3 days. --- .github/workflows/stale.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..5332910 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,33 @@ +# 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: '0 0 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v9.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'Stale due to inactivity. Closing in 3 days if no further activities.' + close-issue-message: 'Close due to inactivity' + stale-issue-label: 'no-issue-activity' + days-before-pr-stale: -1 + days-before-issue-stale: 7 + days-before-issue-close: 3 + exempt-issue-assignees: true + + +