Skip to content

Commit

Permalink
feat: point to guidelines on failure in TAP output
Browse files Browse the repository at this point in the history
If commit linting fails, include the URL to the commit message
guidelines in the TAP output.
  • Loading branch information
richardlau committed Feb 25, 2022
1 parent 69435db commit 86c8325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ module.exports = class Tap extends Readable {

if (this._failures) {
this.write(`# fail ${this._failures}`)
this.write('# Please review the commit message guidelines:')
this.write('# https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines')
}

this.push(null)
Expand Down

0 comments on commit 86c8325

Please sign in to comment.