-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
feat: automatic generation of release notes #35977
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
base: main
Are you sure you want to change the base?
feat: automatic generation of release notes #35977
Conversation
d36f97f to
f32b963
Compare
|
Also cc @techknowlogick for further review and help (#35976 (comment)) , in case you already have more discussions. |
|
In 1406ccc:
|
|
In followup PR, when I find some time I will implement additional configuration for this feature, like it is on GitHub: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes |
Still many And #35977 (comment)
|
Ok, I made it less defensive now @wxiaoguang
We haven't, but @techknowlogick feel free to review my PR |
wxiaoguang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, still questions (only a quick look, not carefully look into backend code yet)
Signed-off-by: silverwind <[email protected]>
Signed-off-by: silverwind <[email protected]>
4f38868 to
86e0035
Compare
|
Thank you for your updates. I've been very busy lately, so don't have enough time to do a full test and review at the moment. Meanwhile other maintainers can help to review. |
@lunny It only works for pull requests. Did you have them, or just commits? It mimics the Github behavior. |
Okay, I see. I assume it currently collects commits. In the future, we could consider adding an option to collect either commits or pull requests. |
It's practically useless to me when it does not include commits without a associated pull request, as I think that's a very common scenario, for example when the repo owner does fixups etc. But if it matches GH (it seems so), I won't block on it. |
|
A UX problem: If user has input many message in the textarea, then click the "Generate release notes" button, then their work is lost and no way to undo? Is it better to "append" but not "replace"? |
| func parseSemanticVersion(tag string) *version.Version { | ||
| tag = strings.TrimSpace(tag) | ||
| tag = strings.TrimPrefix(tag, "v") | ||
| tag = strings.TrimPrefix(tag, "V") | ||
| v, err := version.NewVersion(tag) | ||
| if err != nil { | ||
| return nil | ||
| } | ||
| return v | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it support tag name with fields? For example: releases/v1.0



Add GitHub-style automatic release notes generation
Screenshots