Skip to content

Commit

Permalink
Correct the counts output by openapi-changes summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtansia authored and daveshanley committed May 21, 2024
1 parent 1b853b6 commit 9da9009
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,13 @@ func printSummaryDetails(commitHistory []*model.Commit, markdown bool) error {

if breaking == 0 {
if markdown {
pterm.Printf("**Total Changes**: _%d_\n", total)
pterm.Printf("- **Total Changes**: _%d_\n", total)
} else {
pterm.Info.Printf("Total Changes: %s\n", pterm.LightMagenta(total))
}
} else {
if markdown {
pterm.Printf("- ❌ **BREAKING Changes**: _%d_\n", total)
pterm.Printf("- ❌ **BREAKING Changes**: _%d_ out of _%d_\n", breaking, total)
} else {
errorStyle.Printf("❌ %d Breaking changes out of %d\n", breaking, total)
}
Expand All @@ -477,7 +477,7 @@ func printSummaryDetails(commitHistory []*model.Commit, markdown bool) error {
if markdown {
pterm.Printf("- **Modifications**: _%d_\n", overallStatistics.Modified)
} else {
pterm.Info.Printf("Modifications: %s\n", pterm.LightMagenta())
pterm.Info.Printf("Modifications: %s\n", pterm.LightMagenta(overallStatistics.Modified))
}
}
if overallStatistics.Removed > 0 {
Expand Down

0 comments on commit 9da9009

Please sign in to comment.