Handle missing head_commit, only handle push/pull_request events.