Skip to main content

Triggers reference

Field reference for Configure triggers.

Event types

Event TypeTriggers WhenUse Case
PushA new commit is pushed.Continuous integration.
Merge RequestA merge request is created or updated.Code review validation.
TagA new Git tag is created.Release Pipeline.

Applied to branches — options

OptionFieldsBehavior
All branchesNoneEvery branch matching the selected events triggers the Pipeline. Default.
Filtered branches by nameName included, Name excludedAdd one or more branch names to each list (press Enter to add). Leave Name included empty to match all branches except those in Name excluded.
Filtered branches by regexSource Branch Regex, Target Branch RegexEnter a regular expression per field. Not validated as you type — check syntax before saving. See examples below.

Only one option applies at a time.

Branch Filter — Regex examples

RegexMeaning
^main$The main branch only.
^(develop|staging)$The develop or staging branch only.
.*feature.*All branches containing feature.
.*release.*All branches containing release.
.*debug.*|.*release.*Branches containing debug or release — the pattern shown as an example in the UI.

Webhook elements

ElementDescription
Webhook URLThe endpoint that receives events from GitLab.
Secret tokenThe Webhook authentication code. Masked by default — use the visibility toggle to reveal it.
CopyCopies the value to the clipboard.
Regenerate tokenIssues a new Secret token and invalidates the old one immediately.

See also