mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
Revert "ci: 允许Merge出现在pr中的commit name (#10098)"
This reverts commit b78e7109f2.
不允许提交Merge commit,所以该内容无意义且与规则冲突
This commit is contained in:
2
.github/workflows/pr-checker.yml
vendored
2
.github/workflows/pr-checker.yml
vendored
@@ -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)`);
|
||||
|
||||
Reference in New Issue
Block a user