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

Commit

Permalink
feat: use comment to advise how to fix
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
z0al committed Dec 16, 2017
1 parent 42f9562 commit 84a0840
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/format.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Formats commitlint report as GitHub status report
*
* @param {Object} report
*
* @param {Object} report
*/
const format = report => {
const { commits } = report
Expand Down Expand Up @@ -29,7 +29,17 @@ const format = report => {
// Summary
const summary = `found ${errorsCount} problems, ${warnsCount} warnings`
if (errorsCount > 0 || warnsCount > 0) {
message = `There were the following issues with this Pull Request\n${message}`
message = `
There were the following issues with this Pull Request
${message}
You may need to [change the commit messages](https://help.github.com/articles/changing-a-commit-message/) to comply with the repository contributing guidelines.
--------
:robot: This comment is autogenerated. If you noticed some issues please report them [here](https://github.com/ahmed-taj/commitlint-bot). Happy coding!
`
}
return { summary, message }
}
Expand Down

0 comments on commit 84a0840

Please sign in to comment.