File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,6 @@ class Webhook
62
62
end
63
63
64
64
class PushHook
65
- RUBY_SYNCED_REFS = %w[
66
- refs/heads/master
67
- refs/heads/ruby_2_7
68
- refs/heads/ruby_3_0
69
- refs/heads/ruby_3_1
70
- ]
71
65
DEFAULT_GEM_REPOS = %w[
72
66
abbrev
73
67
base64
@@ -170,7 +164,8 @@ class PushHook
170
164
end
171
165
172
166
def on_push_ruby ( ref , pusher :)
173
- if RUBY_SYNCED_REFS . include? ( ref ) && pusher != 'matzbot' # matzbot should stop an infinite loop here.
167
+ # Allow to sync like ruby_3_0, ruby_3_1, and master branches.
168
+ if ( ref == "refs/heads/master" || ref =~ /refs\/ heads\/ ruby_\d _\d / ) && pusher != 'matzbot' # matzbot should stop an infinite loop here.
174
169
# www-data user is allowed to sudo `/home/git/git.ruby-lang.org/bin/update-ruby.sh`.
175
170
execute ( '/home/git/git.ruby-lang.org/bin/update-ruby.sh' , File . basename ( ref ) , user : 'git' )
176
171
else
You can’t perform that action at this time.
0 commit comments