Use CDN instead of raw.githubusercontent.com
This commit is contained in:
parent
8b921813aa
commit
6545d5bbb9
@ -3,7 +3,7 @@
|
||||
require "open-uri"
|
||||
require "yaml"
|
||||
|
||||
EMAIL_YML_URL = "https://raw.githubusercontent.com/ruby/ruby-commit-hook/master/config/email.yml"
|
||||
EMAIL_YML_URL = "https://cdn.jsdelivr.net/gh/ruby/ruby-commit-hook/config/email.yml"
|
||||
|
||||
email_yml = URI(EMAIL_YML_URL).read.sub(/\A(?:#.*\n)+/, "").gsub(/^# +(.+)$/) { $1 + ": []" }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user