diff --git a/.github/policies/author-action.yml b/.github/policies/author-action.yml index 282d5125c10..3f225f85883 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: @@ -12,7 +28,8 @@ configuration: label: needs-author-action then: - addReply: - reply: This issue has been marked `needs-author-action` and might be missing some important information. + reply: >- + @${issueAuthor} - This issue has been marked `needs-author-action` and might be missing some important information. - description: PR reviews with "changes requested" applies the needs-author-action label if: diff --git a/snippets/csharp/System/AggregateException/Overview/exception1.cs b/snippets/csharp/System/AggregateException/Overview/exception1.cs index 528965a8608..f151cd96345 100644 --- a/snippets/csharp/System/AggregateException/Overview/exception1.cs +++ b/snippets/csharp/System/AggregateException/Overview/exception1.cs @@ -21,7 +21,7 @@ static async Task Main(string[] args) { await task1; } - catch (UnauthorizedAccessException ae) + catch (UnauthorizedAccessException) { Console.WriteLine("Caught unauthorized access exception-await behavior"); }