We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 919f141 commit 9ac3c63Copy full SHA for 9ac3c63
main.go
@@ -40,5 +40,7 @@ func main() {
40
fmt.Println(result.JSONReport())
41
}
42
43
- // TODO: set exit status according to check results
+ if !result.Passed() {
44
+ os.Exit(errorcodes.ErrGeneric)
45
+ }
46
result/result.go
@@ -207,6 +207,11 @@ func jsonReportRaw() []byte {
207
return reportJSON
208
209
210
+// Passed returns whether the checks passed cumulatively.
211
+func Passed() bool {
212
+ return report.Summary.Pass
213
+}
214
+
215
func getProjectReportIndex(projectPath *paths.Path) (bool, int) {
216
var index int
217
var projectReport projectReportType
0 commit comments