Support project key in audit

This commit is contained in:
chaseshak
2023-09-13 13:14:22 -05:00
parent d9b386d83b
commit 21a62d6a20
2 changed files with 23 additions and 6 deletions
+7 -3
View File
@@ -4,14 +4,18 @@ module Bitbucket
class Audit
include IssueParser
def initialize(issue_content, _)
def initialize(issue_content, command)
@workspace = parameter_from_issue("Workspace", issue_content)
@project_key = command.options["project-key"]
end
def to_a
return if @workspace.nil?
args = []
args.push(["--workspace", @workspace]) unless @workspace.nil?
args.push(["--project-key", @project_key]) unless @project_key.nil?
[["--workspace", @workspace]]
return args unless args.empty?
end
end
end