Skip to content

Create webhook event is not triggered when creating tags via git push #38438

Description

@Daviid-P

Gitea Version

1.26.4

What happened?

Title

Create webhook event is not triggered when creating tags via git push

Description

After upgrading to Gitea 1.26.4, the Create webhook event is no longer triggered when a new Git tag is created using git push.

The Push event is delivered correctly, but Create is never sent.

How are you running Gitea?

Environment

  • Gitea version: 1.26.4
  • Docker image: docker.gitea.com/gitea:1.26.4
  • Alpine Linux 3.23
  • Git over SSH
  • Database: MariaDB

Steps to reproduce

  1. Configure a repository webhook.

  2. Enable only the Create event.

  3. Create a new tag locally:

    git tag testing-example-20260713-rc1
  4. Push the tag:

    git push origin testing-example-20260713-rc1
  5. Check the webhook deliveries.

Expected behavior

A webhook should be delivered with:

  • X-Gitea-Event: create
  • A payload corresponding to the Create event (including ref and ref_type).

Actual behavior

No webhook is delivered.

If the Push event is enabled instead, a webhook is delivered with:

X-Gitea-Event: push

and the payload contains:

  • before
  • after
  • commits
  • head_commit
  • ref: refs/tags/...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions