|
1 | 1 | /**
|
2 | 2 | * Formats commitlint report as GitHub status report
|
3 | | - * |
4 | | - * @param {Object} report |
| 3 | + * |
| 4 | + * @param {Object} report |
5 | 5 | */
|
6 | 6 | const format = report => {
|
7 | 7 | const { commits } = report
|
@@ -29,7 +29,17 @@ const format = report => {
|
29 | 29 | // Summary
|
30 | 30 | const summary = `found ${errorsCount} problems, ${warnsCount} warnings`
|
31 | 31 | 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 | +` |
33 | 43 | }
|
34 | 44 | return { summary, message }
|
35 | 45 | }
|
|
0 commit comments