diff --git a/services/actions/commit_status.go b/services/actions/commit_status.go index 97643e5f3..6114f2b44 100644 --- a/services/actions/commit_status.go +++ b/services/actions/commit_status.go @@ -137,8 +137,10 @@ func toCommitStatus(status actions_model.Status) api.CommitStatusState { switch status { case actions_model.StatusSuccess, actions_model.StatusSkipped: return api.CommitStatusSuccess - case actions_model.StatusFailure, actions_model.StatusCancelled: + case actions_model.StatusFailure: return api.CommitStatusFailure + case actions_model.StatusCancelled: + return api.CommitStatusWarning case actions_model.StatusWaiting, actions_model.StatusBlocked: return api.CommitStatusPending case actions_model.StatusRunning: