From 93cb714ff5eeddba07e23ec1a4c04833b2d94380 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sun, 7 Jul 2024 16:59:04 -0300 Subject: [PATCH] Add runtime information to GH message This allows to distinguish otherwise apparently duplicated messages when running tests across multiple OSes --- src/dotnet-trx/TrxCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dotnet-trx/TrxCommand.cs b/src/dotnet-trx/TrxCommand.cs index 6e97d2c..be0018d 100644 --- a/src/dotnet-trx/TrxCommand.cs +++ b/src/dotnet-trx/TrxCommand.cs @@ -3,6 +3,7 @@ using System.ComponentModel; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -250,7 +251,7 @@ static void GitHubReport(Summary summary, StringBuilder details) } sb.AppendLine( - $"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped)"); + $"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped) via {RuntimeInformation.FrameworkDescription} on {RuntimeInformation.OSDescription}"); if (TryExecute("gh", $"pr comment {pr} --body-file -", sb.ToString(), out var link)) WriteLine($"::notice title=Added summary as [pull-request comment]({link})");