1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-17 23:18:28 +00:00

Release page show all tags in compare dropdown (#20070) (#20071)

Backport #20070 

Just get all tags when creating the compare dropdown. (Also updates the changelog.)
Fix #19936
This commit is contained in:
6543
2022-06-21 20:09:24 +02:00
committed by GitHub
parent a7b1e20b76
commit 51db7b03dd
2 changed files with 10 additions and 2 deletions

View File

@@ -98,7 +98,14 @@ func releasesOrTags(ctx *context.Context, isTagList bool) {
listOptions.PageSize = setting.API.MaxResponseItems
}
tags, err := ctx.Repo.GitRepo.GetTags(listOptions.GetStartEnd())
// TODO(20073) tags are used for compare feature witch needs all tags
// filtering is doen at the client side atm
tagListStart, tagListEnd := 0, 0
if isTagList {
tagListStart, tagListEnd = listOptions.GetStartEnd()
}
tags, err := ctx.Repo.GitRepo.GetTags(tagListStart, tagListEnd)
if err != nil {
ctx.ServerError("GetTags", err)
return