Skip to content

Commit 95efaf0

Browse files
authored
Fix GitHub URLs and comment bodies (dotnet#77)
1 parent d037eba commit 95efaf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TriageBuildFailures/GitHub/GitHubClientWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public async Task<IEnumerable<IssueComment>> GetIssueComments(GitHubIssue issue)
9595

9696
public async Task CreateComment(GitHubIssue issue, string comment)
9797
{
98-
comment += $"\n\nThis comment was made automatically. If there is a problem contact {Config.BuildBuddyUsername}.";
98+
comment = $"This comment was made automatically. If there is a problem contact {Config.BuildBuddyUsername}.\n\n{comment}";
9999

100100
await Client.Issue.Comment.Create(issue.RepositoryOwner, issue.RepositoryName, issue.Number, comment);
101101
}

src/TriageBuildFailures/Handlers/HandleTestFailures.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This test failed on {build.BranchName}.
138138

139139
foreach (var test in testAggregates)
140140
{
141-
Reporter.Output($"Adding test failure comment to issue {test.Key}");
141+
Reporter.Output($"Adding test failure comment to issue {test.Key.HtmlUrl}");
142142
await GHClient.CommentOnTest(build, test.Key, test.Value);
143143
}
144144
}

0 commit comments

Comments
 (0)