From f503488618a47d8179da144534cc65241569776f Mon Sep 17 00:00:00 2001 From: rezzorix <72935517+rezzorix@users.noreply.github.com> Date: Sun, 11 Sep 2022 14:54:33 +0800 Subject: [PATCH] Create stale-bot.yml --- .github/workflows/stale-bot.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/stale-bot.yml diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 000000000..34a42d60f --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,22 @@ +name: 'Automatically close stale issues and PRs' +on: + schedule: + - cron: '0 0 * * *' +#Run once a day at midnight + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v5 + with: + stale-issue-message: 'We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-pr-message: 'We are clearing up our old Pull Requests and yours has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' + days-before-stale: 90 + days-before-close: 7 + exempt-issue-labels: 'News,Medium,High,discussion,bug,doc,feature-request' + exempt-pr-labels: 'awaiting-approval,work-in-progress,enhancement,feature-request' + exempt-issue-assignees: 'louislam' + exempt-pr-assignees: 'louislam'