Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(changelog): add auto generate release changelog script #10761

Merged
merged 12 commits into from
Mar 20, 2023

Conversation

MaxCDon
Copy link
Contributor

@MaxCDon MaxCDon commented Mar 15, 2023

No description provided.

@vercel
Copy link

vercel bot commented Mar 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
umi ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 19, 2023 at 2:33PM (UTC)

package.json Outdated Show resolved Hide resolved
scripts/changelog.ts Outdated Show resolved Hide resolved
scripts/changelog.ts Outdated Show resolved Hide resolved
* @param notes Github Release 信息
* @param customizeTag 自定义Tag 名称
*/
const setGithubReleaseNote = async (notes: string, customizeTag: string) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分感觉复杂了,基于本地的 git commit 信息拿是否就好了?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数功能是自动打开 GitHub 创建新的 Release 并自动填入发布日志信息,在选择 Tag 信息时有两种情况:1. 命令配置 --tag 就填入 2. 命令未配置 -- tag 就选取最新的 Tag。

scripts/utils/getGptResponse.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
scripts/utils/getReleaseNotes.ts Outdated Show resolved Hide resolved
scripts/utils/getLatestTag.ts Outdated Show resolved Hide resolved
@MaxCDon MaxCDon requested review from fz6m and sorrycc and removed request for fz6m March 19, 2023 03:17
@sorrycc
Copy link
Member

sorrycc commented Mar 19, 2023

冲突了,merge 下 master。

@sorrycc sorrycc merged commit 8bc6eda into umijs:master Mar 20, 2023
@github-actions
Copy link

感谢 PR!如果有兴趣一起参与维护 Umi,可加入我们的 Umi Contributor 群。加入方式是先用钉钉扫下方二维码加我钉钉,记得注明 github id,然后我会拉你到群里。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants