You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,25 @@
1
-
#openproject-gitlab-integration
1
+
## Introducing OpenProject GitLab Integration v2.1 GA
2
2
3
-
## NEW VERSION 2.0.6 GA
3
+
Based on the OpenProject Github Integration, this plugin offers the same functionalities plus other new features. This is the first version that includes the visualization of the status of the *Pipelines* (by now, it is considered in Beta status). You can test it by activating the Pipelines event in the GitLab webhook. Just keep in mind that not all pipelines will be reflected in OpenProject, only Merge Request type pipelines (for more information see the GitLab issue https://gitlab.com/gitlab-org/gitlab/-/issues/345028). Any feedback about the pipelines feature would be very appreciated, whether it works or if issues arise (you can use this ticket https://github.com/btey/openproject-gitlab-integration/issues/43).
4
4
5
-
Based on the current Github integration (OpenProject 12), this plugin offers the same functionalities as the current plugin for Github (and something else). This version includes changes to the DB and a new view similar to the current Github tab. Only the management of "pipelines" is pending an open issue in Gitlab (https://gitlab.com/gitlab-org/gitlab/-/issues/345028).
5
+
In this version it has also been implemented that **all linked or referenced** Issues appear in the GitLab tab (https://github.com/btey/openproject-gitlab-integration/issues/34). The opportunity has also been taken to redesign how the information is presented so that it is visually easy to read and at the same time can continue to provide all the information, including labels and pipeline status.
If there are labels related to the Issue or MR, a button with the label icon will appear. By clicking the button you can show/hide the associated labels.
8
8
9
-
This 2.x version includes a UI with all linked MRs, their status, their labels and the last pipeline *(pending the Gitlab issue)*.
* Latest OpenProject release tested: **12.2.1** (for OpenProject versions earlier than 12.2.0 use v2.0.5, and for version earlier than 12.1.0 use v2.0.4)
This plugin is based on the current [plugin to integrate Github with OpenProject](https://www.openproject.org/docs/system-admin-guide/integrations/github-integration/).
17
13
18
-
The reference system is the same as for GitHub integration. You can use a link to the work package or just use “OP#87” or "PP#87" in the title in Gitlab.
14
+
## Overview
19
15
20
-
> **Note about the references.** Whether or not to include the reference in certain places depends on the information that Gitlab sends through its webhook. If you include the reference in the title of an issue, the comments on the issue do not need to include the reference. The same will happen when you generate a Merge Request based on an Issue that already includes the reference; comments from that MR need not include the reference.
16
+
OpenProject module for integration with GitLab:
17
+
* Latest Gitlab release tested: **16.5.1**
18
+
* Latest OpenProject release tested: **13.0.7**
19
+
20
+
The reference system is based on the same system as for GitHub integration. You can use a link to the work package or just use “OP#87” or "PP#87" in the title/description of the Issue/MR in GitLab.
21
+
22
+
> **Note about the references.** Whether or not to include the reference in certain places depends on the information that GitLab sends through its webhook. If you include the reference in the title/description of an issue, the comments on the issue do not need to include the reference. The same will happen when you generate a Merge Request based on an Issue that already includes the reference; comments from that MR need not include the reference.
21
23
22
24
#### Difference between OP and PP
23
25
@@ -31,7 +33,7 @@ OpenProject will **add comments** to work package for the following events:
31
33
* Issue (Opened, Closed)
32
34
* Push commits in Merge Requests
33
35
* Comments (on Issues, Merge Request, Commits and Snippets)
34
-
**Pipelines (pending)*
36
+
* Pipelines (Beta feature)
35
37
36
38
OpenProject will **update WP status** in this events:
37
39
@@ -42,7 +44,7 @@ OpenProject will **update WP status** in this events:
42
44
43
45
## Example workflow
44
46
45
-
A typical workflow on Gitlab side would be:
47
+
A typical workflow on GitLab side would be:
46
48
47
49
1.**Create Issue.**
48
50
@@ -157,7 +159,7 @@ Add the following in **Gemfile.lock**:
157
159
PATH
158
160
remote: modules/gitlab_integration
159
161
specs:
160
-
openproject-gitlab_integration (2.0.6)
162
+
openproject-gitlab_integration (2.1)
161
163
openproject-webhooks
162
164
```
163
165
@@ -190,7 +192,7 @@ bundle install --deployment --without mysql2 sqlite development test therubyrace
190
192
bundle config set deployment
191
193
```
192
194
193
-
### The Gitlab Bot user in OpenProject
195
+
### The GitLab Bot user in OpenProject
194
196
195
197
First you will need to create a user in OpenProject that will make the comments. The user will have to be added to each project with a role that allows them to comment on work packages and change status.
196
198
@@ -202,13 +204,13 @@ Once the user is created you need to generate an OpenProject API token for it to
202
204
* Click on generate in the API row.
203
205
* Copy the generated key. You can now configure the necessary webhook in Gitlab.
204
206
205
-
### The webhook in Gitlab
207
+
### The webhook in GitLab
206
208
207
-
In Gitlab you have to set up a webhook in each repository to be integrated with OpenProject.
209
+
In GitLab you have to set up a webhook in each repository to be integrated with OpenProject.
208
210
209
211
You need to configure just two things in the webhook:
210
212
211
-
1. The URL must point to your OpenProject server’s Gitlab webhook endpoint (/webhooks/gitlab). Append it to the URL as a simple GET parameter named key. In the end the URL should look something like this:
213
+
1. The URL must point to your OpenProject server’s GitLab webhook endpoint (/webhooks/gitlab). Append it to the URL as a simple GET parameter named key. In the end the URL should look something like this:
@@ -223,10 +225,12 @@ You need to configure just two things in the webhook:
223
225
3. Issues events
224
226
225
227
4. Merge request events
228
+
229
+
5. Pipeline events
226
230
227
231
Now the integration is set up on both sides and you can use it.
228
232
229
-
> **Note:** If you are installing and configuring OpenProject on the same server as Gitlab you will need to enable in Gitlab the option "Allow requests to the local network from web hooks and services" so that it can send the data locally to the OpenProject webhook since they will be on the same machine.
233
+
> **Note:** If you are installing and configuring OpenProject on the same server as GitLab you will need to enable in Gitlab the option "Allow requests to the local network from web hooks and services" so that it can send the data locally to the OpenProject webhook since they will be on the same machine.
0 commit comments