mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
use failed as default
This commit is contained in:
@@ -25,7 +25,7 @@ func getStatus(status model.StatusValue) gitlab.BuildStateValue {
|
|||||||
switch status {
|
switch status {
|
||||||
case model.StatusPending, model.StatusBlocked:
|
case model.StatusPending, model.StatusBlocked:
|
||||||
// no typo: https://github.com/runatlantis/atlantis/pull/1971#issue-1093158742
|
// no typo: https://github.com/runatlantis/atlantis/pull/1971#issue-1093158742
|
||||||
return gitlab.Running
|
return gitlab.Pending
|
||||||
case model.StatusRunning:
|
case model.StatusRunning:
|
||||||
return gitlab.Running
|
return gitlab.Running
|
||||||
case model.StatusSuccess:
|
case model.StatusSuccess:
|
||||||
@@ -36,6 +36,6 @@ func getStatus(status model.StatusValue) gitlab.BuildStateValue {
|
|||||||
return gitlab.Canceled
|
return gitlab.Canceled
|
||||||
default:
|
default:
|
||||||
// no typo: https://github.com/runatlantis/atlantis/pull/1971#issue-1093158742
|
// no typo: https://github.com/runatlantis/atlantis/pull/1971#issue-1093158742
|
||||||
return gitlab.Pending
|
return gitlab.Failed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user