Skip to content

Webhook push events support regular expressions

Problem to solve

In project Settings > Webhooks > push events, currently it does NOT support regular expressions like (feature|hotfix)/*
image

While in Settings > Repository > push rules > branch name, it supports regular expressions. image

Proposal

Customers require that webhook push events should support regular expressions, just like how push rules can support.

Release Notes

When creating webhooks triggered based on push events, you may now define a more customizable RegEx pattern to align with your branching strategy (in addition to the existing wildcard pattern option). For example, you may want to define (feature|hotfix)/*) to allow notifications for any push to the feature and hotfix branches to trigger push events.

webhook-push-regex

Edited by Grant Hickman