audit: allow pre-releases in cask-versions

This commit is contained in:
Sean Molenaar 2020-09-03 17:35:00 +02:00
parent 5ce013b0d0
commit 9ac31942fb
No known key found for this signature in database
GPG Key ID: 6BF5D8DF0D34FAAE

View File

@ -452,6 +452,8 @@ module Cask
end
def check_github_prerelease_version
return if cask.tap == "homebrew/cask-versions"
odebug "Auditing GitHub prerelease"
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.nil?
@ -467,6 +469,8 @@ module Cask
end
def check_gitlab_prerelease_version
return if cask.tap == "homebrew/cask-versions"
user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.nil?