Skip to content

Webhooks only work for branch filter "*" or "main" #34225

Open
@Kanzll

Description

@Kanzll

Description

Add a new branch with name "dev", make a comment/push on this branch , add a webhook and put "dev" in a filter editbox, then click on test delivery button, nothing appears in the history, if change the branch filter to "*" or "main" and it will work.

I got this in the logs:
gitea | 2025/04/16 14:26:20 ...s/webhook/webhook.go:158:PrepareWebhook() [I] Branch "main" doesn't match branch filter "dev", skipping

Gitea Version

1.23.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.47.2

Operating System

Ubuntu

How are you running Gitea?

docker (via casaos)

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions