Skip to content

Commit

Permalink
Handle canceled workflow as a warning instead of a fail (go-gitea#24282)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre authored and GiteaBot committed Apr 23, 2023
1 parent 7e86dff commit 78defd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/actions/commit_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 78defd8

Please sign in to comment.