Skip to content

Commit fee3036

Browse files
committed
Show message when there are no PRs
1 parent 196cddd commit fee3036

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

command/pr.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ func prList(cmd *cobra.Command, args []string) error {
180180
return err
181181
}
182182

183+
if len(prs) == 0 {
184+
colorOut := colorableOut(cmd)
185+
printMessage(colorOut, "There are no open pull requests")
186+
return nil
187+
}
188+
183189
table := utils.NewTablePrinter(cmd.OutOrStdout())
184190
for _, pr := range prs {
185191
prNum := strconv.Itoa(pr.Number)

0 commit comments

Comments
 (0)