Skip to content

Commit c57152f

Browse files
committed
display the count or dry run
1 parent 8f3ac1e commit c57152f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

internal/cmd/output.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,20 @@ func displaySummaryTable(stats *StatsCollector) {
236236
21, // Fixed width for the skipped column
237237
)
238238

239+
summaryRowPRCount := interface{}(len(stats.CombinedPRLinks))
240+
241+
if summaryRowPRCount == 0 && dryRun {
242+
summaryRowPRCount = "DRY RUN"
243+
}
244+
239245
// Generate the summary row
240246
summaryRow := fmt.Sprintf(
241-
"│ %-13d │ %-13d │ %s%s │ %-13d │",
247+
"│ %-13d │ %-13d │ %s%s │ %-13v │",
242248
stats.ReposProcessed,
243249
stats.PRsCombined,
244250
skippedSummaryText,
245251
summaryPadding,
246-
len(stats.CombinedPRLinks),
252+
summaryRowPRCount,
247253
)
248254

249255
// Print the summary table

0 commit comments

Comments
 (0)