Slash commands in Mattermost and Slack allow you to control GitLab and view GitLab content right inside your chat client, without having to leave it. For Slack, this requires an integration configuration. Simply type the command as a message in your chat client to activate it.
Commands are scoped to a project, with a trigger term that is specified during configuration.
We suggest you use the project name as the trigger term for simplicity and clarity.
Taking the trigger term as
project-name, the 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 issue ID |
|Adds a new comment to an issue with ID |
|Deploy from the |
|Execute ChatOps job |
Note that if you are using the GitLab Slack application for
your GitLab.com projects, you need to add the
gitlab keyword at the beginning of the command.
It is possible to create new issue, display issue details and search up to 5 issues.
In order to deploy to an environment, GitLab will try to find a deployment manual action in the pipeline.
If there is only one action for a given environment, it is going to be triggered. If there is more than one action defined, GitLab will try to find an action which name equals the environment name we want to deploy to.
Command will return an error when no matching action has been found.