gitea/templates
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
..
admin split admin config settings templates to make it maintain easier (#35294) 2025-09-04 15:42:26 +00:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
custom
devtest Refactor mail template and support preview (#34990) 2025-07-09 10:25:25 +08:00
explore Forks repository list page follow other repositories page (#34784) 2025-06-21 12:27:25 -07:00
mail Refactor and update mail templates (#35150) 2025-09-04 20:20:42 -07:00
org Fix package link setting can only list limited repositories (#35394) 2025-09-11 01:50:17 +02:00
package Fix package link setting can only list limited repositories (#35394) 2025-09-11 01:50:17 +02:00
projects Improve project & label color picker and image scroll (#34971) 2025-07-06 23:37:26 +08:00
repo fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
shared Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
status Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
swagger Update issue.go with labels documentation (labels content, not ids) (#35522) 2025-09-25 16:56:49 +00:00
user Send email on Workflow Run Success/Failure (#34982) 2025-07-15 18:54:31 -07:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
install.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00
post-install.tmpl Add post-installation redirect based on admin account status (#34493) 2025-06-21 18:48:06 +00:00