@@ -475,13 +475,17 @@ func displayTableStats(stats *StatsCollector) {
475
475
}
476
476
477
477
// Build header row with correct alignment and color, matching body formatting
478
- headCells := []string {
479
- fmt .Sprintf ("%-*s" , repoCol , colorizeBold ("Repository" , blue )),
480
- fmt .Sprintf ("%*s" , colWidths [1 ], colorizeBold ("PRs Combined" , blue )),
481
- fmt .Sprintf ("%-*s" , colWidths [2 ], colorizeBold ("Skipped" , blue )),
482
- fmt .Sprintf ("%-*s" , colWidths [3 ], colorizeBold ("Status" , blue )),
483
- }
484
- head := "│ " + strings .Join (headCells , " │ " ) + " │"
478
+ headRepo := fmt .Sprintf ("%-*s" , repoCol , colorizeBold ("Repository" , blue ))
479
+ headCombined := fmt .Sprintf ("%*s" , colWidths [1 ], colorizeBold ("PRs Combined" , blue ))
480
+ headSkipped := fmt .Sprintf ("%-*s" , colWidths [2 ], colorizeBold ("Skipped" , blue ))
481
+ headStatus := fmt .Sprintf ("%-*s" , colWidths [3 ], colorizeBold ("Status" , blue ))
482
+ head := fmt .Sprintf (
483
+ "│ %-*s │ %s │ %s │ %s │" ,
484
+ repoCol , headRepo ,
485
+ headCombined ,
486
+ headSkipped ,
487
+ headStatus ,
488
+ )
485
489
486
490
fmt .Println (top )
487
491
fmt .Println (head )
0 commit comments