From 36227170f87522cfdf000bc138ff49392e53d0f8 Mon Sep 17 00:00:00 2001 From: akibabu <3606722+akibabu@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:28:31 +0900 Subject: [PATCH 1/2] Use actual github repo as ALM when available --- .../plugin/ce/pullrequest/PullRequestPostAnalysisTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java index cf136fe23..3cbddc10e 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java @@ -94,8 +94,8 @@ public void finished(Context context) { ProjectAlmSettingDto projectAlmSettingDto = new ProjectAlmSettingDto(); Optional optionalAlmSettingDto; try (DbSession dbSession = dbClient.openSession(false)) { - - projectAlmSettingDto.setAlmRepo("Pay-Baymax/" + projectAnalysis.getProject().getKey()); + 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()); From c39bbce6d66a751d4537083bc9d61d0d03aba49b Mon Sep 17 00:00:00 2001 From: akibabu <3606722+akibabu@users.noreply.github.com> Date: Tue, 5 Apr 2022 17:27:57 +0900 Subject: [PATCH 2/2] set next version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index ee0164bab..15ee59489 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.8.1-paypay +version=1.8.2-paypay