mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 07:49:34 +02:00
Use Combine as the function name to combine commit status as combined status
This commit is contained in:
2 files changed
+3
-4
No files matched your search
@@ -232,7 +232,7 @@ func CalcCombinedStatusState(statuses []*CommitStatus) commitstatus.CombinedStat
|
||||
for _, status := range statuses {
|
||||
states = append(states, status.State)
|
||||
}
|
||||
return states.CalcAsCombinedStatusState()
|
||||
return states.Combine()
|
||||
}
|
||||
|
||||
// CalcCombinedStatus returns combined status struct, the commit statuses should order by id desc
|
||||
@@ -252,7 +252,7 @@ func CalcCombinedStatus(statuses []*CommitStatus) *CombinedStatus {
|
||||
return &CombinedStatus{
|
||||
RepoID: statuses[0].RepoID,
|
||||
SHA: statuses[0].SHA,
|
||||
State: states.CalcAsCombinedStatusState(),
|
||||
State: states.Combine(),
|
||||
TargetURL: targetURL,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user