File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,11 @@ lane :sonar_upload do
16
16
"-Dsonar.coverageReportPaths='reports/sonarqube-generic-coverage.xml'" )
17
17
end
18
18
19
- next if sonar_args . empty? || ENV [ 'GITHUB_EVENT_NAME' ] == 'pull_request' || current_branch !~ /main|develop/
19
+ next if ENV [ 'GITHUB_EVENT_NAME' ] == 'pull_request' || current_branch !~ /main|develop/
20
20
21
21
slack_sonarcloud_metrics ( version_number : version_number )
22
22
end
23
23
24
- desc 'Gets Sonar options'
25
- private_lane :sonar_options do |options |
26
- default_options = { sonar_login : ENV . fetch ( 'SONAR_TOKEN' , nil ) , sonar_runner_args : options [ :sonar_args ] }
27
-
28
- if ENV [ 'GITHUB_EVENT_NAME' ] == 'pull_request'
29
- default_options . merge ( pull_request_branch : ENV . fetch ( 'GITHUB_HEAD_REF' , nil ) ,
30
- pull_request_base : ENV . fetch ( 'GITHUB_BASE_REF' , nil ) ,
31
- pull_request_key : ENV . fetch ( 'GITHUB_PR_NUM' , nil ) )
32
- else
33
- default_options . merge ( branch_name : current_branch , project_version : options [ :version_number ] )
34
- end
35
- end
36
-
37
24
desc 'Creates a report in Slack with SonarCloud analysis details'
38
25
private_lane :slack_sonarcloud_metrics do |options |
39
26
project_key = 'GetStream_stream-chat-swiftui'
You can’t perform that action at this time.
0 commit comments