From 9e433660780e8f3f13ef1f931e009da026111582 Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Tue, 10 Dec 2024 10:36:48 -0800 Subject: [PATCH] Only stale triage/needs-information and triage/solved issues --- .github/workflows/stale.yaml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index fd2dc521b993..57ede4688342 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -12,13 +12,11 @@ jobs: if: github.repository == 'aws/karpenter-provider-aws' name: Stale issue bot steps: + # PR stale-out - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue has been inactive for 14 days. StaleBot will close this stale issue after 14 more days of inactivity.' - exempt-issue-labels: 'bug,chore,feature,documentation,testing,operational-excellence,automation,roadmap' - stale-issue-label: 'lifecycle/stale' - close-issue-label: 'lifecycle/closed' + only-issue-labels: 'ignore' # Ignore this step for Issues stale-pr-message: 'This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity.' exempt-pr-labels: 'blocked,needs-review,needs-design' stale-pr-label: 'lifecycle/stale' @@ -26,3 +24,27 @@ jobs: days-before-stale: 14 days-before-close: 14 operations-per-run: 300 + # Issue stale-out for "triage/needs-information" + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been inactive for 14 days. StaleBot will close this stale issue after 14 more days of inactivity.' + only-issue-labels: 'triage/needs-information' + stale-issue-label: 'lifecycle/stale' + close-issue-label: 'lifecycle/closed' + only-pr-labels: 'ignore' # Ignore this step for PRs + days-before-stale: 14 + days-before-close: 14 + operations-per-run: 300 + # Issue stale-out for "triage/solved" + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been inactive for 7 days and is marked as "triage/solved". StaleBot will close this stale issue after 7 more days of inactivity.' + only-issue-labels: 'triage/solved' + stale-issue-label: 'lifecycle/stale' + close-issue-label: 'lifecycle/closed' + only-pr-labels: 'ignore' # Ignore this step for PRs + days-before-stale: 7 + days-before-close: 7 + operations-per-run: 300