mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-20 08:34:12 +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
@@ -56,8 +56,7 @@ type CommitStatusStates []CommitStatusState //nolint
|
||||
// > failure if any of the contexts report as error or failure
|
||||
// > pending if there are no statuses or a context is pending
|
||||
// > success if the latest status for all contexts is success
|
||||
|
||||
func (css CommitStatusStates) CalcAsCombinedStatusState() CombinedStatusState {
|
||||
func (css CommitStatusStates) Combine() CombinedStatusState {
|
||||
successCnt := 0
|
||||
for _, state := range css {
|
||||
switch {
|
||||
|
||||
Reference in new issue
Block a user