ci: fix manual auditing

This commit is contained in:
Bevan Kay
2023-12-03 09:22:20 +11:00
parent 484b485baf
commit 2dfe8d7143
2 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ on:
casks:
description: List of casks to audit (comma-separated)
required: true
skip-install:
skip_install:
description: Skip installation of casks
required: false
default: true
type: boolean
new-cask:
new_cask:
description: Apply new cask audit
required: false
default: false
+6 -9
View File
@@ -33,16 +33,13 @@ module Homebrew
skip_install = args.skip_install?
new_cask = args.new_cask?
casks = args.casks if args.casks&.any?
pr_url = args.url
if args.url.present?
pr_url = args.url
labels = if pr_url
pr = GitHub::API.open_rest(pr_url)
pr.fetch("labels").map { |l| l.fetch("name") }
else
[]
end
labels = if pr_url
pr = GitHub::API.open_rest(pr_url)
pr.fetch("labels").map { |l| l.fetch("name") }
else
[]
end
tap = Tap.fetch(ENV.fetch("GITHUB_REPOSITORY"))