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