From 50547ea80b0c83791fb1766c9a992bf59cd999b2 Mon Sep 17 00:00:00 2001 From: TommyLike Date: Thu, 11 Jun 2026 13:11:06 +0800 Subject: [PATCH] docs: fix config.example and CLAUDE.md accuracy - config/config.example.yaml: add EUR service section - CLAUDE.md: add GitHub, Jenkins, EUR, Forum to builtin services table - CLAUDE.md: update directory structure with all 6 specs --- claude-specification/project/CLAUDE.md | 9 ++++++++- config/config.example.yaml | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/claude-specification/project/CLAUDE.md b/claude-specification/project/CLAUDE.md index eeeac35..4656663 100644 --- a/claude-specification/project/CLAUDE.md +++ b/claude-specification/project/CLAUDE.md @@ -49,8 +49,11 @@ cora/ │ ├── assets.go # go:embed 嵌入 Spec 文件 │ └── openapi/ # 内置服务 OpenAPI Spec │ ├── etherpad/openapi.json +│ ├── eur/openapi.json │ ├── forum/openapi.json -│ └── gitcode/openapi.json +│ ├── gitcode/openapi.json +│ ├── github/api.github.com.json +│ └── jenkins/openapi.json ├── spec/ # 架构与设计文档 │ ├── architecture-design.md │ ├── logging-design.md # 日志系统设计(必读) @@ -95,7 +98,11 @@ cora/ | 服务 | 命令名 | 默认 API 地址 | |------|--------|--------------| | GitCode | `gitcode` | `https://api.gitcode.com` | +| GitHub | `github` | `https://api.github.com` | | Etherpad | `etherpad` | `https://etherpad.openeuler.org/api/1.3.0` | +| Jenkins | `jenkins` | 无默认值,需配置 base_url | +| EUR | `eur` | `https://eur.openeuler.openatom.cn/api_3` | +| Forum | `forum` | 无默认值,需配置 spec_url + base_url | ### OpenAPI Spec 编写规范 diff --git a/config/config.example.yaml b/config/config.example.yaml index 0683e4e..0217996 100644 --- a/config/config.example.yaml +++ b/config/config.example.yaml @@ -54,6 +54,14 @@ services: username: YOUR_JENKINS_USERNAME api_token: YOUR_JENKINS_API_TOKEN + # ── EUR / openEuler Copr(内置 Spec,无需 spec_url)── + # eur: + # base_url: https://eur.openeuler.openatom.cn/api_3 + # auth: + # eur: + # username: "your-username" + # api_token: "your-api-token" + # ── Forum (Discourse) ───────────────────────────────────────────────────────── # spec_url: URL or local path to the service's OpenAPI spec. # Supported: http://, https://, file://, or a bare filesystem path.