mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-28 22:33:32 +01:00
cc27b50bdf
Partially caused by #29149 When use ```go releases, err := getReleaseInfos(ctx, &repo_model.FindReleasesOptions{ ListOptions: db.ListOptions{Page: 1, PageSize: 1}, RepoID: ctx.Repo.Repository.ID, TagNames: []string{ctx.Params("*")}, // only show draft releases for users who can write, read-only users shouldn't see draft releases. IncludeDrafts: writeAccess, }) ``` replace ```go release, err := repo_model.GetRelease(ctx, ctx.Repo.Repository.ID, ctx.Params("*")) ``` It missed `IncludeTags: true,`. That means this bug will be occupied only when the release is a tag. This PR will fix - Get the right tag record when it's not a release - Display correct tag tab but not release tag when it's a tag. - The button will bring the tag name to the new page when it's a single tag page - the new page will automatically hide the release target inputbox when the tag name is pre filled. This should be backport to v1.21. |
||
---|---|---|
.. | ||
admin | ||
comp | ||
captcha.js | ||
citation.js | ||
clipboard.js | ||
code-frequency.js | ||
codeeditor.js | ||
colorpicker.js | ||
common-global.js | ||
common-issue-list.js | ||
common-issue-list.test.js | ||
common-organization.js | ||
contextpopup.js | ||
contributors.js | ||
copycontent.js | ||
dropzone.js | ||
emoji.js | ||
eventsource.sharedworker.js | ||
file-fold.js | ||
heatmap.js | ||
imagediff.js | ||
install.js | ||
notification.js | ||
org-team.js | ||
pull-view-file.js | ||
recent-commits.js | ||
repo-branch.js | ||
repo-code.js | ||
repo-code.test.js | ||
repo-commit.js | ||
repo-common.js | ||
repo-diff-commit.js | ||
repo-diff-commitselect.js | ||
repo-diff-filetree.js | ||
repo-diff.js | ||
repo-editor.js | ||
repo-findfile.js | ||
repo-findfile.test.js | ||
repo-graph.js | ||
repo-home.js | ||
repo-issue-content.js | ||
repo-issue-list.js | ||
repo-issue-pr-form.js | ||
repo-issue-pr-status.js | ||
repo-issue.js | ||
repo-legacy.js | ||
repo-migrate.js | ||
repo-migration.js | ||
repo-projects.js | ||
repo-release.js | ||
repo-settings.js | ||
repo-template.js | ||
repo-unicode-escape.js | ||
repo-wiki.js | ||
sshkey-helper.js | ||
stopwatch.js | ||
tablesort.js | ||
tribute.js | ||
user-auth-webauthn.js | ||
user-auth.js | ||
user-settings.js |