Truncate only prefix. Don't remove v from like preview1
This commit is contained in:
parent
1e9fac4dbc
commit
6a45320c25
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user