Skip to content

Commit

Permalink
Merge pull request #4 from paypay/paypay-pr-analysis-fixed-8
Browse files Browse the repository at this point in the history
Paypay pr analysis fixed 8
  • Loading branch information
dito-paypay authored Jun 30, 2022
2 parents 4f45fe7 + b31ade8 commit 395f857
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.8.2-paypay
version=1.8.3-paypay
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,18 @@ public void finished(Context context) {
return;
}
ProjectAlmSettingDto projectAlmSettingDto = new ProjectAlmSettingDto();

String enablePrDecoration = Optional.ofNullable(System.getenv("ENABLE_PR_DECORATION"))
.orElse(projectAnalysis.getScannerContext().getProperties().getOrDefault("sonar.analysis.enableprdecoration", "true"));
LOGGER.info("sonar.analysis.enableprdecoration: {}", enablePrDecoration);
Optional<AlmSettingDto> optionalAlmSettingDto;
try (DbSession dbSession = dbClient.openSession(false)) {
projectAlmSettingDto.setAlmRepo(projectAnalysis.getScannerContext().getProperties().getOrDefault(
"sonar.pullrequest.github.repository", "Pay-Baymax/" + projectAnalysis.getProject().getKey()));
projectAlmSettingDto.setAlmSettingUuid("AXxy3BubdvWBwkcdvIfk");
projectAlmSettingDto.setAlmSlug("");
projectAlmSettingDto.setProjectUuid(projectAnalysis.getProject().getUuid());
projectAlmSettingDto.setSummaryCommentEnabled(false);
projectAlmSettingDto.setSummaryCommentEnabled(Boolean.parseBoolean(enablePrDecoration));
optionalAlmSettingDto = dbClient.almSettingDao().selectByUuid(dbSession, "AXxy3BubdvWBwkcdvIfk");

}
Expand Down

0 comments on commit 395f857

Please sign in to comment.