ci: PR Checker增加i18n匹配

This commit is contained in:
status102
2023-12-02 19:17:52 +08:00
committed by GitHub
parent f75ea14839
commit 4bd0a05013

View File

@@ -21,7 +21,7 @@ jobs:
pull_number: context.payload.pull_request.number
});
const regex = /^((build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test)[\:\.\(\,]|[Rr]evert|[Rr]elease)/;
const regex = /^((build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test|i18n)[\:\.\(\,]|[Rr]evert|[Rr]elease)/;
const invalidCommits = commits.filter(commit => !regex.test(commit.commit.message));
console.log(`check ${commits.length} commit(s)`);