Bind Gitlab webhook events to Kanboard automatic actions.
- Frederic Guillot
- License MIT
- Kanboard >= 1.0.29
- Gitlab webhooks configured for a project
You have the choice between 3 methods:
- Install the plugin from the Kanboard plugin manager in one click
- Download the zip file and decompress everything under the directory
plugins/GitlabWebhook
- Clone this repository into the folder
plugins/GitlabWebhook
Note: Plugin folder is case-sensitive.
Gitlab events can be connected to Kanboard automatic actions.
- Gitlab commit received
- Gitlab issue opened
- Gitlab issue closed
- Gitlab issue comment created
- Create a task from an external provider
- Close a task
- Create a comment from an external provider
- On Kanboard, go to the project settings and choose the section Integrations
- Copy the Gitlab webhook url
- On Gitlab, go to the project settings and go to the section Webhooks
- Check the boxes Push Events, Comments and Issues Events
- Paste the url and save
- Choose the event: Gitlab commit received
- Choose the action: Close the task
When one or more commits are sent to Gitlab, Kanboard will receive the information, each commit message with a task number included will be closed.
Example:
- Commit message: "Fix bug #1234"
- That will close the Kanboard task #1234
- Choose the event: Gitlab issue opened
- Choose the action: Create a task from an external provider
When a task is created from a Gitlab issue, the link to the issue is added to the description and the task have a new field named "Reference" (this is the Gitlab ticket number).
- Choose the event: Gitlab issue closed
- Choose the action: Close the task
- Choose the event: Gitlab issue reopened
- Choose the action: Open a task
- Choose the event: Gitlab issue comment created
- Choose the action: Create a comment from an external provider
If the username is the same between Gitlab and Kanboard the comment author will be assigned, otherwise there is no author. The user also have to be member of the project in Kanboard.