aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2020-02-28 13:12:24 +0100
committersonartech <sonartech@sonarsource.com>2020-03-06 20:04:32 +0000
commita91ea17d6efbbd6bd8e17a98c248000d0dd70c17 (patch)
tree303dc362d63515d0b27a67467f9384f610b7c3b5 /sonar-ws
parent1c5db0e2fe3c69ecc21253f9378790ecea382567 (diff)
downloadsonarqube-a91ea17d6efbbd6bd8e17a98c248000d0dd70c17.tar.gz
sonarqube-a91ea17d6efbbd6bd8e17a98c248000d0dd70c17.zip
SONAR-13139 Add 'summaryCommentEnable' property to allow enable/disable of showing summary of analysis in discussion tab for GitHub
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/SetGithubBindingRequest.java10
-rw-r--r--sonar-ws/src/main/protobuf/ws-alm_settings.proto1
3 files changed, 12 insertions, 0 deletions
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 0807efd423e..a443796e0ed 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
@@ -225,6 +225,7 @@ public class AlmSettingsService extends BaseService {
.setParam("almSetting", request.getAlmSetting())
.setParam("project", request.getProject())
.setParam("repository", request.getRepository())
+ .setParam("summaryCommentEnabled", request.getSummaryCommentEnabled())
.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 9d38a6ac708..2eb1d264bab 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
@@ -33,6 +33,7 @@ public class SetGithubBindingRequest {
private String almSetting;
private String project;
private String repository;
+ private String summaryCommentEnabled;
/**
* This is a mandatory parameter.
@@ -69,4 +70,13 @@ public class SetGithubBindingRequest {
public String getRepository() {
return repository;
}
+
+ public String getSummaryCommentEnabled() {
+ return summaryCommentEnabled;
+ }
+
+ public SetGithubBindingRequest setSummaryCommentEnabled(String summaryCommentEnabled) {
+ this.summaryCommentEnabled = summaryCommentEnabled;
+ return this;
+ }
}
diff --git a/sonar-ws/src/main/protobuf/ws-alm_settings.proto b/sonar-ws/src/main/protobuf/ws-alm_settings.proto
index b2e97e2fb41..81b6b2ab2bf 100644
--- a/sonar-ws/src/main/protobuf/ws-alm_settings.proto
+++ b/sonar-ws/src/main/protobuf/ws-alm_settings.proto
@@ -63,6 +63,7 @@ message GetBindingWsResponse {
optional string repository = 3;
optional string url = 4;
optional string slug = 5;
+ optional bool summaryCommentEnabled = 6;
}
enum Alm {