diff --git a/config/application.properties b/config/application.properties index 147d224..74fa48f 100644 --- a/config/application.properties +++ b/config/application.properties @@ -88,8 +88,8 @@ get-teams.v2.enabled=GET_TEAMS_V2_ENABLED slack.workspace.id=SLACK_WORKSPACE_ID navi.jira.base.url=https://navihq.atlassian.net/ -houston.channel.help.message=```/houston: General command to open the other options| /houston severity: Opens the view to update severity of the incident| /houston set severity to : Sets the incident severity| /houston team: Opens the view to update team| /houston set team to : Sets the incident team| /houston status: Opens the view to set status| /houston set status to : Sets the incident status| /houston description: Opens the view to set incident description| /houston set description to : Sets the incident description| /houston resolve: Opens the view to fill RCA and resolve| /houston rca: Opens the view to fill RCA``` -non.houston.channel.help.message=```/houston: General command to open the other options| /houston start: Opens the view to start a new incident| /houston start title description : Starts an incident of a specific severity and team``` +houston.channel.help.message=/houston: General command to open the other options| /houston severity: Opens the view to update severity of the incident| /houston set severity to : Sets the incident severity| /houston team: Opens the view to update team| /houston set team to : Sets the incident team| /houston status: Opens the view to set status| /houston set status to : Sets the incident status| /houston description: Opens the view to set incident description| /houston set description to : Sets the incident description| /houston resolve: Opens the view to fill RCA and resolve| /houston rca: Opens the view to fill RCA +non.houston.channel.help.message=/houston: General command to open the other options| /houston start: Opens the view to start a new incident| /houston start title description : Starts an incident of a specific severity and team jira.base.url=JIRA_BASE_URL jira.username=JIRA_USERNAME diff --git a/internal/processor/action/help_commands_submit_action.go b/internal/processor/action/help_commands_submit_action.go index 5234ba7..1cafb6c 100644 --- a/internal/processor/action/help_commands_submit_action.go +++ b/internal/processor/action/help_commands_submit_action.go @@ -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)) }