summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/release.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-03-22 20:53:52 +0800
committerGitHub <noreply@github.com>2024-03-22 13:53:52 +0100
commitf8ab9dafb7a173a35e9308f8f784735b0f822439 (patch)
tree407c8062fd1943eac09af96b54c8521445c3e48c /routers/web/repo/release.go
parent29118743a58cf3172bddb6a4fa287484c62b4eb1 (diff)
downloadgitea-f8ab9dafb7a173a35e9308f8f784735b0f822439.tar.gz
gitea-f8ab9dafb7a173a35e9308f8f784735b0f822439.zip
Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995)
Diffstat (limited to 'routers/web/repo/release.go')
-rw-r--r--routers/web/repo/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go
index dbc190928f..7ba23f0701 100644
--- a/routers/web/repo/release.go
+++ b/routers/web/repo/release.go
@@ -136,7 +136,7 @@ func getReleaseInfos(ctx *context.Context, opts *repo_model.FindReleasesOptions)
}
if canReadActions {
- statuses, _, err := git_model.GetLatestCommitStatus(ctx, r.Repo.ID, r.Sha1, db.ListOptions{ListAll: true})
+ statuses, _, err := git_model.GetLatestCommitStatus(ctx, r.Repo.ID, r.Sha1, db.ListOptionsAll)
if err != nil {
return nil, err
}