Skip to content

Commit d5c7bdb

Browse files
committed
Add runtime information to GH message
This allows to distinguish otherwise apparently duplicated messages when running tests across multiple OSes
1 parent fe3e151 commit d5c7bdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dotnet-trx/TrxCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.ComponentModel;
44
using System.IO;
55
using System.Linq;
6+
using System.Runtime.InteropServices;
67
using System.Text;
78
using System.Text.RegularExpressions;
89
using System.Threading.Tasks;
@@ -250,7 +251,7 @@ static void GitHubReport(Summary summary, StringBuilder details)
250251
}
251252

252253
sb.AppendLine(
253-
$"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped)");
254+
$"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped) via {RuntimeInformation.FrameworkDescription} on {RuntimeInformation.OSDescription}");
254255

255256
if (TryExecute("gh", $"pr comment {pr} --body-file -", sb.ToString(), out var link))
256257
WriteLine($"::notice title=Added summary as [pull-request comment]({link})");

0 commit comments

Comments
 (0)