未验证 提交 70a54935 编写于 作者: M Mislav Marohnić 提交者: GitHub

Merge pull request #1896 from borsothy/ci-status-exit-code

Fixed CI status check exit code.
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册