diff --git a/skills/gitlink-changelog/SKILL.md b/skills/gitlink-changelog/SKILL.md index f9763769..d58dcddb 100644 --- a/skills/gitlink-changelog/SKILL.md +++ b/skills/gitlink-changelog/SKILL.md @@ -97,6 +97,8 @@ gitlink-cli release +update --id --body "<更新后的 Notes>" **完整变更日志**: https://www.gitlink.org.cn/{OWNER}/{REPO}/compare/{PREV}...{VERSION} ``` +> **条目格式要求**:每个变更条目必须在末尾标注作者,格式为 `- 变更描述 (#编号) (@作者)`。commit 无 PR 编号时格式为 `- 变更描述 (作者名)`。 + ### 简化模板 ```markdown diff --git a/skills/gitlink-changelog/examples/full-workflow.md b/skills/gitlink-changelog/examples/full-workflow.md index e2dabd83..2709ed19 100644 --- a/skills/gitlink-changelog/examples/full-workflow.md +++ b/skills/gitlink-changelog/examples/full-workflow.md @@ -62,17 +62,17 @@ AI 根据 [分类规则](../references/classify-rules.md) 对收集到的数据 ``` 新功能: - - 支持批量 Issue 操作 (#12) - - 新增 uninstall 命令 (#11) + - 支持批量 Issue 操作 (#12) (@zhangsan) + - 新增 uninstall 命令 (#11) (@lisi) Bug 修复: - - 修复 URL 解析异常 (#10) + - 修复 URL 解析异常 (#10) (@wangwu) 功能改进: - - 重构自动部署配置 + - 重构自动部署配置 (camelliamc) 文档: - - 更新分支映射说明 + - 更新分支映射说明 (camelliamc) ``` ### 第六步:生成 Notes 并确认 @@ -89,14 +89,14 @@ AI 套用标准模板生成草稿并展示给用户: - **破坏性变更**: 0 个 ## ✨ 新功能 -- 支持批量 Issue 操作 (#12) -- 新增 uninstall 命令 (#11) +- 支持批量 Issue 操作 (#12) (@zhangsan) +- 新增 uninstall 命令 (#11) (@lisi) ## 🐛 Bug 修复 -- 修复 URL 解析异常 (#10) +- 修复 URL 解析异常 (#10) (@wangwu) ## 🔧 功能改进 -- 重构自动部署配置 +- 重构自动部署配置 (camelliamc) ## 🙏 贡献者 zzx-coder, camelliamc @@ -120,17 +120,17 @@ gitlink-cli release +create \ - **破坏性变更**: 0 个 ## ✨ 新功能 -- 支持批量 Issue 操作 (#12) -- 新增 uninstall 命令 (#11) +- 支持批量 Issue 操作 (#12) (@zhangsan) +- 新增 uninstall 命令 (#11) (@lisi) ## 🐛 Bug 修复 -- 修复 URL 解析异常 (#10) +- 修复 URL 解析异常 (#10) (@wangwu) ## 🔧 功能改进 -- 重构自动部署配置 +- 重构自动部署配置 (camelliamc) ## 🙏 贡献者 -zzx-coder, camelliamc +zhangsan, lisi, wangwu, camelliamc --- **完整变更日志**: https://www.gitlink.org.cn/zzx-coder/gitlink-cli/compare/v1.0.0...v1.1.0" diff --git a/skills/gitlink-changelog/references/collect-data.md b/skills/gitlink-changelog/references/collect-data.md index 30195b16..59f23294 100644 --- a/skills/gitlink-changelog/references/collect-data.md +++ b/skills/gitlink-changelog/references/collect-data.md @@ -64,9 +64,9 @@ gitlink-cli issue +list --state closed --format json 收集完成后,AI 整合三类数据: -1. **Commits** → 提取 commit message 第一行作为变更摘要 -2. **PRs** → 用 `title` 和 `number` 生成条目:`- 功能描述 (#PR编号)` -3. **Issues** → 用 `subject` 和 `project_issues_index` 生成条目:`- Issue 描述 (#编号)` +1. **Commits** → 提取 commit message 第一行作为变更摘要,附作者名 +2. **PRs** → 用 `title`、`number`、`author.login` 生成条目:`- 功能描述 (#PR编号) (@作者)` +3. **Issues** → 用 `subject`、`project_issues_index`、`author.login` 生成条目:`- Issue 描述 (#编号) (@作者)` 时间筛选逻辑:从 `release +list` 获取上一个版本的发布时间,只取该时间之后的 PR/Issue。 diff --git a/skills/gitlink-changelog/references/generate-and-publish.md b/skills/gitlink-changelog/references/generate-and-publish.md index cec2013d..b399953d 100644 --- a/skills/gitlink-changelog/references/generate-and-publish.md +++ b/skills/gitlink-changelog/references/generate-and-publish.md @@ -66,7 +66,7 @@ | `{OWNER}` | 仓库所有者,从 git remote 解析 | | `{REPO}` | 仓库名称,从 git remote 解析 | | `{FEATURE_COUNT}` 等 | 分类后的各类变更数量 | -| `{FEATURES}` 等 | 分类后的各类变更条目,每条一行 `- 描述 (#编号)` | +| `{FEATURES}` 等 | 分类后的各类变更条目,每条一行 `- 描述 (#编号) (@作者)` | | `{CONTRIBUTORS}` | 从 commits/PRs 去重后的贡献者列表 | ## 命令