Skip to content

Commit 9da9009

Browse files
Xtansiadaveshanley
authored andcommitted
Correct the counts output by openapi-changes summary
1 parent 1b853b6 commit 9da9009

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/summary.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ func printSummaryDetails(commitHistory []*model.Commit, markdown bool) error {
462462

463463
if breaking == 0 {
464464
if markdown {
465-
pterm.Printf("**Total Changes**: _%d_\n", total)
465+
pterm.Printf("- **Total Changes**: _%d_\n", total)
466466
} else {
467467
pterm.Info.Printf("Total Changes: %s\n", pterm.LightMagenta(total))
468468
}
469469
} else {
470470
if markdown {
471-
pterm.Printf("- ❌ **BREAKING Changes**: _%d_\n", total)
471+
pterm.Printf("- ❌ **BREAKING Changes**: _%d_ out of _%d_\n", breaking, total)
472472
} else {
473473
errorStyle.Printf("❌ %d Breaking changes out of %d\n", breaking, total)
474474
}
@@ -477,7 +477,7 @@ func printSummaryDetails(commitHistory []*model.Commit, markdown bool) error {
477477
if markdown {
478478
pterm.Printf("- **Modifications**: _%d_\n", overallStatistics.Modified)
479479
} else {
480-
pterm.Info.Printf("Modifications: %s\n", pterm.LightMagenta())
480+
pterm.Info.Printf("Modifications: %s\n", pterm.LightMagenta(overallStatistics.Modified))
481481
}
482482
}
483483
if overallStatistics.Removed > 0 {

0 commit comments

Comments
 (0)