1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Support main branch for syntax_suggest

This commit is contained in:
Hiroshi SHIBATA 2022-08-29 09:52:09 +09:00
parent 055fc7b14d
commit 41a275c89a
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -547,6 +547,12 @@ end
def update_default_gems(gem, release: false)
author, repository = REPOSITORIES[gem.to_sym].split('/')
default_branch = case gem
when 'syntax_suggest'
"main"
else
"master"
end
puts "Update #{author}/#{repository}"
@ -572,8 +578,8 @@ def update_default_gems(gem, release: false)
last_release = `git tag`.chomp.split.delete_if{|v| v =~ /pre|beta/ }.last
`git checkout #{last_release}`
else
`git checkout master`
`git rebase origin/master`
`git checkout #{default_branch}`
`git rebase origin/#{default_branch}`
end
end
end