From 03ceab9744035b3237202075501a51e7d36d06a4 Mon Sep 17 00:00:00 2001 From: shiyutang <34859558+shiyutang@users.noreply.github.com> Date: Fri, 30 Jun 2023 11:26:03 +0800 Subject: [PATCH] Create mark_stale_issue.yml --- .github/workflows/mark_stale_issue.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/mark_stale_issue.yml diff --git a/.github/workflows/mark_stale_issue.yml b/.github/workflows/mark_stale_issue.yml new file mode 100644 index 000000000..a567c2e87 --- /dev/null +++ b/.github/workflows/mark_stale_issue.yml @@ -0,0 +1,31 @@ +# 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: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: none + + steps: + - uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.' + stale-issue-label: 'stale' + close-issue-reason: 'The issue is stale and not response is provided after 7 days.' + exempt-issue-labels: 'bug, feature request, good first issue' + operations-per-run: 900 + days-before-pr-stale: -1 + days-before-pr-close: -1 + ascending: true +