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: