diff options
author | 6543 <6543@obermui.de> | 2022-06-21 19:42:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 19:42:19 +0200 |
commit | f6db650e9d99253cef54c3e646db1e7355880d86 (patch) | |
tree | 27d64c6d209cae1d0d6dbb01ef43e6b1d0796a5b /routers | |
parent | 7e733ee904cbe2dc707c41187317a3342da07f93 (diff) | |
download | gitea-f6db650e9d99253cef54c3e646db1e7355880d86.tar.gz gitea-f6db650e9d99253cef54c3e646db1e7355880d86.zip |
Release page show all tags in compare dropdown (#20070)
address #19936
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/release.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go index 666294631c..df953fd0b9 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 |