feat(templates): add gitea ci example

This commit is contained in:
csh
2025-12-22 16:25:43 +08:00
parent a52bb246ab
commit 9d059cf698
7 changed files with 281 additions and 1 deletions
+2 -1
View File
@@ -39,6 +39,7 @@ PlaybookTSL`.tsl`/`.tsf`+ C++ + Python 工程规范与代理规则合
- `docs/python/configuration.md`Python 配置清单(落地时从 `templates/python/` 复制到项目根目录)。
- `templates/cpp/`C++ 落地模板(`.clang-format``conanfile.txt``CMakeUserPresets.json``CMakeLists.txt`)。
- `templates/python/`Python 落地模板(`pyproject.toml` 工具配置、`.flake8``.pylintrc``.pre-commit-config.yaml``.editorconfig``.vscode/settings.json`)。
- `templates/ci/`:目标项目 CI 示例模板(如 Gitea Actions),用于自动化校验部分规范。
## .agents/(代理规则)
@@ -246,7 +247,7 @@ sh docs/standards/playbook/scripts/sync_standards.sh tsl cpp
脚本会:
- 生成裁剪快照到 `docs/standards/playbook/`(包含 `docs/common/` + 选定语言目录 + 对应 `.agents/<lang>/` + `scripts/` + `.gitattributes` + 相关 `templates/<lang>/`
- 生成裁剪快照到 `docs/standards/playbook/`(包含 `docs/common/` + 选定语言目录 + 对应 `.agents/<lang>/` + `scripts/` + `.gitattributes` + 通用 `templates/ci/` + 相关 `templates/<lang>/`
- 自动执行 `docs/standards/playbook/scripts/sync_standards.*`,把 `.agents/<lang>/` 与 `.gitattributes` 落地到目标项目根目录
- 生成 `docs/standards/playbook/SOURCE.md` 记录来源与版本信息