Skip to content

Commit b3022d2

Browse files
committed
Fix whitespace in elapsed time badge
1 parent 063d4ad commit b3022d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dotnet-trx/TrxCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ static void GitHubReport(TrxSettings settings, Summary summary, StringBuilder de
298298

299299
static StringBuilder AppendBadges(Summary summary, StringBuilder builder, string elapsed, string? jobUrl)
300300
{
301+
elapsed = elapsed.Replace(" ", "%20");
302+
301303
// ![5 passed](https://img.shields.io/badge/❌-linux%20in%2015m%206s-blue) ![5 passed](https://img.shields.io/badge/os-macOS%20✅-blue)
302304
if (summary.Failed > 0)
303305
builder.Append(Link($"![{summary.Failed} failed](https://img.shields.io/badge/❌-{Runtime}%20in%20{elapsed}-blue)", jobUrl));

0 commit comments

Comments
 (0)