From 500ff2d2a6afd66d1e6c2e62a2bb9f6691176749 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Sat, 20 Jan 2018 10:38:08 +0100 Subject: [PATCH] Fix ReferenceError --- scripts/greet-new-contributor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;