From 9122f0764031dc36970df715bc5e16973890e18d Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Sun, 12 Feb 2023 10:43:56 -0700 Subject: [PATCH] chore: Update stale bot settings (#16870) * chore: Update stale bot settings * Incorporate feedback --- .github/workflows/stale.yml | 8 +++++--- docs/src/maintain/review-pull-requests.md | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 2ccae47cf05..cffc79faf88 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -21,10 +21,12 @@ jobs: - uses: actions/stale@v7 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 60 + days-before-issue-stale: 30 + days-before-pr-stale: 10 days-before-close: 7 stale-issue-message: 'Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update.' - stale-pr-message: 'Oops! It looks like we lost track of this pull request. What do we want to do here? This pull request will auto-close in 7 days without an update.' + close-issue-message: 'This issue was auto-closed due to inactivity. While we wish we could keep responding to every issue, we unfortunately don''t have the bandwidth and need to focus on high-value issues.' + stale-pr-message: 'Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.' + close-pr-message: 'This pull request was auto-closed due to inactivity. While we wish we could keep working on every request, we unfortunately don''t have the bandwidth to continue here and need to focus on other things. You can resubmit this pull request if you would like to continue working on it.' exempt-all-assignees: true exempt-issue-labels: accepted - exempt-pr-labels: accepted diff --git a/docs/src/maintain/review-pull-requests.md b/docs/src/maintain/review-pull-requests.md index 6705a81d603..976a7fd1696 100644 --- a/docs/src/maintain/review-pull-requests.md +++ b/docs/src/maintain/review-pull-requests.md @@ -92,16 +92,16 @@ If the pull request was created from a branch on the `eslint/eslint` repository There are several times when it's appropriate to close a pull request without merging: 1. The pull request addresses an issue that is already fixed -1. The pull request hasn't been updated in 30 days +1. The pull request hasn't been updated in 17 days 1. The pull request submitter isn't willing to follow project guidelines. In any of these cases, please be sure to leave a comment stating why the pull request is being closed. ### Example Closing Comments -If a pull request hasn't been updated in 30 days: +If a pull request hasn't been updated in 17 days: -> Closing because there hasn't been activity for 30 days. If you're still interested in submitting this code, please feel free to resubmit. +> Closing because there hasn't been activity for 17 days. If you're still interested in submitting this code, please feel free to resubmit. If a pull request submitter isn't willing to follow project guidelines.