Skip to content

Commit 4d8e843

Browse files
committed
ci: remove unused allowedSubTypes from PR title validation
1 parent dc20ad4 commit 4d8e843

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

ci/validate-pr-title/validate.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@ const allowedTypes = [
1313

1414
const allowedSubTypes = [
1515
"build",
16-
"sql",
1716
"log",
18-
"mig",
1917
"core",
2018
"ilp",
21-
"pgwire",
2219
"http",
2320
"conf",
24-
"ui",
25-
"wal",
26-
"parquet",
27-
"utils"
21+
"utils",
2822
];
2923

3024
const errorMessage = `
@@ -52,8 +46,8 @@ perf(sql): improve pattern matching performance for SELECT sub-queries
5246
* */
5347
const prTitleRegex = new RegExp(
5448
`^(((?:${allowedTypes.join("|")})\\((?:${allowedSubTypes.join(
55-
"|"
56-
)})\\))|build): .*`
49+
"|",
50+
)})\\))|build): .*`,
5751
);
5852

5953
function validate({ title, onError }) {

0 commit comments

Comments
 (0)