]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14405 - GL Monorepo flag on Set Binding
authorBelen Pruvost <belen.pruvost@sonarsource.com>
Fri, 29 Jan 2021 11:29:55 +0000 (12:29 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 2 Feb 2021 20:07:48 +0000 (20:07 +0000)
sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java
sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGitlabBindingRequest.java

index 0427f8cffa63938f6538e56cc06e5c39768f70c2..4c97122f4289647b4fa271506d99278c2618c88f 100644 (file)
@@ -213,6 +213,7 @@ public class AlmSettingsService extends BaseService {
         .setParam("almSetting", request.getAlmSetting())
         .setParam("project", request.getProject())
         .setParam("repository", request.getRepository())
+        .setParam("monorepo", request.getMonorepo())
         .setMediaType(MediaTypes.JSON)).content();
   }
 
index 6bf7770575f037ad32b4c2ceaab9da03a0cd0821..41cfbdc1e8615573b5a07aff1c9ff9ded1deb4ad 100644 (file)
@@ -32,7 +32,7 @@ public class SetGitlabBindingRequest {
   private String almSetting;
   private String project;
   private String repository;
-
+  private String monorepo;
 
   public String getRepository() {
     return repository;
@@ -67,4 +67,13 @@ public class SetGitlabBindingRequest {
     return project;
   }
 
+  public String getMonorepo() {
+    return monorepo;
+  }
+
+  public SetGitlabBindingRequest setMonorepo(String monorepo) {
+    this.monorepo = monorepo;
+    return this;
+  }
+
 }