gitea/web_src/css
Kausthubh J Rao c4532101a4
fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567)
Tag creation/deletion was triggering push webhooks even when branch
filters were configured, causing unintended pipeline executions.

This change modifies the branch filter logic to check the full ref
name directly instead of first determining if it's a "branch" event.

Fixes: Tag events now properly respect branch filters
- Add getPayloadRef() function to extract full ref names
- Update PrepareWebhook() to use direct ref matching
- Prevents refs/tags/* from matching refs/heads/* filters

Closes #35449

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2025-10-03 08:51:57 +02:00
..
chroma
codemirror
editor Merge and tweak markup editor expander CSS (#34409) 2025-05-09 17:14:21 +02:00
features Update stylelint, enable report* options (#35236) 2025-08-08 16:52:49 +00:00
markup Fix font-size in inline code comment preview (#35209) 2025-08-12 08:06:45 +00:00
modules Update JS and PY deps (#35191) 2025-08-01 07:24:26 +00:00
repo fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
shared Refactor some trivial problems (#34959) 2025-07-05 23:19:33 +08:00
standalone
themes Add --color-logo for text that should match logo color (#34639) 2025-06-07 18:02:28 +00:00
actions.css Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
admin.css Update JS and PY deps (#35191) 2025-08-01 07:24:26 +00:00
base.css fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
dashboard.css
explore.css Fix and/or comment some legacy CSS problems (#33015) 2024-12-28 11:51:38 +00:00
font_i18n.css
form.css fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
helpers.css Replace gt-word-break with tw-break-anywhere (#31183) 2024-06-04 13:57:11 +00:00
home.css Add --color-logo for text that should match logo color (#34639) 2025-06-07 18:02:28 +00:00
index.css Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
install.css
org.css Clean up legacy form CSS styles (#33081) 2025-01-03 04:01:19 +00:00
repo.css Fix font-size in inline code comment preview (#35209) 2025-08-12 08:06:45 +00:00
review.css Fix various UI problems (#34243) 2025-04-19 08:43:22 +00:00
user.css Fix overflow in notifications list (#35446) 2025-09-10 13:05:35 +00:00