зеркало из https://github.com/mislav/hub.git
Merge pull request #1896 from borsothy/ci-status-exit-code
Fixed CI status check exit code.
This commit is contained in:
Коммит
70a5493539
|
@ -88,15 +88,13 @@ func ciStatus(cmd *Command, args *Args) {
|
|||
response, err := gh.FetchCIStatus(project, sha)
|
||||
utils.Check(err)
|
||||
|
||||
state := response.State
|
||||
state := ""
|
||||
if len(response.Statuses) > 0 {
|
||||
for _, status := range response.Statuses {
|
||||
if checkSeverity(status.State) > checkSeverity(state) {
|
||||
state = status.State
|
||||
}
|
||||
}
|
||||
} else if len(response.Statuses) == 0 {
|
||||
state = ""
|
||||
}
|
||||
|
||||
var exitCode int
|
||||
|
|
Загрузка…
Ссылка в новой задаче