csv icon indicating copy to clipboard operation
csv copied to clipboard

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

Open hsbt opened this issue 3 years ago • 5 comments

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.

hsbt avatar Dec 16 '22 02:12 hsbt

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 avatar Dec 16 '22 03:12 kou

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

kou avatar Dec 16 '22 03:12 kou

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

kou avatar Dec 16 '22 03:12 kou

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

hsbt avatar Dec 16 '22 03:12 hsbt

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

kou avatar Dec 16 '22 04:12 kou