From c3208910ac518aea8b78312a2ff00004411297ac Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:39:40 -0700 Subject: [PATCH 1/3] remove confusing exception variable name (#10592) --- .../csharp/System/AggregateException/Overview/exception1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } From 4337a1fd2c345125b90b54032d89da596adb08d4 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:41:21 -0700 Subject: [PATCH 2/3] Auto-close stale issues (#10594) --- .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: From 3ff77d3ee9368107301fab66750b4c0b3a658917 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 21 Oct 2024 08:22:53 -0700 Subject: [PATCH 3/3] @mention issue author (#10593) --- .github/policies/author-action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/policies/author-action.yml b/.github/policies/author-action.yml index 10871d948ff..3f225f85883 100644 --- a/.github/policies/author-action.yml +++ b/.github/policies/author-action.yml @@ -28,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: