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_eventsNoTrigger the webhook when changes are pushed to the repository. Defaults to false
issues_eventsNoTrigger the webhook when an issue is created. Defaults to false
merge_requests_eventsNoTrigger the webhook when a merge request is created. Defaults to false
pipeline_eventsNoTrigger the webhook when a pipeline is run. Defaults to false

Note

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