Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit b0ff83d

Browse files
committed
fix: don't report state as error
The state should be reported as "failure" instead of "error"
1 parent 47d9c76 commit b0ff83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/lint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const commitlint = async ({ github, payload }) => {
5353
// Final status
5454
await github.repos.createStatus({
5555
...statusInfo,
56-
state: report.valid ? 'success' : 'error',
56+
state: report.valid ? 'success' : 'failure',
5757
description: summary
5858
})
5959
// Write a comment with the details (if any)

0 commit comments

Comments
 (0)