From 356314b94c2f125829f8f31ee89a1ea234d7f3c8 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:58:33 -0700 Subject: [PATCH] Auto-close stale issues --- .github/policies/author-action.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/policies/author-action.yml b/.github/policies/author-action.yml index 282d5125c10..10871d948ff 100644 --- a/.github/policies/author-action.yml +++ b/.github/policies/author-action.yml @@ -1,9 +1,25 @@ name: GitOps.PullRequestIssueManagement -description: Add and remove needs-author-action label to issues and PRs +description: Add and remove needs-author-action label from issues and PRs, and close stale issues. resource: repository configuration: resourceManagementConfiguration: + scheduledSearches: + - frequencies: + - daily: + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: needs-author-action + - noActivitySince: + days: 14 + actions: + - addReply: + reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. + - closeIssue + eventResponderTasks: - description: Needs-author-action notification if: