Print merged/closed in the same line as PR title

This commit is contained in:
rista404 2020-03-10 20:56:45 +01:00
parent e739d95c93
commit e803470b03

View file

@ -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 {