diff --git a/scripts/greet-new-contributor.js b/scripts/greet-new-contributor.js index 1259d6e..12ee9e2 100644 --- a/scripts/greet-new-contributor.js +++ b/scripts/greet-new-contributor.js @@ -34,7 +34,8 @@ module.exports = function(robot) { async function greetNewContributor(gitHubContext, githubPayload, robot) { // TODO: Read the welcome message from a (per-repo?) file (e.g. status-react.welcome-msg.md) const github = gitHubContext.api(); - const welcomeMessage = gitHubContext.config()['new-pull-requests']['welcome-bot'].message; + const githubConfig = gitHubContext.config(); + const welcomeMessage = githubConfig['new-pull-requests']['welcome-bot'].message; const ownerName = githubPayload.repository.owner.login; const repoName = githubPayload.repository.name; const prNumber = githubPayload.pull_request.number;