-
-
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
releases/tag page looks broken when no release has been created #23221
Comments
If by "title and description" you mean the tag message: Yes this would be a very welcome addition. I had requested in the past as well. The |
This patch makes Tag view look more similar to the one of Release by making more template fragments reuse the same markup. Fixes: go-gitea#23221
This PR fixes several issues reported in #23221. It does three things: 1. Fixes the `DefaultBranch` variable that has not been set. 2. Sets `Title` and `Message` for newly created tags from the Tag message. This makes it easier to create releases from tags that have messages and for those that don't it doesn't have any effect. 3. Makes UI changes so that tags look more like proper releases. Before: ![2023-03-02-12-31-19](https://user-images.githubusercontent.com/1718963/222416890-941a74d4-9cd0-4c45-a59e-199d2580cd8c.png) After: ![2023-03-02-12-31-31](https://user-images.githubusercontent.com/1718963/222416919-abce2009-8955-4cd0-9bed-1374582e04f7.png) I purposefully didn't reformat the template so that the diff is cleaner but can do so if that's welcome. Thanks for your time! --------- Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
🤔 hmm even though the commit was merged into Thank you all for help! I really appreciate it! 🙏 |
GitHub's parser is not so smart and did not recognize your "This PR fixes several issues reported in #23221.". If you put a simple "Fixes: #23221" next time, it will automatically pick it up and close the issue on merge. |
Description
GitHub properly displays release/tag page for tags even if the release has not been created:
Live URL: https://github.com/wiktor-k/pysequoia/releases/tag/v0.1.14
Compare that with the same view of the same object in Gitea:
Live URL: https://try.gitea.io/wiktor/pysequoia/releases/tag/v0.1.14
The title and description are missing and there's a broken markup (
%!s(<nil>)
) which should default to repository's default branch.I'd be happy to contribute a fix if this is considered a valid issue.
Thanks for your time!
Gitea Version
1.20.0+dev-48-g04347eb81
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Screenshots attached in the bug description.
Git Version
No response
Operating System
No response
How are you running Gitea?
I'm using try.gitea.io
Database
None
The text was updated successfully, but these errors were encountered: