feat(examples): add pr-quality-gatekeeper end-to-end workflow(子题三:门禁闭环 + 全仓批扫) #219
Loading…
Reference in New Issue
No description provided.
Delete Branch "recorder/gitlink-cli:feat/example-workflow-pr-gatekeeper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
这个 PR 做什么
把已收录的
gitlink-gatekeeperSkill(#90)包成 examples/workflows/ 下可直接运行的端到端工作流,补全三层闭环:label命令(#89)→ gatekeeper Skill(#90)→ 本工作流,三层共用同一套gatekeeper.yaml策略。采集 → 路由 → 裁决 → 回写/善后:纯标准库脚本(Python ≥3.9,零第三方依赖)驱动
gitlink-cli,对真实 PR 算出确定性 0–100 评分卡与三态裁决;默认 dry-run,--apply才回写(评论 + 裁决标签 + tracking issue),绝不自动合并。包含
scripts/gatekeeper_workflow.py单 PR 门禁闭环;scripts/gatekeeper_sweep.py仓库级批量体检ci-example/Gitea Actions 接入(退出码 2 = REQUEST_CHANGES 即 CI 门禁)docs/(architecture / quickstart / runbook / verification)+tests/test_scoring.py(确定性回归护栏,全绿)examples/demo-outputs/全部为真实平台运行产物已在真实平台验证(详见 docs/verification.md)
--apply在自有 fork 演练:评分卡评论(id 472741)+ tracking issue(id 143217)+ 裁决标签,均有 API 回执与 #131(Java Gatekeeper)的关系
注意到 #131 也在做 PR 质量门禁(Java + 常驻 webhook 服务),方向很好;本例定位不同:作为已收录 skills/gitlink-gatekeeper 的配套参考实现——纯标准库零部署、评分确定性可逐位手算、与 Skill 共用一套策略文件、附全仓批扫模式。两者互补而非重复。
影响面
仅新增
examples/workflows/pr-quality-gatekeeper/(17 个文件),不改动任何 Go 代码与现有文件。骨架对齐已合并的 community-ops-automation / project-bootstrap-automation。