Slash commands in Mattermost and Slack
Moved from GitLab Ultimate to GitLab Free in 11.9.
If you want to control and view GitLab content while you’re working in Slack and Mattermost, you can use slash commands. Type the command as a message in your chat client to activate it. For Slack, this requires an integration configuration.
Slash commands are scoped to a project and require a specified trigger command during configuration. You should use the project name as the trigger command.
If you’re using the GitLab for Slack app for
your GitLab.com projects, add the
gitlab keyword at the beginning of the command
/gitlab <project-name> issue show <id>).
project-name is the trigger command, the slash commands are:
|Shows all available slash commands.|
|Creates a new issue with title |
|Shows the issue with ID |
|Closes the issue with ID |
|Shows up to 5 issues matching |
|Moves the issue with ID |
|Adds a new comment with comment body |
Deploys from the |
|Executes the ChatOps job |
You can create a new issue, display issue details, and search up to 5 issues.
To deploy to an environment, GitLab tries to find a deployment manual action in the pipeline.
If there’s only one action for a given environment, it is triggered. If more than one action is defined, GitLab finds an action name that equals the environment name to deploy to.
The command returns an error if no matching action is found.