Truncate only prefix. Don't remove v from like preview1

This commit is contained in:
Hiroshi SHIBATA 2024-01-12 14:55:57 +09:00
parent 1e9fac4dbc
commit 6a45320c25
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -57,7 +57,7 @@ note << "## Full Changelog\n\n"
note << "https://github.com/ruby/ruby/compare/#{ARGV[0]}...#{ARGV[1]}\n\n"
if ARGV[2] == "--no-dry-run"
name = ARGV[1].gsub(/v/, "").gsub(/_/, ".")
name = ARGV[1].gsub(/^v/, "").gsub(/_/, ".")
client.create_release("ruby/ruby", ARGV[1], name: name, body: note, make_latest: "false")
puts "Created a release: https://github.com/ruby/ruby/releases/tag/#{ARGV[1]}"
else