Webhook map
issue(issue)mergeRequest(mergeRequest)note(note)pipeline(pipeline)push(push)
HTTP handler setup
app/api/webhook/route.ts
Events
Issue
Issue
issue
An issue event from GitLab (open, update, close)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object_kind | issue | Yes | — |
event_type | string | No | — |
user | object | No | — |
project | object | No | — |
object_attributes | object | No | — |
user full type
user full type
project full type
project full type
object_attributes full type
object_attributes full type
Response data full type
Response data full type
webhookHooks example
Merge Request
Merge Request
mergeRequest
A merge request event from GitLab (open, update, merge, close)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object_kind | merge_request | Yes | — |
event_type | string | No | — |
user | object | No | — |
project | object | No | — |
object_attributes | object | No | — |
user full type
user full type
project full type
project full type
object_attributes full type
object_attributes full type
Response data full type
Response data full type
webhookHooks example
Note
Note
note
A comment event from GitLab (new comments on issues, MRs, commits)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object_kind | note | Yes | — |
event_type | string | No | — |
user | object | No | — |
project | object | No | — |
object_attributes | object | No | — |
issue | object | No | — |
merge_request | object | No | — |
commit | object | No | — |
user full type
user full type
project full type
project full type
object_attributes full type
object_attributes full type
issue full type
issue full type
merge_request full type
merge_request full type
commit full type
commit full type
Response data full type
Response data full type
webhookHooks example
Pipeline
Pipeline
pipeline
A pipeline event from GitLab (status change)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object_kind | pipeline | Yes | — |
object_attributes | object | No | — |
user | object | No | — |
project | object | No | — |
builds | object[] | No | — |
object_attributes full type
object_attributes full type
user full type
user full type
project full type
project full type
builds full type
builds full type
Response data full type
Response data full type
webhookHooks example
Push
Push
push
A push event from GitLab (git push to repository)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object_kind | push | Yes | — |
event_name | string | No | — |
before | string | No | — |
after | string | No | — |
ref | string | No | — |
checkout_sha | string | No | — |
user_id | number | No | — |
user_name | string | No | — |
user_username | string | No | — |
user_avatar | string | No | — |
project_id | number | No | — |
project | object | No | — |
commits | object[] | No | — |
total_commits_count | number | No | — |
project full type
project full type
commits full type
commits full type
Response data full type
Response data full type
webhookHooks example