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

How about GH releases generated by gh release create --generate-notes #270

Open
hsbt opened this issue Dec 16, 2022 · 5 comments
Open

How about GH releases generated by gh release create --generate-notes #270

hsbt opened this issue Dec 16, 2022 · 5 comments

Comments

@hsbt
Copy link
Member

hsbt commented Dec 16, 2022

I created GH releases by gh release create --generate-notes vX.Y.Z like https://github.com/ruby/logger/releases under the Ruby organization. But I didn't create csv, rexml and others that are your maintained libraries.

Can I create them? It's helpful for library users.

@kou
Copy link
Member

kou commented Dec 16, 2022

gh release create --generate-notes is OK for me.

@kou
Copy link
Member

kou commented Dec 16, 2022

But gh release create --generate-notes may use different content with hand written https://github.com/ruby/csv/blob/master/NEWS.md .

@hsbt
Copy link
Member Author

hsbt commented Dec 16, 2022

We can generate it from NEWS.md like gh release create vX.Y.Z -F NEWS.md. But I didn't use it yet.

@kou
Copy link
Member

kou commented Dec 16, 2022

Great! Then we can use gh release create.
We can extract release note of the latest release by the following command line:

https://github.com/test-unit/test-unit/blob/master/.github/workflows/release.yml#L15-L18

ruby \
  -e 'print("## csv "); \
      puts(ARGF.read.split(/^## /)[1].gsub(/ {.+?}/, ""))' \
  NEWS.md > release-note.md

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

No branches or pull requests

2 participants