chore: 设计系统闸改本地 pre-commit(撤 CI)
撤 .gitea/workflows/ds-gate.yml,改本地钩子: - scripts/hooks/pre-commit:提交动了 .superpowers/prototype/ 才跑 check-ds.mjs (12 道),违规即 exit 1 阻止;--no-verify 可跳过。 - scripts/hooks/install.sh:每台机器跑一次,装 worktree-aware shim 到 git hooks。 原型仍入库(上一提交),仅执行处从 CI 移到本地。已测:违规阻止/无关跳过均正确。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TSKEiHsvauyxYUW2itzUXX
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
name: Design System Gate
|
||||
|
||||
# 原型设计系统守门闸(单一真源,12 道检查)。
|
||||
# 改了原型(tokens/atoms/screens/index)就跑,确保颜色/排版/层级/圆角/字体/图标
|
||||
# 全走 tokens.css/atoms.css,组件已在 index.html 登记且未 fork。
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
paths:
|
||||
- '.superpowers/prototype/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.superpowers/prototype/**'
|
||||
|
||||
jobs:
|
||||
check-ds:
|
||||
runs-on: mac
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: 设计系统守门(check-ds.mjs · 12 道闸)
|
||||
run: node .superpowers/prototype/tools/check-ds.mjs
|
||||
Reference in New Issue
Block a user