From c1de22dec1619d594d725d56f075084b24b21930 Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Mon, 16 Oct 2023 15:47:47 -0700 Subject: [PATCH] Remove `stale` and `obsolete` from PR's on update Bug example: https://github.com/googleforgames/agones/issues/1782 Shouldn't have closed, but instead was. I assume because it was still labeled as "obsolete", and it had been 30 days - but only the stale label had been removed. I added `labels-to-remove-when-unstale` to all the operations, since I'm not sure which operation does the work (and figured it couldn't hurt). --- .github/workflows/close.yaml | 1 + .github/workflows/obsolete.yaml | 1 + .github/workflows/stale.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/close.yaml b/.github/workflows/close.yaml index e5f274a20d..d20026b406 100644 --- a/.github/workflows/close.yaml +++ b/.github/workflows/close.yaml @@ -43,3 +43,4 @@ jobs: close-issue-reason: not_planned stale-issue-label: wontfix enable-statistics: true + labels-to-remove-when-unstale: stale,obsolete diff --git a/.github/workflows/obsolete.yaml b/.github/workflows/obsolete.yaml index 150697d111..fbd185b690 100644 --- a/.github/workflows/obsolete.yaml +++ b/.github/workflows/obsolete.yaml @@ -39,6 +39,7 @@ jobs: 'awaiting-maintainer' label. Thank you for your contributions stale-issue-label: obsolete only-labels: stale + labels-to-remove-when-unstale: stale,obsolete exempt-issue-labels: awaiting-maintainer remove-stale-when-updated: true ascending: true diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index fff9e73fa6..1235eb68bf 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -42,3 +42,4 @@ jobs: exempt-issue-labels: awaiting-maintainer, obsolete ascending: true enable-statistics: true + labels-to-remove-when-unstale: stale,obsolete