Skip to content

Commit

Permalink
Help displayed on invalid jenkins slash command (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulsmapara authored Jul 25, 2020
1 parent 5a0d254 commit 18ab5d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*mo
p.API.LogError("Error while creating the job.", err.Error())
return p.getCommandResponse(args, "Encountered an error while creating the job"), nil
}
default:
text := "###### Unknown Command: " + action + "\n" + "###### Mattermost Jenkins Plugin - Slash Command Help\n" + strings.Replace(helpText, "|", "`", -1)
return p.getCommandResponse(args, text), nil
}
return &model.CommandResponse{}, nil
}

0 comments on commit 18ab5d4

Please sign in to comment.