fix(status): end pr status with a single line break

pr status printed a blank line after its last section.

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-11 23:55:13 +02:00
1 parent 70295e521c
commit 2c14ec2adf
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ pull requests you created, those assigned to you, and those that request your re
if a.options.json != "" { if a.options.json != "" {
return a.writeJSON(cmd, result) return a.writeJSON(cmd, result)
} }
return a.writeHuman(cmd, currentBranchSection(d, branch, current, details)+pullStatusText(d, result, t.Repo)) return a.writeHuman(cmd, strings.TrimSuffix(currentBranchSection(d, branch, current, details)+pullStatusText(d, result, t.Repo), "\n"))
} }
runsRepo, runsSource := t.Repo, t.RepoSource runsRepo, runsSource := t.Repo, t.RepoSource
if runs && runsRepo == "" { if runs && runsRepo == "" {
-1
View File
@@ -111,6 +111,5 @@ Assigned to you
Requesting a code review from you Requesting a code review from you
Nothing here Nothing here
`, stripLinks(out.String())) `, stripLinks(out.String()))
} }