Commit 887cfa1 1 parent af22bdc commit 887cfa1 Copy full SHA for 887cfa1
File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -5332,11 +5332,6 @@ async function verifyCommits(repoToken) {
5332
5332
isCommitBad = true;
5333
5333
}
5334
5334
5335
- if (message[0] !== message[0].toUpperCase()) {
5336
- error(`commit message \"${message}\" should have first letter in upper case`);
5337
- isCommitBad = true;
5338
- }
5339
-
5340
5335
const badKeywords = filterCommit(message);
5341
5336
if (badKeywords.length) {
5342
5337
error(`commit message \"${message}\" contains ${badKeywords.join()}`);
@@ -5349,7 +5344,7 @@ async function verifyCommits(repoToken) {
5349
5344
}
5350
5345
}
5351
5346
if (badCommits) {
5352
- throw Error(`${badCommits} have been encountered. Please fix the above errors`);
5347
+ throw Error(`${badCommits} bad commit(s) encountered. Please fix the above errors`);
5353
5348
}
5354
5349
}
5355
5350
async function main() {
@@ -5358,7 +5353,7 @@ async function main() {
5358
5353
await verifyCommits(repoToken);
5359
5354
debug('Recieved repo token');
5360
5355
} catch (e) {
5361
- setFailed(`Action failed with error ${e.message}`);
5356
+ setFailed(`Action failed with error: ${e.message}`);
5362
5357
}
5363
5358
}
5364
5359
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ async function verifyCommits(repoToken) {
30
30
isCommitBad = true ;
31
31
}
32
32
33
- if ( message [ 0 ] !== message [ 0 ] . toUpperCase ( ) ) {
34
- error ( `commit message \"${ message } \" should have first letter in upper case` ) ;
35
- isCommitBad = true ;
36
- }
37
-
38
33
const badKeywords = filterCommit ( message ) ;
39
34
if ( badKeywords . length ) {
40
35
error ( `commit message \"${ message } \" contains ${ badKeywords . join ( ) } ` ) ;
@@ -47,7 +42,7 @@ async function verifyCommits(repoToken) {
47
42
}
48
43
}
49
44
if ( badCommits ) {
50
- throw Error ( `${ badCommits } have been encountered. Please fix the above errors` ) ;
45
+ throw Error ( `${ badCommits } bad commit(s) encountered. Please fix the above errors` ) ;
51
46
}
52
47
}
53
48
async function main ( ) {
@@ -56,7 +51,7 @@ async function main() {
56
51
await verifyCommits ( repoToken ) ;
57
52
debug ( 'Recieved repo token' ) ;
58
53
} catch ( e ) {
59
- setFailed ( `Action failed with error ${ e . message } ` ) ;
54
+ setFailed ( `Action failed with error: ${ e . message } ` ) ;
60
55
}
61
56
}
62
57
You can’t perform that action at this time.
0 commit comments