Show message when there are no PRs
This commit is contained in:
parent
196cdddb5e
commit
fee303699a
1 changed files with 6 additions and 0 deletions
|
|
@ -180,6 +180,12 @@ func prList(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if len(prs) == 0 {
|
||||
colorOut := colorableOut(cmd)
|
||||
printMessage(colorOut, "There are no open pull requests")
|
||||
return nil
|
||||
}
|
||||
|
||||
table := utils.NewTablePrinter(cmd.OutOrStdout())
|
||||
for _, pr := range prs {
|
||||
prNum := strconv.Itoa(pr.Number)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue