From cb43c076ae6fff6bef9d57d2b05fd5c4a9e70c84 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Fri, 29 Jan 2021 12:41:01 +0100 Subject: [PATCH] SONAR-14404 - GH Monorepo flag on Set Binding --- .../ws/client/almsettings/AlmSettingsService.java | 1 + .../ws/client/almsettings/SetGithubBindingRequest.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java index 4c97122f428..db2822356c3 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java @@ -245,6 +245,7 @@ public class AlmSettingsService extends BaseService { .setParam("project", request.getProject()) .setParam("repository", request.getRepository()) .setParam("summaryCommentEnabled", request.getSummaryCommentEnabled()) + .setParam("monorepo", request.getMonorepo()) .setMediaType(MediaTypes.JSON)).content(); } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGithubBindingRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGithubBindingRequest.java index fd187ac086b..39914e72880 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGithubBindingRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGithubBindingRequest.java @@ -34,6 +34,7 @@ public class SetGithubBindingRequest { private String project; private String repository; private String summaryCommentEnabled; + private String monorepo; /** * This is a mandatory parameter. @@ -79,4 +80,13 @@ public class SetGithubBindingRequest { this.summaryCommentEnabled = summaryCommentEnabled; return this; } + + public String getMonorepo() { + return monorepo; + } + + public SetGithubBindingRequest setMonorepo(String monorepo) { + this.monorepo = monorepo; + return this; + } } -- 2.39.5