gitea/web_src/css/repo
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
..
clone.css Fix button alignments and remove unnecessary styles (#34206) 2025-04-16 08:14:10 +00:00
commit-sign.css Do not show unnecessary commit sign lock icon (#33387) 2025-01-25 19:32:35 +08:00
file-view.css Add support for 3D/CAD file formats preview (#34794) 2025-06-30 16:12:25 +08:00
header.css Fix button alignments and remove unnecessary styles (#34206) 2025-04-16 08:14:10 +00:00
home-file-list.css Make submodule link work with relative path (#35034) 2025-07-10 16:38:42 +00:00
home.css Fix markdown wrap (#34697) 2025-06-12 10:09:42 +08:00
issue-card.css Improve `labels-list` rendering (#34846) 2025-06-27 23:12:25 +08:00
issue-label.css Improve `labels-list` rendering (#34846) 2025-06-27 23:12:25 +08:00
issue-list.css fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
list-header.css Fix button alignments and remove unnecessary styles (#34206) 2025-04-16 08:14:10 +00:00
packages.css Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
reactions.css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) 2024-04-14 18:44:11 +08:00
release-tag.css Improve tags list page (#34898) 2025-06-30 02:15:39 +00:00
wiki.css Refactor wiki (#34805) 2025-06-22 18:53:33 +08:00