This repository was archived by the owner on Apr 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,17 @@ const format = report => {
77 const { errors, warnings } = report
88
99 // Summary
10- let message = `found ${ errors . length } problems, ${ warnings . length } warnings\n `
10+ let message = `found ${ errors . length } problems, ${ warnings . length } warnings`
1111
12- // Errors
13- if ( errors . length > 0 ) {
14- message += '\n' + errors . map ( e => '✖ ' + e . message ) . join ( '\n' )
15- }
16- // Warnings
17- if ( warnings . length > 0 ) {
18- message += '\n' + warnings . map ( e => '⚠ ' + e . message ) . join ( '\n' )
19- }
12+ // TODO: write PR comment instead of multi-line description
13+ // // Errors
14+ // if (errors.length > 0) {
15+ // message += '\n' + errors.map(e => '✖ ' + e.message).join('\n')
16+ // }
17+ // // Warnings
18+ // if (warnings.length > 0) {
19+ // message += '\n' + warnings.map(e => '⚠ ' + e.message).join('\n')
20+ // }
2021
2122 return message
2223}
Original file line number Diff line number Diff line change 33 "payload" : {
44 "action" : " opened" ,
55 "pull_request" : {
6- "number" : 3 ,
6+ "number" : 1 ,
77 "user" : {
8- "login" : " ahmed-taj "
8+ "login" : " user "
99 },
1010 "head" : {
1111 "sha" : " 123456789" ,
1212 "user" : {
13- "login" : " ahmed-taj "
13+ "login" : " user "
1414 }
1515 }
1616 },
1717 "repository" : {
18- "name" : " test-commitlint-bot " ,
18+ "name" : " repo " ,
1919 "owner" : {
20- "login" : " ahmed-taj "
20+ "login" : " user "
2121 }
2222 },
2323 "installation" : {
Original file line number Diff line number Diff line change 55 "pull_request" : {
66 "number" : 1 ,
77 "user" : {
8- "login" : " ahmed-taj "
8+ "login" : " user "
99 },
1010 "head" : {
1111 "sha" : " 123456789" ,
1212 "user" : {
13- "login" : " ahmed-taj "
13+ "login" : " user "
1414 }
1515 }
1616 },
1717 "repository" : {
18- "name" : " test-commitlint-bot " ,
18+ "name" : " repo " ,
1919 "owner" : {
20- "login" : " ahmed-taj "
20+ "login" : " user "
2121 }
2222 },
2323 "installation" : {
You can’t perform that action at this time.
0 commit comments