diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-03-22 20:53:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:53:52 +0100 |
commit | f8ab9dafb7a173a35e9308f8f784735b0f822439 (patch) | |
tree | 407c8062fd1943eac09af96b54c8521445c3e48c /services/actions | |
parent | 29118743a58cf3172bddb6a4fa287484c62b4eb1 (diff) | |
download | gitea-f8ab9dafb7a173a35e9308f8f784735b0f822439.tar.gz gitea-f8ab9dafb7a173a35e9308f8f784735b0f822439.zip |
Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995)
Diffstat (limited to 'services/actions')
-rw-r--r-- | services/actions/commit_status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/actions/commit_status.go b/services/actions/commit_status.go index edd1fd1568..4236553927 100644 --- a/services/actions/commit_status.go +++ b/services/actions/commit_status.go @@ -79,7 +79,7 @@ func createCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) er } ctxname := fmt.Sprintf("%s / %s (%s)", runName, job.Name, event) state := toCommitStatus(job.Status) - if statuses, _, err := git_model.GetLatestCommitStatus(ctx, repo.ID, sha, db.ListOptions{ListAll: true}); err == nil { + if statuses, _, err := git_model.GetLatestCommitStatus(ctx, repo.ID, sha, db.ListOptionsAll); err == nil { for _, v := range statuses { if v.Context == ctxname { if v.State == state { |