Skip to content

Commit 95d1c4c

Browse files
committed
ci: add blacklist of SHAs to commit validation
1 parent de7a44f commit 95d1c4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/validate-commits.ts

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

1313

14+
const blacklist = [
15+
'9ce1aed331ad0742463b587f1f5555486ccc202f',
16+
'de7a44f23514594274394322adaf40ac87c38d8b',
17+
];
18+
19+
1420
export interface ValidateCommitsOptions {
1521
ci?: boolean;
1622
base?: string;
@@ -67,6 +73,11 @@ export default function (argv: ValidateCommitsOptions, logger: logging.Logger) {
6773
}
6874

6975
for (const [sha, message] of commits) {
76+
if (blacklist.indexOf(sha) !== -1) {
77+
// Some commits are better ignored.
78+
continue;
79+
}
80+
7081
const subject = message.match(/^([^:(]+)(?:\((.*?)\))?:/);
7182
if (!subject) {
7283
_invalid(sha, message, 'does not have a subject');

0 commit comments

Comments
 (0)