Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 75e2fcd

Browse files
authored
Update readme with details for v2.1
1 parent 88613af commit 75e2fcd

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

README.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
# openproject-gitlab-integration
1+
## Introducing OpenProject GitLab Integration v2.1 GA
22

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).
44

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.
66

7-
![OP-Gitlab](https://user-images.githubusercontent.com/14983519/143622798-13d1c50b-1186-46e0-a2da-9f50fb14a338.png)
7+
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.
88

9-
This 2.x version includes a UI with all linked MRs, their status, their labels and the last pipeline *(pending the Gitlab issue)*.
10-
## Introduction
9+
<img width="531" src="https://github.com/btey/openproject-gitlab-integration/assets/14983519/00b19597-2b1b-4b93-9a20-155c40efeb3f">
1110

12-
OpenProject module for integration with Gitlab:
13-
* Latest Gitlab release tested: **15.3.1**
14-
* 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)
11+
<img width="532" src="https://github.com/btey/openproject-gitlab-integration/assets/14983519/98fd20f7-83c2-4003-aca9-f33657e1b4cb">
1512

16-
This plugin is based on the current [plugin to integrate Github with OpenProject](https://www.openproject.org/docs/system-admin-guide/integrations/github-integration/).
1713

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
1915

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.
2123
2224
#### Difference between OP and PP
2325

@@ -31,7 +33,7 @@ OpenProject will **add comments** to work package for the following events:
3133
* Issue (Opened, Closed)
3234
* Push commits in Merge Requests
3335
* Comments (on Issues, Merge Request, Commits and Snippets)
34-
* *Pipelines (pending)*
36+
* Pipelines (Beta feature)
3537

3638
OpenProject will **update WP status** in this events:
3739

@@ -42,7 +44,7 @@ OpenProject will **update WP status** in this events:
4244
4345
## Example workflow
4446

45-
A typical workflow on Gitlab side would be:
47+
A typical workflow on GitLab side would be:
4648

4749
1. **Create Issue.**
4850

@@ -157,7 +159,7 @@ Add the following in **Gemfile.lock**:
157159
PATH
158160
remote: modules/gitlab_integration
159161
specs:
160-
openproject-gitlab_integration (2.0.6)
162+
openproject-gitlab_integration (2.1)
161163
openproject-webhooks
162164
```
163165

@@ -190,7 +192,7 @@ bundle install --deployment --without mysql2 sqlite development test therubyrace
190192
bundle config set deployment
191193
```
192194

193-
### The Gitlab Bot user in OpenProject
195+
### The GitLab Bot user in OpenProject
194196

195197
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.
196198

@@ -202,13 +204,13 @@ Once the user is created you need to generate an OpenProject API token for it to
202204
* Click on generate in the API row.
203205
* Copy the generated key. You can now configure the necessary webhook in Gitlab.
204206

205-
### The webhook in Gitlab
207+
### The webhook in GitLab
206208

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.
208210

209211
You need to configure just two things in the webhook:
210212

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:
212214

213215
```
214216
http://openproject-url.com/webhooks/gitlab?key=ae278268
@@ -223,10 +225,12 @@ You need to configure just two things in the webhook:
223225
3. Issues events
224226

225227
4. Merge request events
228+
229+
5. Pipeline events
226230

227231
Now the integration is set up on both sides and you can use it.
228232

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.
230234
231235
## How to report bugs or issues
232236

0 commit comments

Comments
 (0)