1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

use failed as default

This commit is contained in:
pat-s 2024-10-28 14:17:42 +01:00
parent 2b83e4faf2
commit 30cd51d6c6
No known key found for this signature in database
GPG Key ID: 3C6318841EF78925

View File

@ -25,7 +25,7 @@ func getStatus(status model.StatusValue) gitlab.BuildStateValue {
switch status {
case model.StatusPending, model.StatusBlocked:
// no typo: https://github.com/runatlantis/atlantis/pull/1971#issue-1093158742
return gitlab.Running
return gitlab.Pending
case model.StatusRunning:
return gitlab.Running
case model.StatusSuccess:
@ -36,6 +36,6 @@ func getStatus(status model.StatusValue) gitlab.BuildStateValue {
return gitlab.Canceled
default:
// no typo: https://github.com/runatlantis/atlantis/pull/1971#issue-1093158742
return gitlab.Pending
return gitlab.Failed
}
}