aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/ComponentAction.java6
-rw-r--r--server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/ComponentActionTest.java2
2 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/ComponentAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/ComponentAction.java
index 1ee0fb12cf5..9806fe1f2f7 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/ComponentAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/ComponentAction.java
@@ -109,15 +109,13 @@ public class ComponentAction implements MeasuresWsAction {
.setExampleValue(KEY_PROJECT_EXAMPLE_001);
action.createParam(PARAM_BRANCH)
- .setDescription("Branch key")
+ .setDescription("Branch key. Not available in the community edition.")
.setExampleValue(KEY_BRANCH_EXAMPLE_001)
- .setInternal(true)
.setSince("6.6");
action.createParam(PARAM_PULL_REQUEST)
- .setDescription("Pull request id")
+ .setDescription("Pull request id. Not available in the community edition.")
.setExampleValue(KEY_PULL_REQUEST_EXAMPLE_001)
- .setInternal(true)
.setSince("7.1");
createMetricKeysParameter(action);
diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/ComponentActionTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/ComponentActionTest.java
index c33e2ff0438..c9d672e0db7 100644
--- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/ComponentActionTest.java
+++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/ComponentActionTest.java
@@ -84,7 +84,7 @@ public class ComponentActionTest {
WebService.Param branch = def.param("branch");
assertThat(branch.since()).isEqualTo("6.6");
- assertThat(branch.isInternal()).isTrue();
+ assertThat(branch.isInternal()).isFalse();
assertThat(branch.isRequired()).isFalse();
}