From 74c4aa96a8f5816731d5eb5cc1d93add30674287 Mon Sep 17 00:00:00 2001 From: Wen Licheng Date: Mon, 26 Feb 2024 11:36:15 +0800 Subject: [PATCH] Create stable.yml --- .github/workflows/stable.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/stable.yml diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml new file mode 100644 index 0000000..926cbee --- /dev/null +++ b/.github/workflows/stable.yml @@ -0,0 +1,28 @@ +# 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 * * *' + workflow_dispatch: + +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 issue message, no activity' + stale-pr-message: 'Stale pull request message, no activity' + stale-issue-label: 'Stable' + stale-pr-label: 'no-pr-activity'