-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release targeting wrong branch after deleting another release with the same tag but different branch #22649
Comments
Maybe the reason is that you didn't delete the existing tag. You could delete the I will try to make an enhancement to optimize this process. |
Deleting the release do not delete the tag? Im going to try what you told me a report back. Thanks |
Yes you are correct. If after deleting the release you manually delete the tag, the new release is created correctly. Maybe if you choose a existing tag the branch selector should be disabled ? |
Yes. If a tag exists, the selector should be disabled. I will implement this function. |
Close #22649. |status|screenshot| |-|-| |empty tag name|<img src="https://user-images.githubusercontent.com/15528715/221490165-fd3abd2e-6dc5-4562-bece-d1d6a305479e.png" width="300px"/>| |new tag|<img src="https://user-images.githubusercontent.com/15528715/221490450-49b2a48e-b206-49f4-bd79-34b1ea64156f.png" width="300px"/>| |existing tag|<img src="https://user-images.githubusercontent.com/15528715/221490301-4d1879dd-4947-4abc-9b9a-e77be1806981.png" width="300px"/>|
Description
Steps to reproduce:
Expected behaviour:
The last release and tag should show the changes/commits made on the branch main.
Observed behaviour:
The release show the changes made on the test branch even when the release says is targeting the main branch and shows negative commits like this:
More Info:
the main branch has a empty readme file
the test branch has 2 commits changing the readme file
the tag 1.0.0 show the file with the changes made on test branch
if a click on the "-2 commits" the "Compare commits" screen shows no changes.
Gitea Version
1.18.3 and 1.19.0 (gitea demo)
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Debian Linux and Try.gitea.io
How are you running Gitea?
The issue can be replicated both on my docker installation of giteo and in https://try.gitea.io/
Database
None
The text was updated successfully, but these errors were encountered: