From 0094464dad9bd4304d30a94aa39f30d94403a013 Mon Sep 17 00:00:00 2001 From: Sophie Schoenmeyer <107952697+sophies927@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:31:58 -0700 Subject: [PATCH] Create new stale issue workflow Create new stale issue workflow that breaks up existing workflow into 4 separate parts: 1) Apply stale label to issues with no activity for 30 days 2) Remove stale label if someone comments on a stale issue 3) Close issues labeled stale with no activity for an additional 30 days 4) Reopen issue if someone comments on closed stale issue Will temporarily disable existing stale issue workflow before merging this one for testing purposes If this workflow works, I'll remove the old one + corresponding files --- .github/workflows/new_stale_close.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/new_stale_close.yml diff --git a/.github/workflows/new_stale_close.yml b/.github/workflows/new_stale_close.yml new file mode 100644 index 0000000000000..7adcba18957a3 --- /dev/null +++ b/.github/workflows/new_stale_close.yml @@ -0,0 +1,21 @@ +name: Close Stale Issues +description: Close stale issues that have not been updated in 30 days +resource: repository +configuration: + resourceManagementConfiguration: + scheduledSearches: + - frequencies: + - daily: + time: 15:00 + filters: + - hasLabel: + label: stale + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 30 + actions: + - addReply: + reply: "Closing issue due to no activity in 90 days" + - closeIssue