Revert "ci: 允许Merge出现在pr中的commit name (#10098)"

This reverts commit b78e7109f2.

不允许提交Merge commit,所以该内容无意义且与规则冲突
This commit is contained in:
status102
2024-08-05 21:34:35 +08:00
parent b78e7109f2
commit 0085e1242f

View File

@@ -38,7 +38,7 @@ jobs:
per_page: 100
});
const regex = /^((build|chore|ci|docs?|feat!?|fix|perf|refactor|rft|style|test|i18n|typo|debug)[\:\.\(\,]|[Rr]evert|[Rr]elease|[Mm]erge)/;
const regex = /^((build|chore|ci|docs?|feat!?|fix|perf|refactor|rft|style|test|i18n|typo|debug)[\:\.\(\,]|[Rr]evert|[Rr]elease)/;
const invalidCommits = commits.filter(commit => !regex.test(commit.commit.message) || commit.parents.length > 1);
console.log(`Checked ${commits.length} commit(s)`);