Skip to content

Commit ba547e7

Browse files
authored
Enable automatic annotations on GitHub Actions (#497)
1 parent a5ff341 commit ba547e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli-main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if (typeof options.space === 'string') {
136136
}
137137

138138
const log = report => {
139-
const reporter = options.reporter ? xo.getFormatter(options.reporter) : formatterPretty;
139+
const reporter = options.reporter || process.env.GITHUB_ACTIONS ? xo.getFormatter(options.reporter || 'compact') : formatterPretty;
140140
process.stdout.write(reporter(report.results));
141141
process.exitCode = report.errorCount === 0 ? 0 : 1;
142142
};

0 commit comments

Comments
 (0)