Skip to content

Commit c170f63

Browse files
committed
PR comment change
1 parent 9ecb9de commit c170f63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

github/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ func hydrateCommits(q *githubQuery, specificCheckName string) []Commit {
107107
})
108108
}
109109

110-
statusSuccess := bool(edge.Node.StatusCheckRollup.State == githubql.String(githubql.StatusStateSuccess))
111-
110+
statusSuccess := false
112111
// In case a commit check name is specified, it override and get priority over the commit cumulative status
113112
if specificCheckName != "" {
114-
statusSuccess = false
115113
for _, checkSuite := range edge.Node.CheckSuites.Nodes {
116114
for _, checkRuns := range checkSuite.CheckRuns.Nodes {
117115
if githubql.String(specificCheckName) == checkRuns.Name {
118116
statusSuccess = checkRuns.Conclusion == githubql.String(githubql.StatusStateSuccess)
119117
}
120118
}
121119
}
120+
} else {
121+
statusSuccess = bool(edge.Node.StatusCheckRollup.State == githubql.String(githubql.StatusStateSuccess))
122122
}
123123

124124
fullCommitsList = append(fullCommitsList, Commit{

0 commit comments

Comments
 (0)