From 456614b5bbfb4174cc0633f14700e00e8b700bac Mon Sep 17 00:00:00 2001 From: hpal Date: Tue, 24 Dec 2024 13:16:35 +0000 Subject: [PATCH] [Integration] [Sonarqube] Added __branches as exported data (#1268) --- integrations/sonarqube/CHANGELOG.md | 8 ++++++++ integrations/sonarqube/client.py | 1 + integrations/sonarqube/pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/integrations/sonarqube/CHANGELOG.md b/integrations/sonarqube/CHANGELOG.md index cf1fed0e94..f7e71b2993 100644 --- a/integrations/sonarqube/CHANGELOG.md +++ b/integrations/sonarqube/CHANGELOG.md @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## 0.1.123 (2024-12-24) + + +### Improvements + +- Added __branches as project attribute in order to map project branches + + ## 0.1.122 (2024-12-23) diff --git a/integrations/sonarqube/client.py b/integrations/sonarqube/client.py index f84d4d9b82..5a39391d57 100644 --- a/integrations/sonarqube/client.py +++ b/integrations/sonarqube/client.py @@ -273,6 +273,7 @@ async def get_single_project(self, project: dict[str, Any]) -> dict[str, Any]: project["__measures"] = await self.get_measures(project_key) branches = await self.get_branches(project_key) + project["__branches"] = branches main_branch = [branch for branch in branches if branch.get("isMain")] project["__branch"] = main_branch[0] diff --git a/integrations/sonarqube/pyproject.toml b/integrations/sonarqube/pyproject.toml index 2c8400a55c..343a85cd37 100644 --- a/integrations/sonarqube/pyproject.toml +++ b/integrations/sonarqube/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sonarqube" -version = "0.1.122" +version = "0.1.123" description = "SonarQube projects and code quality analysis integration" authors = ["Port Team "]