mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 02:10:40 +00:00
Handle canceled workflow as a warning instead of a fail (#24282)
Follow what Drone CI does: ![image](https://user-images.githubusercontent.com/9418365/233829853-d1c30a30-10cc-4b97-a134-793a79d46d85.png)
This commit is contained in:
parent
774d1a0fbd
commit
cbe2e99aed
1 changed files with 3 additions and 1 deletions
|
@ -137,8 +137,10 @@ func toCommitStatus(status actions_model.Status) api.CommitStatusState {
|
||||||
switch status {
|
switch status {
|
||||||
case actions_model.StatusSuccess, actions_model.StatusSkipped:
|
case actions_model.StatusSuccess, actions_model.StatusSkipped:
|
||||||
return api.CommitStatusSuccess
|
return api.CommitStatusSuccess
|
||||||
case actions_model.StatusFailure, actions_model.StatusCancelled:
|
case actions_model.StatusFailure:
|
||||||
return api.CommitStatusFailure
|
return api.CommitStatusFailure
|
||||||
|
case actions_model.StatusCancelled:
|
||||||
|
return api.CommitStatusWarning
|
||||||
case actions_model.StatusWaiting, actions_model.StatusBlocked:
|
case actions_model.StatusWaiting, actions_model.StatusBlocked:
|
||||||
return api.CommitStatusPending
|
return api.CommitStatusPending
|
||||||
case actions_model.StatusRunning:
|
case actions_model.StatusRunning:
|
||||||
|
|
Loading…
Reference in a new issue