Skip to content

can not get the commit's combined status by non-main branch/tag/commitΒ #33731

@yougg

Description

@yougg

Description

try to call client.GetCombinedStatus(owner, repo, release.TagName) by the gitea sdk
but it responses empty status when i set the tag on non-main branch

try again call the API on gitea's api swagger UI, both the following APIes reponse empty status
/repos/{owner}/{repo}/commits/{ref}/status
/repos/{owner}/{repo}/commits/{ref}/statuses

Image

non-main branch, tag/commit on non-main branch

Image

main branch, tag/commit on main branch is OK

Image

Gitea Version

1.23.4

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.39.5

Operating System

Debian 12

How are you running Gitea?

running gitea service by docker container, image: gitea/gitea:1.23.4

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions