Skip to content

Commit

Permalink
feat: use neutral status when there are warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Feb 27, 2020
1 parent 04ee203 commit fbf0a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const headers = {
await updateCheck(id, {
status: 'completed',
completed_at: (new Date()).toISOString(),
conclusion: errorCount > 0 ? 'failure' : 'success',
conclusion: errorCount > 0 ? 'failure' : warningCount > 0 && 'neutral' || 'success',
output: {
title: checkName,
summary: `${ errorCount } error(s), ${ warningCount } warning(s) found`
Expand Down

0 comments on commit fbf0a80

Please # to comment.