From 66e320ee890c0b388185c38659e7f434d34333fe Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Tue, 4 Jun 2024 09:00:10 -0400 Subject: [PATCH] improve stale bot --- .github/workflows/stale.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index b671fc094..3e941d7cf 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,10 +10,22 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' + # Do not mark issues with these labels + exempt-issue-labels: "bug,enhancement,WIP" + stale-issue-message: > + This issue has not seen any activity in the past 60 days. + It is now marked as stale and will be closed in 7 days if + no further activity is registered. + # Do not mark PRs with these labels + exempt-pr-labels: 'WIP,Blocked-by-other-PR' + stale-pr-message: > + This PR has not seen any activity in the past 60 days. + It is now marked as stale and will be closed in 7 days if + no further activity is registered. stale-issue-label: 'no-issue-activity' stale-pr-label: 'no-pr-activity' + days-before-stale: 60 + days-before-close: 7