Skip to content

Commit 8de9330

Browse files
authored
Migrate setup/config/usage to Product Docs (#494)
1 parent d013ec1 commit 8de9330

File tree

1 file changed

+2
-115
lines changed

1 file changed

+2
-115
lines changed

README.md

Lines changed: 2 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Originally developed by [Romain Maneschi](https://github.com/manland). This proj
1515

1616
**Co-Maintainer:** [@hanzei](https://github.com/hanzei)
1717

18+
See the [Mattermost Product Documentation](https://docs.mattermost.com/integrate/integrate/gitlab-interoperability.html) for details on installing, configuring, enabling, and using this Mattermost integration.
19+
1820
## Feature summary of GitLab to Mattermost notifications
1921

2022
### Channel subscriptions
@@ -42,121 +44,6 @@ Each user in Mattermost is connected with their own personal GitLab account. Use
4244

4345
Team members can stay up-to-date with how many reviews, todos, assigned issues, and assigned merge requests they have by using buttons in the Mattermost sidebar.
4446

45-
## Admin guide
46-
47-
Get started by installing the GitLab plugin from the Marketplace.
48-
49-
### Prerequisites
50-
51-
* The GitLab plugin is included in the Plugin Marketplace in Mattermost v5.16 and above.
52-
* For Mattermost v5.13 and earlier, a manual install is necessary.
53-
54-
## Installation
55-
56-
### Marketplace installation
57-
58-
1. Go to **Main Menu > Plugin Marketplace** in Mattermost.
59-
2. Search for "gitlab" or manually find the plugin from the list and select **Install**.
60-
3. After the plugin has downloaded and been installed, select the **Configure** button.
61-
62-
### Manual installation
63-
64-
If your server doesn't have access to the internet, you can download the latest [plugin binary release](https://github.com/mattermost/mattermost-plugin-gitlab/releases) and upload it to your server via **System Console > Plugins > Plugin Management**. The releases on this page are the same used by the Marketplace.
65-
66-
See the [GitLab plugin release page](https://github.com/mattermost/mattermost-plugin-gitlab/releases) for compatibility considerations.
67-
68-
## Configuration
69-
70-
### Step 1: Register an OAuth application in GitLab
71-
72-
1. Go to https://gitlab.com/-/profile/applications or https://gitlab.yourdomain.com/-/profile/applications to register an OAuth app.
73-
1. Set the following values:
74-
- **Name**: `Mattermost GitLab Plugin - <your company name>`
75-
- **Redirect URI**: `https://your-mattermost-url.com/plugins/com.github.manland.mattermost-plugin-gitlab/oauth/complete`, replacing `https://your-mattermost-url.com` with your Mattermost URL
76-
1. Select `api` and `read_user` in **Scopes**.
77-
1. Save the application. Copy the **Application ID** and **Secret** fields in the resulting screen.
78-
1. In Mattermost, go to **Plugins Marketplace > GitLab > Configure**, and enter the **GitLab URL**, **GitLab OAuth Client ID**, and **GitLab OAuth Client Secret**.
79-
80-
### Step 2: Configure the plugin in Mattermost
81-
82-
1. Go to **System Console > Plugins > GitLab** and do the following:
83-
- Generate a new value for **Webhook Secret**.
84-
- Generate a new value for **At Rest Encryption Key**.
85-
- (Optional) **GitLab Group**: Lock the plugin to a single GitLab group by setting this field to the name of your GitLab group.
86-
- (Optional) **Enable Private Repositories**: Allow the plugin to receive notifications from private repositories by setting this value to `true`. When enabled, existing users must reconnect their accounts to gain access to private project. Affected users will be notified by the plugin once private repositories are enabled.
87-
1. Select **Save**.
88-
1. Go to **Plugins Marketplace > GitLab > Configure > Enable Plugin** and select **Enable** to enable the GitLab plugin.
89-
90-
### Step 3: Connect your GitLab accounts
91-
92-
Run the `/gitlab connect` slash command to connect your Mattermost account with GitLab.
93-
94-
### Step 4: Subscribe to projects and groups
95-
96-
For each project you want to receive notifications for or subscribe to, you must create a webhook. Run the subscribe slash command to watch events sent from GitLab.
97-
98-
``/gitlab subscriptions add group[/project]``
99-
100-
Run the webhook slash command to have GitLab send events to Mattermost.
101-
102-
``/gitlab webhook add group[/project]``
103-
104-
For versions prior to 1.2:
105-
106-
1. In GitLab, go to the project you want to subscribe to, select **Settings > Integrations** in the sidebar.
107-
2. Set the following values:
108-
- **URL**: `https://your-mattermost-url.com/plugins/com.github.manland.mattermost-plugin-gitlab/webhook`, replacing `https://your-mattermost-url.com` with your Mattermost URL. Ensure that you add `/plugins/com.github.manland.mattermost-plugin-gitlab/webhook` to the URL or the webhook won't work.
109-
- **Secret Token**: The webhook secret you copied previously.
110-
3. Select all the events in **Triggers**.
111-
4. Add the webhook.
112-
113-
### Compatibility
114-
115-
| Mattermost-Plugin-Gitlab| Mattermost | GitLab |
116-
|:-----------------------:|:----------:|:------:|
117-
| 0.3.0 | 5.10+ | 11.2+ |
118-
| 0.2.0 | 5.8+ | 11.2+ |
119-
| 0.1.0 | 5.8+ | 11.2+ |
120-
121-
### Update the plugin
122-
123-
When a new version of the plugin is released to the **Plugin Marketplace**, the system will display a prompt asking you to update your current version of the GitLab plugin to the newest one. There may be a warning shown if there is a major version change that **may** affect the installation. Generally, updates are seamless and don't interrupt the user experience in Mattermost.
124-
125-
## Mattermost commands user guide
126-
127-
Interact with the GitLab plugin using the `/gitlab` slash command.
128-
129-
### Subscribe to/unsubscribe from a repository
130-
131-
Use `/gitlab subscriptions add owner[/repo] [features]` to subscribe a Mattermost channel to receive posts for new merge requests and/or issues, or other features (as listed above), from a GitLab repository. Ensure that the webhook is configured, otherwise this will not work properly.
132-
133-
Use `/gitlab subscriptions delete owner/repo` to unsubscribe from it.
134-
135-
`/gitlab subscriptions list` lists what you have subscribed to.
136-
137-
### Connect to/disconnect from GitLab
138-
139-
Connect your Mattermost account to your GitLab account using `/gitlab connect` and disconnect it using`/gitlab disconnect`.
140-
141-
`/gitlab me` displays the connected GitLab account.
142-
143-
### Get "To Do" items
144-
145-
Use `/gitlab todo` to get a list of todos, assigned issues, assigned merge requests and merge requests awaiting your review.
146-
147-
### Update settings
148-
149-
Use `/gitlab settings [setting] [value]` to update your settings for the plugin. There are two settings:
150-
151-
- To turn **personal notifications** `on` or `off`.
152-
- To turn **reminders** `on` or `off` for when you connect for the first time each day.
153-
154-
### And more...
155-
156-
Run `/gitlab help` to see what else the slash command can do.
157-
158-
**Tip**: Don't forget to add a webhook in GitLab!
159-
16047
## Development
16148

16249
This plugin contains both a server and web app portion. Read our documentation about the [Developer Workflow](https://developers.mattermost.com/integrate/plugins/developer-workflow/) and [Developer Setup](https://developers.mattermost.com/integrate/plugins/developer-setup/) for more information about developing and extending plugins.

0 commit comments

Comments
 (0)