File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -107,18 +107,18 @@ func hydrateCommits(q *githubQuery, specificCheckName string) []Commit {
107
107
})
108
108
}
109
109
110
- statusSuccess := bool (edge .Node .StatusCheckRollup .State == githubql .String (githubql .StatusStateSuccess ))
111
-
110
+ statusSuccess := false
112
111
// In case a commit check name is specified, it override and get priority over the commit cumulative status
113
112
if specificCheckName != "" {
114
- statusSuccess = false
115
113
for _ , checkSuite := range edge .Node .CheckSuites .Nodes {
116
114
for _ , checkRuns := range checkSuite .CheckRuns .Nodes {
117
115
if githubql .String (specificCheckName ) == checkRuns .Name {
118
116
statusSuccess = checkRuns .Conclusion == githubql .String (githubql .StatusStateSuccess )
119
117
}
120
118
}
121
119
}
120
+ } else {
121
+ statusSuccess = bool (edge .Node .StatusCheckRollup .State == githubql .String (githubql .StatusStateSuccess ))
122
122
}
123
123
124
124
fullCommitsList = append (fullCommitsList , Commit {
You can’t perform that action at this time.
0 commit comments