]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19759 fix SSF-423 + ITs
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Wed, 23 Aug 2023 19:34:04 +0000 (21:34 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 24 Aug 2023 20:03:09 +0000 (20:03 +0000)
sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java
sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java

index b9d8597a6e264c43f6f6e2d66e47903c739a05bc..4edec9b9c7b014adbe35e26ae864bbccf777ec18 100644 (file)
@@ -125,6 +125,7 @@ public class AlmSettingsService extends BaseService {
         .setParam("url", request.getUrl())
         .setParam("clientId", request.getClientId())
         .setParam("clientSecret", request.getClientSecret())
+        .setParam("webhookSecret", request.getWebhookSecret())
         .setMediaType(MediaTypes.JSON)).content();
   }
 
index ef02ef668b238ba9f3b4d29bb0db8821148066d8..843ab8306d0ac2c631286edd5195a562646c5b0a 100644 (file)
@@ -37,6 +37,7 @@ public class CreateGithubRequest {
   private String url;
   private String clientId;
   private String clientSecret;
+  private String webhookSecret;
 
   /**
    * This is a mandatory parameter.
@@ -105,4 +106,14 @@ public class CreateGithubRequest {
   public String getClientSecret() {
     return clientSecret;
   }
+
+  public CreateGithubRequest setWebhookSecret(@Nullable String webhookSecret) {
+    this.webhookSecret = webhookSecret;
+    return this;
+  }
+
+  @CheckForNull
+  public String getWebhookSecret() {
+    return webhookSecret;
+  }
 }