Improve PR Slack message
This commit is contained in:
parent
0d4088415c
commit
c4e4d3c003
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue