From 50097fb8fc523471befae70ccc2d37a748ac3abb Mon Sep 17 00:00:00 2001 From: duguyihou Date: Tue, 1 Oct 2024 07:52:28 +1000 Subject: [PATCH] ci: update stale bot --- .github/workflows/stale-bot.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index d62308a..187b252 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,22 +1,25 @@ -name: Stale bot +name: 'Stale bot' on: + workflow_dispatch: schedule: - - cron: '30 1 * * *' - + - cron: '0 0 * * *' +permissions: + pull-requests: write + issues: write jobs: stale: runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write + timeout-minutes: 10 steps: - - uses: actions/stale@v9 + - uses: actions/stale@main + id: stale with: - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' - stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.' close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.' - days-before-issue-stale: 30 - days-before-pr-stale: 45 + days-before-issue-stale: 15 + days-before-pr-stale: 20 days-before-issue-close: 5 - days-before-pr-close: 10 + days-before-pr-close: 10 \ No newline at end of file