Fix ReferenceError
This commit is contained in:
parent
9b5f44a7f5
commit
500ff2d2a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue