Skip to content

Tag push creates webhook with empty commits and head_commit  #18112

Closed
@DoLearnWhileAlive

Description

@DoLearnWhileAlive

Gitea Version

1.15.8

Git Version

2.33.1

Operating System

Windows Server 2016

How are you running Gitea?

based on gitea-1.15.8-windows-4.0-amd64.exe as Windows Service

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Creating a new tag for a gitea repo creates a webhook with empty commits and head_commit. See example from gitea demo site:

{
  "ref": "refs/tags/v1.1.1",
  "before": "0000000000000000000000000000000000000000",
  "after": "3f150d39b92dd50cdd0248f5edea5767c2172584",
  "compare_url": "https://try.gitea.io/",
  "commits": [],
  "head_commit": null,
  "repository": {
  ...

I have an on-prem gitea instance connected with on-prem AppVeyor server. AppVeyor can't create new builds if commits and head_commit are empty, see also open issue on AppVeyor: appveyor/ci#3765

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions