From c8ffd36affe2d9875f22e699698a42187c3ef374 Mon Sep 17 00:00:00 2001 From: "zhaode.wzd" Date: Mon, 29 Jan 2024 17:25:11 +0800 Subject: [PATCH] add stale action to clear issue. --- .github/workflows/stale.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 000000000..185f0d071 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,26 @@ +name: stale + +on: + schedule: + - cron: '30 9 * * *' + +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 + stale-issue-message: 'Marking as stale. No activity in 60 days.' + stale-pr-message: 'Marking as stale. No activity in 60 days.' + stale-issue-label: 'stale' + stale-pr-label: 'stale' + remove-stale-when-updated: true + operations-per-run: 1000 + days-before-close: 3