Skip to content

Commit

Permalink
Update Sonar Slack report
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Alter-Pesotskiy committed Jul 5, 2022
1 parent 5fe3d05 commit 238f9ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastlane/Sonarfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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: [
Expand Down

0 comments on commit 238f9ed

Please sign in to comment.