Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
C4tWithShell committed Dec 11, 2023
1 parent 331f443 commit bad5315
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.16.1
version=1.16.2
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@ public String getPullRequestKey() {
public String getTargetBranchName() {
return targetBranchName;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.Com
dbClient.componentDao().insert(dbSession, componentDto, false);

BranchDto branchDto = new BranchDto()
.setProjectUuid(mainComponentBranchDto.getProjectUuid())
.setProjectUuid(mainComponentDto.uuid())
.setUuid(branchUuid);
componentKey.getPullRequestKey().ifPresent(pullRequestKey -> branchDto.setBranchType(BranchType.PULL_REQUEST)
.setExcludeFromPurge(false)
Expand All @@ -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;
Expand Down

0 comments on commit bad5315

Please sign in to comment.