feat: 新增基于 tag 的发布日志生成 - #177
Open
liweijie0812 wants to merge 5 commits into
Open
Conversation
单仓模式(`mode: single`)下,直接扫描 tag 区间内已合并 PR 的 body 生成发布日志,不再依赖 `.changelog/*.md` 暂存文件。Release tag 使用纯版本号,并支持自定义 `CHANGELOG.md` 路径与 `from-tag` / `to-tag` 参数。
- 单仓模式下支持自定义 changelog 路径并匹配解析 - 新增 prerelease 参数以支持预发布版本创建 - 优化已合并 PR 提取逻辑,改为遍历所有提交并校验 merged_at - 修复获取 tag changelog 时默认 from-tag 指向旧版本号的问题 - 新增及更新相关测试用例
- 支持 base 为空时扫描 head 的全部历史 - 通过 git describe 查找目标 ref 可达的最近 tag 作为区间起点,稳定版过滤 alpha/beta - 分页获取区间内提交及关联 PR,兼容 merge、squash 和 rebase - 单仓模式 Release/tag 创建失败时中断 workflow - 单个提交或 PR 查询失败产生 warning 并继续
当 PR body 中没有有效更新日志且未显式跳过时,自动使用 PR 标题作为回退。符合规范的标题保留类型与 scope,其他标题归入 Others。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
单仓模式(
mode: single)下,直接扫描 tag 区间内已合并 PR 的 body 生成发布日志,不再依赖.changelog/*.md暂存文件。Release tag 使用纯版本号,并支持自定义CHANGELOG.md路径与from-tag/to-tag参数。