Skip to content

Commit efe0220

Browse files
committed
fix GetLatestCommitStatuses
1 parent f3a43b4 commit efe0220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func GetLatestCommitStatuses(repoIDs []int64, shas []string) ([][]*CommitStatus,
181181
err := x.Table(&CommitStatus{}).
182182
Where(cond).
183183
Select("max( id ) as id, repo_id").
184-
GroupBy("context").OrderBy("max( id ) desc").Find(&results)
184+
GroupBy("repo_id, sha, context").OrderBy("max( id ) desc").Find(&results)
185185
if err != nil {
186186
return nil, err
187187
}

0 commit comments

Comments
 (0)