From b05f9f902cc73030ce86589fa12a18fc7959193e Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Mon, 2 Dec 2024 09:05:53 -0800 Subject: [PATCH] chore(gh): update stale workflow (#543) - Updated `actiojns/stale` from v4.x.x to v9.0.0. - Pin GitHub Actions to release commit SHA. Signed-off-by: Ryan Johnson --- .github/workflows/stale.yml | 42 +++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f21c4699..d87198b3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,27 +1,47 @@ -name: "Stale issues and pull requests" +--- +name: Manage Stale Items on: schedule: - - cron: "30 17 * * *" + - cron: 00 00 * * * jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - - uses: actions/stale@v4 + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - operations-per-run: 100 days-before-stale: 60 days-before-close: 30 - any-of-labels: dco-required, needs-more-info, waiting-customer-response + exempt-issue-labels: needs-triage + exempt-pr-labels: needs-review remove-stale-when-updated: true labels-to-remove-when-unstale: stale + delete-branch: false stale-issue-label: stale - stale-issue-message: | - Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. - If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! + stale-issue-message: > + Marking this issue as stale due to inactivity. This helps us focus + on the active issues. If this issue receives no comments in the next + 30 days it will automatically be closed. + + + If this issue was automatically closed and you feel this issue + should be reopened, we encourage creating a new issue linking back + to this one for added context. + + Thank you! stale-pr-label: stale - stale-pr-message: | - Marking this pull request as stale due to inactivity. This helps us focus on the active pull requests. If this pull request receives no comments in the next 30 days it will automatically be closed. - If this pull request was automatically closed and you feel this pull request should be reopened, we encourage creating a new pull request linking back to this one for added context. Thank you! + stale-pr-message: > + Marking this pull request as stale due to inactivity. This helps us + focus on the active pull requests. If this pull request receives no + comments in the next 30 days it will automatically be closed. + + If this pull request was automatically closed and you feel this pull + request should be reopened, we encourage creating a new pull request + linking back to this one for added context. + + Thank you!