Skip to content

Commit

Permalink
fix: add error check to repolinter output
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Jul 29, 2020
1 parent 754b759 commit de85259
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ async function run(): Promise<void> {
core.startGroup('Repolinter Output')
core.info(resultFormatter.formatOutput(result, true))
core.endGroup()
if (result.errored)
throw new Error(`Repolinter failed with error: ${result.errMsg}`)
// if the result is not a pass or an error, open an issue
// TODO: what to do if the run errors
// TODO: automatically create the repolinter label
Expand Down

0 comments on commit de85259

Please sign in to comment.