From 6d534ec356dfc0d7b287c1def99acbc310e98eb6 Mon Sep 17 00:00:00 2001 From: PagesCoffy Date: Sat, 17 Feb 2024 14:45:20 +0000 Subject: [PATCH] [Integration][SonarQube] Add component object to analysis (#385) --- integrations/sonarqube/CHANGELOG.md | 7 +++++++ integrations/sonarqube/client.py | 2 +- integrations/sonarqube/pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/integrations/sonarqube/CHANGELOG.md b/integrations/sonarqube/CHANGELOG.md index 5bb843053c..b973d522fd 100644 --- a/integrations/sonarqube/CHANGELOG.md +++ b/integrations/sonarqube/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +# Port_Ocean 0.1.28 (2024-02-15) + +### Improvements + +- Add Sonarqube component object sonarQube analysis data (PORT-6656) + + # Port_Ocean 0.1.27 (2024-02-04) ### Improvements diff --git a/integrations/sonarqube/client.py b/integrations/sonarqube/client.py index 88182e54fb..7dea81c1d5 100644 --- a/integrations/sonarqube/client.py +++ b/integrations/sonarqube/client.py @@ -309,7 +309,7 @@ async def get_analysis_by_project( analysis_data["__commit"] = branch_data.get( "commit", pr_data.get("commit") ) - + analysis_data["__component"] = component analysis_data["__project"] = component_key component_analysis_data.append(analysis_data) diff --git a/integrations/sonarqube/pyproject.toml b/integrations/sonarqube/pyproject.toml index acc1336aad..96290d9ccd 100644 --- a/integrations/sonarqube/pyproject.toml +++ b/integrations/sonarqube/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sonarqube" -version = "0.1.27" +version = "0.1.28" description = "SonarQube projects and code quality analysis integration" authors = ["Port Team "]