Change Slack room name in config
This commit is contained in:
parent
71e7deb060
commit
027f01ba55
|
@ -1,4 +1,4 @@
|
|||
pull-requests:
|
||||
new-pull-requests:
|
||||
project-board:
|
||||
name: 'Pipeline for QA'
|
||||
review-column-name: 'REVIEW'
|
||||
|
@ -8,4 +8,4 @@ pull-requests:
|
|||
|
||||
slack:
|
||||
notification:
|
||||
room: 'core'
|
||||
room: 'status-hubot'
|
|
@ -56,7 +56,7 @@ async function assignPullRequestToReview(gitHubContext, githubPayload, robot) {
|
|||
});
|
||||
|
||||
// Find "Pipeline for QA" project
|
||||
const projectBoardName = githubConfig['pull-requests']['project-board'].name;
|
||||
const projectBoardName = githubConfig['new-pull-requests']['project-board'].name;
|
||||
const project = ghprojects.data.find(function(p) { return p.name === projectBoardName });
|
||||
if (!project) {
|
||||
robot.logger.warn(`Couldn't find project ${projectBoardName} in repo ${ownerName}/${repoName}`);
|
||||
|
@ -69,7 +69,7 @@ async function assignPullRequestToReview(gitHubContext, githubPayload, robot) {
|
|||
try {
|
||||
ghcolumns = await github.projects.getProjectColumns({ project_id: project.id });
|
||||
|
||||
const reviewColumnName = githubConfig['pull-requests']['project-board']['review-column-name'];
|
||||
const reviewColumnName = githubConfig['new-pull-requests']['project-board']['review-column-name'];
|
||||
const column = ghcolumns.data.find(function(c) { return c.name === reviewColumnName });
|
||||
if (!column) {
|
||||
robot.logger.warn(`Couldn't find ${projectBoardName} column in project ${project.name}`);
|
||||
|
|
|
@ -34,7 +34,7 @@ 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()['pull-requests']['welcome-bot'].message;
|
||||
const welcomeMessage = gitHubContext.config()['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