From 889e719804422d871d5e96f767c7ab38b36906fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81yp?= Date: Fri, 6 Sep 2024 10:05:16 +0200 Subject: [PATCH] Fix tests --- .../ddg_apple_automation/actions/asana_add_comment_action.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb index 110dde1..9a5e067 100644 --- a/lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb @@ -17,7 +17,7 @@ def self.run(params) workflow_url = ENV.fetch('WORKFLOW_URL', '') begin - validate_params(task_id, task_url, comment, template_name) + validate_params(task_id, task_url, comment, template_name, workflow_url) rescue ArgumentError => e UI.user_error!(e.message) return @@ -82,7 +82,7 @@ def self.is_supported?(platform) true end - def self.validate_params(task_id, task_url, comment, template_name) + def self.validate_params(task_id, task_url, comment, template_name, workflow_url) if task_id.to_s.empty? && task_url.to_s.empty? raise ArgumentError, "Both task_id and task_url cannot be empty. At least one must be provided." end