Use Combine as the function name to combine commit status as combined status

This commit is contained in:
Lunny Xiao committed 2025-05-25 17:49:11 -07:00
1 parent eb9fe87231
commit d77674673a
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -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 {