Skip to content

Commit

Permalink
Fix whitespace in elapsed time badge
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 8, 2024
1 parent 063d4ad commit b3022d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dotnet-trx/TrxCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ static void GitHubReport(TrxSettings settings, Summary summary, StringBuilder de

static StringBuilder AppendBadges(Summary summary, StringBuilder builder, string elapsed, string? jobUrl)
{
elapsed = elapsed.Replace(" ", "%20");

// ![5 passed](https://img.shields.io/badge/❌-linux%20in%2015m%206s-blue) ![5 passed](https://img.shields.io/badge/os-macOS%20✅-blue)
if (summary.Failed > 0)
builder.Append(Link($"![{summary.Failed} failed](https://img.shields.io/badge/❌-{Runtime}%20in%20{elapsed}-blue)", jobUrl));
Expand Down

0 comments on commit b3022d2

Please sign in to comment.