Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 84a0840

Browse files
committed
feat: use comment to advise how to fix
Closes #2
1 parent 42f9562 commit 84a0840

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

‎lib/format.js‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Formats commitlint report as GitHub status report
3-
*
4-
* @param {Object} report
3+
*
4+
* @param {Object} report
55
*/
66
const format = report => {
77
const { commits } = report
@@ -29,7 +29,17 @@ const format = report => {
2929
// Summary
3030
const summary = `found ${errorsCount} problems, ${warnsCount} warnings`
3131
if (errorsCount > 0 || warnsCount > 0) {
32-
message = `There were the following issues with this Pull Request\n${message}`
32+
message = `
33+
There were the following issues with this Pull Request
34+
35+
${message}
36+
37+
You may need to [change the commit messages](https://help.github.com/articles/changing-a-commit-message/) to comply with the repository contributing guidelines.
38+
39+
--------
40+
41+
:robot: This comment is autogenerated. If you noticed some issues please report them [here](https://github.com/ahmed-taj/commitlint-bot). Happy coding!
42+
`
3343
}
3444
return { summary, message }
3545
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /