From 238f9ed8a18a1414dbaab9d152c4b1a69825217f Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Tue, 5 Jul 2022 15:42:53 +0100 Subject: [PATCH] Update Sonar Slack report --- fastlane/Sonarfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastlane/Sonarfile b/fastlane/Sonarfile index 64d2023e..b99a3c37 100644 --- a/fastlane/Sonarfile +++ b/fastlane/Sonarfile @@ -52,7 +52,7 @@ private_lane :slack_sonarcloud_metrics do |options| metrics = sonarcloud_metric_kit( project_key: project_key, quality_gate: true, - branch: options[:branch] + branch: sonar_branch ) new_period = sonar_branch == 'main' ? options[:version_number] : sonar_branch new_coverage = metrics[:new_coverage].to_f.round(2) @@ -68,7 +68,7 @@ private_lane :slack_sonarcloud_metrics do |options| security_status = "Total: _#{vulnerabilities}_\nNew: _#{new_vulnerabilities}_ #{new_vulnerabilities.positive? ? '⚠️' : '✅'}" slack( - message: "[StreamChatSwiftUI](https://sonarcloud.io/summary/new_code?id=#{project_key}&branch=#{options[:branch]})", + message: "[StreamChatSwiftUI](https://sonarcloud.io/summary/new_code?id=#{project_key}&branch=#{sonar_branch})", attachment_properties: { thumb_url: 'https://pbs.twimg.com/profile_images/955394530806829056/LC7DAYM3_400x400.jpg', fields: [