Skip to content

Commit 9abea64

Browse files
committed
fix the table
1 parent 13d002a commit 9abea64

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

internal/cmd/root.go

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,17 @@ func displayTableStats(stats *StatsCollector) {
475475
}
476476

477477
// 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+
)
485489

486490
fmt.Println(top)
487491
fmt.Println(head)

0 commit comments

Comments
 (0)