Only show the most recent PR for the current branch
This commit is contained in:
parent
3c4f006eff
commit
bc27ba2a75
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue