mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Add support for skipping repository audit. (#140767)
This commit is contained in:
@@ -109,15 +109,20 @@ module CiMatrix
|
||||
modified_cask_files.flat_map do |path|
|
||||
cask_token = path.basename(".rb")
|
||||
|
||||
appcast_arg = if labels.include?("ci-skip-appcast")
|
||||
audit_args = ["--online"]
|
||||
audit_args << "--new-cask" if changed_files[:added_files].include?(path)
|
||||
|
||||
audit_exceptions = []
|
||||
audit_exceptions << "repository" if labels.include?("ci-skip-repository")
|
||||
|
||||
# TODO: Replace with `except`.
|
||||
audit_args << if labels.include?("ci-skip-appcast")
|
||||
"--no-appcast"
|
||||
else
|
||||
"--appcast"
|
||||
end
|
||||
|
||||
audit_args = [appcast_arg, "--online"]
|
||||
|
||||
audit_args << "--new-cask" if changed_files[:added_files].include?(path)
|
||||
audit_args << "--except" << audit_exceptions.join(",") if audit_exceptions.any?
|
||||
|
||||
runners(path).map do |runner|
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user