Skip to content

Commit 606d44e

Browse files
committed
links outside of table
1 parent 8294049 commit 606d44e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

internal/cmd/root.go

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -538,13 +538,9 @@ func displayTableStats(stats *StatsCollector) {
538538
// Print summary row in table style
539539
summaryLabel := fmt.Sprintf("%-*s", repoCol, "Summary")
540540
summaryCombined := fmt.Sprintf("%*d", colWidths[1], stats.PRsCombined)
541-
// Skipped: just a single total value number
542541
totalSkipped := stats.PRsSkippedMergeConflict + stats.PRsSkippedCriteria
543-
summarySkipped := fmt.Sprintf("%d", totalSkipped)
544-
summarySkipped = fmt.Sprintf("%-*s", colWidths[2], summarySkipped)
545-
// Status: count like "3 repos"
546-
summaryStatus := fmt.Sprintf("%d repos", stats.ReposProcessed)
547-
summaryStatus = fmt.Sprintf("%-*s", colWidths[3], summaryStatus)
542+
summarySkipped := fmt.Sprintf("%-*s", colWidths[2], fmt.Sprintf("%d", totalSkipped))
543+
summaryStatus := fmt.Sprintf("%-*s", colWidths[3], fmt.Sprintf("%d repos", stats.ReposProcessed))
548544
fmt.Printf(
549545
"│ %-*s │ %s │ %s │ %s │\n",
550546
repoCol, summaryLabel,
@@ -553,19 +549,18 @@ func displayTableStats(stats *StatsCollector) {
553549
summaryStatus,
554550
)
555551

556-
// Print horizontal line (same as sep) to section off PR links
557552
fmt.Println(sep)
558553

559-
// Print PR links block: no vertical lines, just one PR link per line in the bottom section of the table
554+
// Print PR links block: label row, then each link as a plain line (no table formatting)
560555
if len(stats.CombinedPRLinks) > 0 {
561556
prLinksLabel := fmt.Sprintf("%-*s", repoCol, "Links to Combined PRs")
562557
fmt.Printf("│ %-*s │\n", repoCol, prLinksLabel)
558+
// Print each link as a plain line, not inside the table
563559
for _, link := range stats.CombinedPRLinks {
564-
fmt.Printf("│ %-*s │\n", repoCol, link)
560+
fmt.Println(link)
565561
}
566562
}
567563

568-
// Print bottom border
569564
fmt.Println(bot)
570565
}
571566

0 commit comments

Comments
 (0)