Skip to content

Commit 4610d25

Browse files
Merge pull request #10602 from dotnet/main
Merge main into live
2 parents c5985b9 + 3ff77d3 commit 4610d25

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/policies/author-action.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
name: GitOps.PullRequestIssueManagement
2-
description: Add and remove needs-author-action label to issues and PRs
2+
description: Add and remove needs-author-action label from issues and PRs, and close stale issues.
33
resource: repository
44

55
configuration:
66
resourceManagementConfiguration:
7+
scheduledSearches:
8+
- frequencies:
9+
- daily:
10+
time: 12:00
11+
filters:
12+
- isIssue
13+
- isOpen
14+
- hasLabel:
15+
label: needs-author-action
16+
- noActivitySince:
17+
days: 14
18+
actions:
19+
- addReply:
20+
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.
21+
- closeIssue
22+
723
eventResponderTasks:
824
- description: Needs-author-action notification
925
if:
@@ -12,7 +28,8 @@ configuration:
1228
label: needs-author-action
1329
then:
1430
- addReply:
15-
reply: This issue has been marked `needs-author-action` and might be missing some important information.
31+
reply: >-
32+
@${issueAuthor} - This issue has been marked `needs-author-action` and might be missing some important information.
1633
1734
- description: PR reviews with "changes requested" applies the needs-author-action label
1835
if:

snippets/csharp/System/AggregateException/Overview/exception1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static async Task Main(string[] args)
2121
{
2222
await task1;
2323
}
24-
catch (UnauthorizedAccessException ae)
24+
catch (UnauthorizedAccessException)
2525
{
2626
Console.WriteLine("Caught unauthorized access exception-await behavior");
2727
}

0 commit comments

Comments
 (0)