Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/policies/author-action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down