Skip to content

Draft: [Frontend] Update webhook: support both wildcard & regex

️ This MR has been closed, and the relevant code has been placed in a new MR: !100517 (merged).


Related issue: #369104 (closed)

Backend MR: !97235 (merged) (Backend merged first, frontend merged later)

What does this MR do and why?

Support more matching strategies when the webhook matches branches.

  1. Add a new column branch_filter_strategy to the database table web_hooks. Already done in this MR
  2. Update ActiveHookFilter.matches? method to support more matching strategies
  3. Update frontend page to allow user to choose matching strategy
  4. Update unit tests

Changelog: changed

Screenshots or screen recordings

Before After

cc @prajnamas @JeremyWuuuuu

Edited by Zhiyuan Lu

Merge request reports