mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
ci: PR Checker增加i18n匹配
This commit is contained in:
2
.github/workflows/pr-checker.yml
vendored
2
.github/workflows/pr-checker.yml
vendored
@@ -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)`);
|
||||
|
||||
Reference in New Issue
Block a user