TP-51020 | Fixed houston commands alignment issue (#324)

* TP-38709 | Merging the changes to master on the logfix

* TP-51020 | Added help commands button in incident channel which displays the list of supported commands

* TP-51020 | Fixed houston commands alignment issue
This commit is contained in:
Ajay Devarakonda
2023-12-14 16:43:18 +05:30
committed by GitHub
parent 51e249cef6
commit 29fbf519e5
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ func (action *HelpCommandsAction) ProcessAction(userID, channelID string, reques
command, helpText := util.SplitUntilWord(h, ":")
formattedHelpMessage += fmt.Sprintf("%-91s: %s\n", strings.TrimSpace(command), strings.TrimSpace(helpText))
}
err = appcontext.GetSlackService().PostEphemeralByChannelID(formattedHelpMessage, userID, false, channelID)
err = appcontext.GetSlackService().PostEphemeralByChannelID(fmt.Sprintf("```%s```", formattedHelpMessage), userID, false, channelID)
if err != nil {
logger.Error(fmt.Sprintf("%s failed to post help command response. %+v", helpCommandsLogTag, err))
}