ruby / csv

CSV Reading and Writing
https://ruby.github.io/csv/
BSD 2-Clause "Simplified" License
177 stars 113 forks source link

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

Open hsbt opened 1 year ago

hsbt commented 1 year ago

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 commented 1 year ago

Can we use https://github.com/softprops/action-gh-release like https://github.com/test-unit/test-unit/blob/master/.github/workflows/release.yml ?

kou commented 1 year ago

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

kou commented 1 year ago

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

hsbt commented 1 year ago

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 commented 1 year ago

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