-
Notifications
You must be signed in to change notification settings - Fork 20
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
🌱 Add new reusable release note generator #944
base: main
Are you sure you want to change the base?
Conversation
bb0da43
to
7302c54
Compare
7302c54
to
cb74929
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0ffe6e5
to
15b019e
Compare
/hold It seems that Github rate limit makes this script pretty slow for long lists of PRs. Let's discuss first if that's acceptable. |
15b019e
to
eb1dc9a
Compare
/unhold |
hack/release/main.go
Outdated
var key string | ||
switch { | ||
case strings.HasPrefix(body, ":sparkles:"), strings.HasPrefix(body, "✨"): | ||
key = features |
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.
Indents are wonky again.
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.
Thanks. I fixed it again.
Can you update the description that describes how it actually works and what is the difference to the old way? The current bullet list really doesn't convey the design change. |
eb1dc9a
to
507aa9d
Compare
Yes. Could you check if the current description makes more senses? |
Yes, it a bit better. It would move from reading a local repo to accessing the repo over API. How would this be used? Do we make released project's makefile depend on project-infra when we run "make release-notes", or ... ? |
Compare to the current script that we are having in all releasing repositories, this tool: - Is simpler - Take custom repo name and repo owner - Doesn't use os.Exec(), hence doesn't need to run inside the repo - Doesn't require uptream tag fetching - Doesn't require, but still supports, GITHUB_TOKEN - Is more reliable as everything is fetched from github Signed-off-by: Huy Mai <[email protected]>
507aa9d
to
fc7718d
Compare
Thank you, I will update that.
In the make file, we can do something like |
This tool uses
go-github
package to fetch PR information from upstream using github API, hence doesn't need to be triggered from inside a repo, and can work from anywhere. It also avoids the usage ofos.Exec()
, and rely on go-native methods instead.Compare to the current script that we are having in all releasing repositories, this tool:
git fetch
before running.