This action requires a token for the user on whose behalf it will run.

CreateGitlabProjectWebhook — creates a webhook in a GitLab project.

Request example

project_id: '0'
url: https://example.com
push_events: true
issues_events: true
merge_requests_events: true
pipeline_events: true

Request specification

NameRequiredDescription
project_idYesIdentifier of the project in which to create the webhook
urlYesWebhook URL
push_eventsYesTrigger the webhook when changes are pushed to the repository
issues_eventsYesTrigger the webhook when an issue is created
merge_requests_eventsYesTrigger the webhook when a merge request is created
pipeline_eventsYesTrigger the webhook when a pipeline is run

Note

The action performs a POST request to the URL: /api/v4/projects/:id/hooks.