Skip to content

Commit a5c1faa

Browse files
hanslalexeagle
authored andcommitted
build: fix invalid commits that made it through
And remove the usage of "blacklist" while Im at it.
1 parent 02410e4 commit a5c1faa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/validate-commits.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { execSync } from 'child_process';
1111
import { packages } from '../lib/packages';
1212

1313

14-
const blacklist = [
14+
const ignoreCommitShaList = [
1515
'9ce1aed331ad0742463b587f1f5555486ccc202f',
1616
'de7a44f23514594274394322adaf40ac87c38d8b',
1717
'21d87e93955b12d137417a2bb0536d7faef3ad07',
@@ -25,6 +25,8 @@ const blacklist = [
2525
'fb1c2af810d069229760800c2f539e8a764fe1eb',
2626
'7ba94c8084eb65407abd5531dcbb7275401969c9',
2727
'8475b3dadba3d50a96a2f876188bbf78d55039aa',
28+
'bf566c710181b0e23af0070540294de99f259fe9',
29+
'fa6795a8471d1c9ae4d583f8e698e49f74a137e6',
2830
];
2931

3032

@@ -140,7 +142,7 @@ export default function (argv: ValidateCommitsOptions, logger: logging.Logger) {
140142
}
141143

142144
for (const [sha, message] of commits) {
143-
if (blacklist.find(i => i.startsWith(sha))) {
145+
if (ignoreCommitShaList.find(i => i.startsWith(sha))) {
144146
// Some commits are better ignored.
145147
continue;
146148
}

0 commit comments

Comments
 (0)