Skip to content

Commit 7a16972

Browse files
[patch] Update the formatting in slack message (#327)
1 parent 62b9981 commit 7a16972

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/mas-devops-notify-slack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def notifyAnsibleStart(channels: list[str], taskName: str, instanceId: str | Non
189189

190190
# Send task start message as thread reply to all channels
191191
taskMessage = [
192-
SlackUtil.buildSection(f"⏳ **{taskName}** - Started")
192+
SlackUtil.buildSection(f"⏳ *{taskName}* - Started")
193193
]
194194

195195
allSuccess = True
@@ -292,7 +292,7 @@ def notifyAnsibleComplete(channels: list[str], rc: int, taskName: str, instanceI
292292

293293
# Build the completion message
294294
taskMessage = [
295-
SlackUtil.buildSection(f"{emoji} **{taskName}** - {status}{durationText}")
295+
SlackUtil.buildSection(f"{emoji} *{taskName}* - {status}{durationText}")
296296
]
297297
if rc != 0:
298298
taskMessage.append(SlackUtil.buildSection(f"Return Code: `{rc}`\nCheck logs for details"))

0 commit comments

Comments
 (0)