avoid ReferenceError with logger (#203)
avoid ReferenceError with logger (#203)

If the environment variable NODE_REPO_DIR is defined and the spawnSync
returns a non-zero code, then `logger` is used to log the response. But
it is not assigned any value yet, as it is in TDZ.
nodejs/github-bot,phillipj/github-bot