From d2ae71f02c6b156c10eb45704d4424826aaa1604 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Thu, 2 May 2024 11:30:53 -0700 Subject: [PATCH] Update the EnforceMaxLifeOfIssues comment that is added to the issue. (#8185) --- .../EventProcessing/ScheduledEventProcessing.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor/EventProcessing/ScheduledEventProcessing.cs b/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor/EventProcessing/ScheduledEventProcessing.cs index ff0290f9d1a..74df2dadc7a 100644 --- a/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor/EventProcessing/ScheduledEventProcessing.cs +++ b/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor/EventProcessing/ScheduledEventProcessing.cs @@ -559,11 +559,11 @@ public static async Task LockClosedIssues(GitHubEventClient gitHubEventClient, S /// Resulting Action: /// Close the issue /// Add a comment: Hi @{issue.User.Login}, we deeply appreciate your input into this project. Regrettably, - /// this issue has remained inactive for over 2 years, leading us to the decision to close it. - /// We've implemented this policy to maintain the relevance of our issue queue and facilitate - /// easier navigation for new contributors. If you still believe this topic requires attention, - /// please feel free to create a new issue, referencing this one. Thank you for your understanding - /// and ongoing support. + /// this issue has remained unresolved for over 2 years and inactive for 30 days, leading us + /// to the decision to close it. We've implemented this policy to maintain the relevance of + /// our issue queue and facilitate easier navigation for new contributors. If you still believe + /// this topic requires attention, please feel free to create a new issue, referencing this + /// one. Thank you for your understanding and ongoing support. /// Lock the issue /// /// Authenticated GitHubEventClient @@ -611,7 +611,7 @@ public static async Task EnforceMaxLifeOfIssues(GitHubEventClient gitHubEventCli issue.Number, issueUpdate); // Add a comment - string comment = $"Hi @{issue.User.Login}, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support."; + string comment = $"Hi @{issue.User.Login}, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support."; gitHubEventClient.CreateComment(scheduledEventPayload.Repository.Id, issue.Number, comment);