-
-
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
fix some ui bug about draft release #15137
Conversation
- should not show draft release in tag list because it will't create real tag - still show draft release without tag and commit message for draft release instead of 404 error - remove tag load for attachement links because it's useless Signed-off-by: a1012112796 <1012112796@qq.com>
@a1012112796 Please resolve the conflicts. |
waiting review |
Codecov Report
@@ Coverage Diff @@
## main #15137 +/- ##
=======================================
Coverage 43.95% 43.96%
=======================================
Files 678 678
Lines 81903 81908 +5
=======================================
+ Hits 36000 36010 +10
Misses 40027 40027
+ Partials 5876 5871 -5
Continue to review full report at Codecov.
|
Could you add some tests? |
done |
CI failed. |
@a1012112796 Doing a review for you today |
@a1012112796 Before I dig in, does this get drafts working like Github handles drafts for releases? I noticed just last week that GitHub does it different:
|
yes, in gitea curent design, it willn't create tag in git repository for a draft release. so any link about git tag is not useable for a draft release. and it's also not correct to show draft release on tags list. |
@a1012112796 I noticed it still requires a tag if it is a draft. Github doesn't require that to be filled for a draft so that you can go back and tag it later (maybe want to set up the release info but developers/qa might still be trying to get a few more commits in). Is that outside the scope of this PR? #7693 |
@a1012112796 Wow, already has conflicts again. |
For what it's worth, it looks like GitHub still locks the Draft to the commit ID of target at the time the draft is made, assigning a temporary tag to the draft release, and renaming it when the actual release is made, so probably useful in that you don't want the draft tag showing up in the list of tags for the repo. |
LGTM, just fix conflicts. |
@lafriks Needs your approval again. |
* fix some ui bug about draft release - should not show draft release in tag list because it will't create real tag - still show draft release without tag and commit message for draft release instead of 404 error - remove tag load for attachement links because it's useless Signed-off-by: a1012112796 <1012112796@qq.com> * add test code * fix test That's because has added a new release in relaese test database. * fix dropdown link for draft release
* fix some ui bug about draft release - should not show draft release in tag list because it will't create real tag - still show draft release without tag and commit message for draft release instead of 404 error - remove tag load for attachement links because it's useless Signed-off-by: a1012112796 <1012112796@qq.com> * add test code * fix test That's because has added a new release in relaese test database. * fix dropdown link for draft release
* fix some ui bug about draft release - should not show draft release in tag list because it will't create real tag - still show draft release without tag and commit message for draft release instead of 404 error - remove tag load for attachement links because it's useless Signed-off-by: a1012112796 <1012112796@qq.com> * add test code * fix test That's because has added a new release in relaese test database. * fix dropdown link for draft release
it will't create real tag
for draft release instead of 404 error
fix #15058