From bc27ba2a75f4646ea28170bd333de2cbf1c1c7bb Mon Sep 17 00:00:00 2001 From: Toshiya Doi Date: Fri, 13 Mar 2020 00:25:17 +0900 Subject: [PATCH] Only show the most recent PR for the current branch --- command/pr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/pr.go b/command/pr.go index 7a1b00047..94be3897c 100644 --- a/command/pr.go +++ b/command/pr.go @@ -99,7 +99,7 @@ func prStatus(cmd *cobra.Command, args []string) error { printHeader(out, "Current branch") if prPayload.CurrentPRs != nil { - printPrs(out, 0, prPayload.CurrentPRs...) + printPrs(out, 0, prPayload.CurrentPRs[0]) // Assume it is the most recent PR for the current branch } else { message := fmt.Sprintf(" There is no pull request associated with %s", utils.Cyan("["+currentPRHeadRef+"]")) printMessage(out, message)