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 != "" {
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
if runs && runsRepo == "" {