Skip to content
This repository was archived by the owner on May 24, 2019. It is now read-only.

Commit 3713949

Browse files
root360-AndreasUlmlafriks
authored andcommitted
skip empty pull requests (#17) (#18)
Signed-off-by: Andreas Ulm <[email protected]>
1 parent fb52920 commit 3713949

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/pulls.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ func runPulls(ctx *cli.Context) error {
4949
}
5050

5151
for _, pr := range prs {
52+
if pr == nil {
53+
continue
54+
}
5255
name := pr.Poster.FullName
5356
if len(name) == 0 {
5457
name = pr.Poster.UserName

0 commit comments

Comments
 (0)