Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 37e5595

Browse files
author
Noah Hanjun Lee
authored
fix: handle the failure conclusion (#87)
1 parent cf08615 commit 37e5595

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/pkg/github/mapper.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ func mapGithubCheckRunToStatus(c *github.CheckRun) *vo.Status {
115115

116116
if *c.Conclusion == "success" {
117117
state = vo.StatusStateSuccess
118-
} else {
118+
} else if *c.Conclusion == "failure" {
119119
state = vo.StatusStateFailure
120+
} else {
121+
state = vo.StatusStatePending
120122
}
121123

122124
return &vo.Status{

0 commit comments

Comments
 (0)