From 613d671fd0bc45e53fffe295e443f74f4c07267f Mon Sep 17 00:00:00 2001 From: C4tWithShell Date: Sat, 11 Nov 2023 20:54:22 +0300 Subject: [PATCH] Fix new project problem --- .../sonarqube/plugin/server/CommunityBranchSupportDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java index 5360718..a71c76d 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java @@ -110,6 +110,7 @@ public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.Com .setExcludeFromPurge(isBranchExcludedFromPurge(projectConfigurationLoader.loadProjectConfiguration(dbSession, branchDto.getProjectUuid()), branchName)) .setKey(branchName) .setIsMain(false)); + branchDto.setProjectUuid(mainComponentBranchDto.getProjectUuid()); dbClient.branchDao().insert(dbSession, branchDto); return componentDto;