Add skip and limit to git.GetTags (#16897)

* Make GetTags() api similar to GetBranches()
* Use it for Tag/Release page
This commit is contained in:
6543 authored and GitHub committed 2021-09-10 19:30:37 +02:00
1 parent 9ca0e7905c
commit 77f604a928
6 files changed
+33 -20

No files matched your search

+1 -1
View File
@@ -547,7 +547,7 @@ func RepoAssignment(ctx *Context) (cancel context.CancelFunc) {
return
}
tags, err := ctx.Repo.GitRepo.GetTags()
tags, err := ctx.Repo.GitRepo.GetTags(0, 0)
if err != nil {
ctx.ServerError("GetTags", err)
return