[moz] ci: 文档改动跳过 CI/CD(paths-ignore) #122

Merged
jiangwei-infra merged 2 commits from fix/ci-skip-docs-only-changes into main 2026-06-22 23:00:54 +00:00
Owner
No description provided.
jiangwei-infra added 1 commit 2026-06-22 22:54:53 +00:00
[moz] ci: 文档改动跳过 CI/CD,仅代码改动触发
CI / lint (pull_request) Successful in 17s
CI / test (pull_request) Successful in 29s
CI / frontend (pull_request) Successful in 20s
CI / notify-on-failure (pull_request) Successful in 1s
a584bb0abf
simayi-challenger approved these changes 2026-06-22 22:55:57 +00:00
simayi-challenger left a comment
Member

审查结论:Approve

风险级别:低(L1 小改动,2 文件 +14 行 CI 配置)

改动验证

ci.yml 和 deploy.yml 新增 paths-ignore,纯文档改动跳过 CI/CD。

paths-ignore 列表

  • docs/** — 设计文档
  • mockups/** — 原型
  • prompt_templates/** — prompt 模板
  • *.md — 根目录 markdown
  • README.md — README(已被 *.md 覆盖,冗余但无害)

正确性

  • paths-ignore 是 GitHub Actions 标准语法,Gitea v1.23.4 Actions 兼容
  • 代码文件在 src/, tests/, config/ 下,不会被 paths-ignore 误伤
  • ci.yml(pull_request)和 deploy.yml(push main)都加了,覆盖完整
  • .gitea/ 自身改动不在 paths-ignore 中——CI 配置改动仍会触发 CI

小问题

G1. *.md 已覆盖根目录所有 markdown 文件(含 README.md),README.md 是冗余条目。无害但不必要。

交付检查

  • 文档:无需更新(CI 配置改动)
  • 测试:无需测试(CI 配置改动)

Approve

## 审查结论:Approve **风险级别:低**(L1 小改动,2 文件 +14 行 CI 配置) ### 改动验证 ci.yml 和 deploy.yml 新增 `paths-ignore`,纯文档改动跳过 CI/CD。 **paths-ignore 列表**: - `docs/**` — 设计文档 - `mockups/**` — 原型 - `prompt_templates/**` — prompt 模板 - `*.md` — 根目录 markdown - `README.md` — README(已被 `*.md` 覆盖,冗余但无害) ### 正确性 - [x] paths-ignore 是 GitHub Actions 标准语法,Gitea v1.23.4 Actions 兼容 - [x] 代码文件在 `src/`, `tests/`, `config/` 下,不会被 paths-ignore 误伤 - [x] ci.yml(pull_request)和 deploy.yml(push main)都加了,覆盖完整 - [x] `.gitea/` 自身改动不在 paths-ignore 中——CI 配置改动仍会触发 CI ✅ ### 小问题 G1. `*.md` 已覆盖根目录所有 markdown 文件(含 README.md),`README.md` 是冗余条目。无害但不必要。 ### 交付检查 - 文档:无需更新(CI 配置改动) - 测试:无需测试(CI 配置改动) Approve
jiangwei-infra added 1 commit 2026-06-22 22:58:22 +00:00
Merge branch 'main' of http://192.168.2.154:3000/sanguo/sanguo_moziplus_v2 into fix/ci-skip-docs-only-changes
CI / lint (pull_request) Successful in 25s
CI / test (pull_request) Successful in 44s
CI / frontend (pull_request) Successful in 21s
CI / notify-on-failure (pull_request) Successful in 0s
09c763341a
jiangwei-infra merged commit 474db1263b into main 2026-06-22 23:00:54 +00:00
jiangwei-infra deleted branch fix/ci-skip-docs-only-changes 2026-06-22 23:00:57 +00:00
Sign in to join this conversation.