docs(guard): 纯文档合入豁免条款入库(合回闸:merge diff 不触 game/ 放行,2026-10-16 用户令「改了代码的合入才做测试验证」)+active.md 501 条(用语规范批收口登记)

This commit is contained in:
DKChan committed 2026-10-16 02:04:48 +08:00
1 parent ddb598f712
commit 3b083b2257
2 files changed
+11

No files matched your search

+9
View File
@@ -133,6 +133,15 @@ elif tool == "Bash":
if not tip:
tip = git_out("rev-parse", "HEAD")
# 纯文档合入豁免(2026-10-16 用户令「改了代码的合入才做测试验证,文档的合入不验」):
# merge-base..分支尖 的改动不触碰 game/(游戏工程本体)=纯文档/开发工具面合入,
# 跑游戏测试无意义,直接放行;触碰 game/ 的代码合入仍走下方回执校验。
if merge_branch:
_base = git_out("merge-base", "HEAD", merge_branch)
_touched_game = git_out("diff", "--name-only", _base, merge_branch, "--", "game/") if _base else "x"
if not _touched_game:
sys.exit(0)
cands = []
if merge_branch:
try: