Don't treat no active PR as an error
This commit is contained in:
parent
19d02404cd
commit
5a10f2350f
1 changed files with 2 additions and 1 deletions
|
|
@ -91,7 +91,8 @@ func prView(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
} else if prPayload.CurrentPR == nil {
|
||||
branch := currentBranch()
|
||||
return fmt.Errorf("The [%s] branch has no open PRs", branch)
|
||||
fmt.Printf("The [%s] branch has no open PRs", branch)
|
||||
return nil
|
||||
}
|
||||
openURL = prPayload.CurrentPR.URL
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue