Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the EnforceMaxLifeOfIssues comment that is added to the issue. #8185

Merged
merged 1 commit into from
May 2, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// </summary>
/// <param name="gitHubEventClient">Authenticated GitHubEventClient</param>
Expand Down Expand Up @@ -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);
Expand Down