Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

changelog #9185

Closed
txp1035 opened this issue Aug 31, 2022 · 2 comments · Fixed by #10261
Closed

changelog #9185

txp1035 opened this issue Aug 31, 2022 · 2 comments · Fixed by #10261
Assignees

Comments

@txp1035
Copy link
Member

txp1035 commented Aug 31, 2022

背景

可以在官网看到历史版本。例子
因为正好是文档,changelog可以直接生成到docs里作为文档使用。

实现方案

conventional-changelog 生成日志
可以自定义模板

@txp1035 txp1035 self-assigned this Aug 31, 2022
@sorrycc
Copy link
Member

sorrycc commented Sep 2, 2022

Umi Changelog 方案

1、基于 https://github.com/unjs/changelogen
2、生成和 Umi 现有 release note 相似的 markdown 格式,参考 https://github.com/umijs/umi/releases/tag/v4.0.16
3、按 feat、fix 做排序,删除 chore 和 docs 的改动
3、和 release.ts 脚本结合,发布完成后打开 Github 的 Release 页面,自动包含相关内容

@txp1035
Copy link
Member Author

txp1035 commented Sep 3, 2022

image

这个接口直接生成的changelog,逻辑处理在服务器端,不够灵活

@txp1035 txp1035 linked a pull request Sep 3, 2022 that will close this issue
@txp1035 txp1035 linked a pull request Jan 10, 2023 that will close this issue
@txp1035 txp1035 moved this from 📋 RFC to ✅ Done in Umi Tasks Jan 16, 2023
This was referenced Feb 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants