Skip to content

Commit ac7dd15

Browse files
committed
ci: 更正 line-limits job 的过期注释
该注释有两处已不成立:① 说「本地提交门禁默认只守结构」——自 .husky/pre-commit 改直跑后, 本地已与 CI 同口径守 (e);② 引用「package.json 的 lint-staged 条目」——该块已删。 改为如实描述:CI 是第二道网、本地同样守 (e)、--full 只读不写表故不会逼人重生成表。
1 parent dd130df commit ac7dd15

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/workflows/pr-check.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ jobs:
183183
- uses: actions/setup-node@v4
184184
with:
185185
node-version: 20
186-
# --full:CI 在结构之外额外守 (e)「登记值 == 实测值」。本地提交门禁默认只守结构,原因是
187-
# 本地跑 (e) 会让每次源码改动都被迫重新生成登记表;而 --full 本身是**只读**的(不会重写表),
188-
# 故本地改为在「门禁自身/登记表被改动」时跑它(见 package.json 的 lint-staged 条目)。
186+
# --full:CI 在结构之外额外守 (e)「登记值 == 实测值」,与**本地完全同口径**。
187+
# 本地提交门禁(.husky/pre-commit)自 2026-09-11 起直跑
188+
# `node scripts/line-limits.mjs --full && node scripts/docs-check.mjs`(不经 lint-staged),
189+
# 故这条 job 是**第二道**网、不再是唯一守 (e) 的地方。--full 只读、不重写登记表
190+
# (写表只走 --write),因此本地跑它不会逼迫任何人重新生成表。
189191
- name: Line limits
190192
run: node scripts/line-limits.mjs --full

0 commit comments

Comments
 (0)