Skip to content

Commit

Permalink
Also mark prereleases as yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Feb 27, 2024
1 parent 3763365 commit 3e31c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NuPU/UpdateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static string Uncolored(string input)
private static string Colored(NuGetVersion currentVersion, NuGetVersion newVersion)
{
if (currentVersion.Major != newVersion.Major) return $"[red]{newVersion}[/]";
else if (currentVersion.Minor != newVersion.Minor) return $"[yellow]{newVersion}[/]";
else if (currentVersion.Minor != newVersion.Minor || newVersion.IsPrerelease) return $"[yellow]{newVersion}[/]";
else return $"[green]{newVersion}[/]";
}

Expand Down

0 comments on commit 3e31c60

Please sign in to comment.