Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #66 from rhuss/master
Browse files Browse the repository at this point in the history
fix nil reference
  • Loading branch information
rhuss authored Feb 6, 2019
2 parents 563a66a + eed913e commit 915b175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/webhook/auto_merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func mergePR(issue *github.Issue, pr *github.PullRequest, owner, repository stri
}

for _, check := range prChecks.CheckRuns {
logger.Debug("found PR check", zap.String("name", *check.Name), zap.String("conclusion", *check.Conclusion), zap.String("ref", commitSHA))

logger.Debug("found PR check", zap.String("name", *check.Name), zap.Any("conclusion", check.Conclusion), zap.String("ref", commitSHA))
prStatusMap[*check.Name] = check.Conclusion != nil && *check.Conclusion == checkEventSuccessConclusion

}
Expand Down

0 comments on commit 915b175

Please sign in to comment.