Improve PR Slack message

This commit is contained in:
Pedro Pombeiro 2018-01-20 00:27:29 +01:00
parent 0d4088415c
commit c4e4d3c003
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ async function assignPullRequestToReview(gitHubContext, githubPayload, robot) {
robot.logger.debug(`Created card: ${ghcard.data.url}`, ghcard.data.id);
// Send message to Slack
robot.messageRoom(githubConfig.slack.notification.room, `Moved PR ${githubPayload.pull_request.number} to ${reviewColumnName} in ${projectBoardName} project`);
robot.messageRoom(githubConfig.slack.notification.room, `Moved PR #${githubPayload.pull_request.number} (${githubPayload.pull_request.title}) to ${reviewColumnName} in ${projectBoardName} project\n${githubPayload.pull_request.html_url}`);
} catch (err) {
robot.logger.error(`Couldn't create project card for the PR: ${err}`, column.id, githubPayload.pull_request.id);
}

View File

@ -73,7 +73,7 @@ async function createAccessToken(robot, github, id) {
type: 'token',
token: response.data.token
});
} catch (err) {
} catch (err) {
robot.logger.error(`Couldn't create installation token: ${err}`, id);
}
}