skip empty pull requests (#17) (#18)

Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
This commit is contained in:
Andreas Ulm 2019-04-23 18:13:39 +02:00 committed by Lauris BH
parent fb52920af9
commit 3713949934
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ func runPulls(ctx *cli.Context) error {
} }
for _, pr := range prs { for _, pr := range prs {
if pr == nil {
continue
}
name := pr.Poster.FullName name := pr.Poster.FullName
if len(name) == 0 { if len(name) == 0 {
name = pr.Poster.UserName name = pr.Poster.UserName