From d26789a330d423a765cc9a5cf8ac81a2e8e6be2e Mon Sep 17 00:00:00 2001 From: melohagan <101575380+melohagan@users.noreply.github.com> Date: Fri, 13 Oct 2023 18:04:23 +0100 Subject: [PATCH] Bug warnings stale bot (#12053) * Bug warnings * Lower operations per run --- .github/workflows/stale_bot.yml | 43 +++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/.github/workflows/stale_bot.yml b/.github/workflows/stale_bot.yml index f87d561db9..49e3473e63 100644 --- a/.github/workflows/stale_bot.yml +++ b/.github/workflows/stale_bot.yml @@ -2,7 +2,7 @@ name: Close stale issues and PRs # https://github.com/actions/stale on: workflow_dispatch: schedule: - - cron: '*/30 * * * *' # Every 30 mins + - cron: "*/30 * * * *" # Every 30 mins jobs: stale: @@ -10,20 +10,37 @@ jobs: steps: - uses: actions/stale@v8 with: - # stale rules - days-before-stale: 60 + operations-per-run: 1 + # stale rules for PRs days-before-pr-stale: 7 stale-issue-label: stale - stale-issue-message: "This issue has been automatically marked as stale because it has not had any activity for 60 days." - - # close rules - # days after being marked as stale to close - days-before-close: 30 - close-issue-label: closed-stale - close-issue-message: This issue has been automatically closed it has not had any activity in 90 days." - days-before-pr-close: 7 - - # exemptions exempt-pr-labels: pinned,security,roadmap + days-before-pr-close: 7 + - uses: actions/stale@v8 + with: + operations-per-run: 3 + # stale rules for high priority bugs + days-before-stale: 30 + only-issue-labels: bug,High priority + stale-issue-label: warn + + - uses: actions/stale@v8 + with: + operations-per-run: 3 + # stale rules for medium priority bugs + days-before-stale: 90 + only-issue-labels: bug,Medium priority + stale-issue-label: warn + + - uses: actions/stale@v8 + with: + operations-per-run: 3 + # stale rules for all bugs + days-before-stale: 180 + stale-issue-label: stale + only-issue-labels: bug + stale-issue-message: "This issue has been automatically marked as stale because it has not had any activity for six months." + + days-before-close: 30