From e803470b03318758b9bf8aa37198f786bc998659 Mon Sep 17 00:00:00 2001 From: rista404 Date: Tue, 10 Mar 2020 20:56:45 +0100 Subject: [PATCH] Print merged/closed in the same line as PR title --- command/pr.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/command/pr.go b/command/pr.go index 7157d4a71..7a1b00047 100644 --- a/command/pr.go +++ b/command/pr.go @@ -405,11 +405,11 @@ func printPrs(w io.Writer, totalCount int, prs ...api.PullRequest) { checks := pr.ChecksStatus() reviews := pr.ReviewStatus() - if pr.State != "OPEN" || checks.Total > 0 || reviews.ChangesRequested || reviews.Approved { - fmt.Fprintf(w, "\n ") - } - if pr.State == "OPEN" { + if checks.Total > 0 || reviews.ChangesRequested || reviews.Approved { + fmt.Fprintf(w, "\n ") + } + if checks.Total > 0 { var summary string if checks.Failing > 0 {