Receives merge request events from GitLab for one project. You do not call it yourself: GitLab does. A merged merge request merges its branch.
HTTP
POST /integrations/gitlab/webhook/{projectId}Access: No token needed.
Path parameters #
| Parameter | Description |
|---|---|
projectId | The id of the project. |
Response 202 #
The event was handled. handled is merged or ignored.
JSON
{ "handled": "merged" }Response 204 #
The event is of no interest. There is no body.
Errors #
| Status | error | When |
|---|---|---|
| 401 | invalid_token | The X-Gitlab-Token header does not match the token of the project. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.
Notes #
Merge requests from forks are ignored.