Skip to content

Commit 4c23c80

Browse files
Interpolate username properly (#19)
1 parent 755c8aa commit 4c23c80

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

β€Ždist/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12106,7 +12106,7 @@ function postSlackNotification(slackToken, slackChannel, environment, status, co
1210612106
commitText = `<${payloadForPushes.compare}|${beforeSha} β‡’ ${afterSha} ${shortShaMessage}>`;
1210712107
}
1210812108
// message formatting reference - https://api.slack.com/reference/surfaces/formatting
12109-
const text = `<${repoUrl}|${repo.repo}> deployment πŸš€ to <${deploymentUrl}|${environment}> by @${actor} completed with ${status} ${statusIcon} - ${commitText}`;
12109+
const text = `<${repoUrl}|${repo.repo}> deployment πŸš€ to <${deploymentUrl}|${environment}> by <@${actor}> completed with ${status} ${statusIcon} - ${commitText}`;
1211012110
const slackClient = new web_api_1.WebClient(slackToken);
1211112111
const slackParams = {
1211212112
channel: slackChannel,

β€Ždist/post/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11973,7 +11973,7 @@ function postSlackNotification(slackToken, slackChannel, environment, status, co
1197311973
commitText = `<${payloadForPushes.compare}|${beforeSha} β‡’ ${afterSha} ${shortShaMessage}>`;
1197411974
}
1197511975
// message formatting reference - https://api.slack.com/reference/surfaces/formatting
11976-
const text = `<${repoUrl}|${repo.repo}> deployment πŸš€ to <${deploymentUrl}|${environment}> by @${actor} completed with ${status} ${statusIcon} - ${commitText}`;
11976+
const text = `<${repoUrl}|${repo.repo}> deployment πŸš€ to <${deploymentUrl}|${environment}> by <@${actor}> completed with ${status} ${statusIcon} - ${commitText}`;
1197711977
const slackClient = new web_api_1.WebClient(slackToken);
1197811978
const slackParams = {
1197911979
channel: slackChannel,

β€Žpackage-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "action-deploy",
3-
"version": "2.1.2",
3+
"version": "2.1.4",
44
"private": true,
55
"description": "Action to manage GitHub deployments",
66
"main": "lib/main.js",

β€Žsrc/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function postSlackNotification (
6969
}
7070

7171
// message formatting reference - https://api.slack.com/reference/surfaces/formatting
72-
const text = `<${repoUrl}|${repo.repo}> deployment πŸš€ to <${deploymentUrl}|${environment}> by @${actor} completed with ${status} ${statusIcon} - ${commitText}`
72+
const text = `<${repoUrl}|${repo.repo}> deployment πŸš€ to <${deploymentUrl}|${environment}> by <@${actor}> completed with ${status} ${statusIcon} - ${commitText}`
7373
const slackClient = new WebClient(slackToken)
7474
const slackParams: ChatPostMessageArguments = {
7575
channel: slackChannel,

0 commit comments

Comments
Β (0)