Skip to content

Commit 6f151ce

Browse files
committed
Fix here mension false
1 parent 737efb9 commit 6f151ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SlackPrNotification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var authorName = process.env.PULL_REQUEST_AUTHOR_NAME;
1010
var authorIconUrl = process.env.PULL_REQUEST_AUTHOR_ICON_URL;
1111
var compareBranchName = process.env.PULL_REQUEST_COMPARE_BRANCH_NAME;
1212
var baseBranchName = process.env.PULL_REQUEST_BASE_BRANCH_NAME;
13-
var sendHereMention = process.env.IS_SEND_HERE_MENTION ? "<!here>\n" : "";
13+
var sendHereMention = process.env.IS_SEND_HERE_MENTION.toLowerCase() === "true" ? "<!here>\n" : "";
1414
var message = {
1515
blocks: [
1616
{

SlackPrNotification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const authorIconUrl: string = process.env.PULL_REQUEST_AUTHOR_ICON_URL;
1111
const compareBranchName: string = process.env.PULL_REQUEST_COMPARE_BRANCH_NAME;
1212
const baseBranchName: string = process.env.PULL_REQUEST_BASE_BRANCH_NAME;
1313

14-
const sendHereMention: string = process.env.IS_SEND_HERE_MENTION ? "<!here>\n" : "";
14+
const sendHereMention: string = process.env.IS_SEND_HERE_MENTION.toLowerCase() === "true" ? "<!here>\n" : "";
1515

1616
const message: Object = {
1717
blocks: [

0 commit comments

Comments
 (0)