When creating a new release, if an existing tag is used, the branch for the release cannot be selected.
Opened this issue · 1 comments
Description
When creating a new release, if an existing tag is used, the branch for the release cannot be selected. The created release displays the default branch.
If I first select a branch and then enter an existing tag, the created release will display the selected branch.
Gitea demo: https://demo.gitea.com/Aostas/test
Gitea Version
1.24.5
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
2.30.2
Operating System
Debian 11
How are you running Gitea?
downloaded from dl.gitea.com
running in pve lxc
run from systemd
Database
MySQL/MariaDB
This also happens when I create a release using the API, though the target_commitish field uses the same value as tag_name. However, my script is triggered by an action that pushes a tag. Whether I push a locally created tag or choose "Create tag only" in the release after selecting a branch, I’ve printed all the environment variables and couldn’t find one matching the corresponding branch name. I’m not sure whether target_commitish would display correctly if it used a branch name, but currently, I’m unable to retrieve it.
