aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-06-21 20:09:24 +0200
committerGitHub <noreply@github.com>2022-06-21 19:09:24 +0100
commit51db7b03dd85c6de808a2882afc1fd825ba11356 (patch)
treeacc3bca1db523077d08cfd4be8f78173c97e6111 /routers
parenta7b1e20b76869443310490fb128a5ed8b4e6c792 (diff)
downloadgitea-51db7b03dd85c6de808a2882afc1fd825ba11356.tar.gz
gitea-51db7b03dd85c6de808a2882afc1fd825ba11356.zip
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
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/release.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go
index 8068802808..781ef55455 100644
--- a/routers/web/repo/release.go
+++ b/routers/web/repo/release.go
@@ -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