diff --git a/cmd/pulls_status.go b/cmd/pulls_status.go index b4348b1..64b78a8 100644 --- a/cmd/pulls_status.go +++ b/cmd/pulls_status.go @@ -27,6 +27,9 @@ func doPullStatus(ctx *cli.Context) error { var pr *gitea.PullRequest for _, pull := range pulls { + if pull.Head == nil { + continue + } compare := fmt.Sprintf("%s:%s", pull.Head.Repository.Owner.UserName, pull.Head.Name) if compare == head { pr = pull