This will connect connect your Mattermost user with your GitLab user. You can
This will connect your Mattermost user with your GitLab user. You can
see all authorized chat accounts in your profile's page under **Chat**.
When the authorization process is complete, you can start interacting with
...
...
@@ -102,18 +126,14 @@ GitLab using the Mattermost commands.
The available slash commands so far are:
-`/<trigger> issue create <title>\n<description>` - Create a new issue to the
project that `<trigger>` is tied to.
-`/<trigger> issue show <issue-number>` - Show the issue with ID `<issue-number>`
from the project that `<trigger>` is tied to.
-`/<trigger> deploy <environment> to <environment>` - Start the CI job that
deploys from an environment to another, for example `staging` to `production`.
CI must be properly configured.
| Command | Description | Example |
| ------- | ----------- | ------- |
| `/<trigger> issue create <title>\n<description>` | Create a new issue in the project that `<trigger>` is tied to. `<description>` is optional. | `/trigger issue create We need to change the homepage` |
| `/<trigger> issue show <issue-number>` | Show the issue with ID `<issue-number>` from the project that `<trigger>` is tied to. | `/trigger issue show 42` |
| `/<trigger> deploy <environment> to <environment>` | Start the CI job that deploys from one environment to another, for example `staging` to `production`. CI/CD must be [properly configured][ciyaml]. | `/trigger deploy staging to production` |
If you enabled autocomplete when you created the Mattermost command, you can
use the autocomplete hint to see the available commands that can interact
with GitLab. If for example the autocomplete hint was set to `help` and the
command trigger word to `my-project`, then to see all available command type:
To see a list of available commands that can interact with GitLab, type the
trigger word followed by `help`:
```
/my-project help
...
...
@@ -126,5 +146,12 @@ command trigger word to `my-project`, then to see all available command type:
The permissions to run the [available commands](#available-commands) derive from
the [permissions you have on the project](../user/permissions.md#project).