Fix ReferenceError

This commit is contained in:
Pedro Pombeiro 2018-01-20 10:38:08 +01:00
parent 9b5f44a7f5
commit 500ff2d2a6
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 2 additions and 1 deletions

View File

@ -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;