]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17705 fix description of qualitygates/copy and qualitygates/rename endpoints
authorMatteo Mara <matteo.mara@sonarsource.com>
Thu, 30 Mar 2023 15:13:01 +0000 (17:13 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 30 Mar 2023 20:03:08 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/CopyAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/RenameAction.java

index 9a9a6792162aa10c9f673472e2d46bc66bc26323..f4cc43a521e2591891d394480d7a85f2b664db3a 100644 (file)
@@ -55,7 +55,7 @@ public class CopyAction implements QualityGatesWsAction {
   public void define(WebService.NewController controller) {
     WebService.NewAction action = controller.createAction("copy")
       .setDescription("Copy a Quality Gate.<br>" +
-        "Either 'sourceName' or 'id' must be provided. Requires the 'Administer Quality Gates' permission.")
+        "'sourceName' must be provided. Requires the 'Administer Quality Gates' permission.")
       .setPost(true)
       .setChangelog(
         new Change("10.0", "Field 'id' in the response is deprecated"),
index 4eb8b0efa976fee582acffebf9291268837f3e93..c1996a65767d8c4de7ec548fd819c99a76c48337 100644 (file)
@@ -49,7 +49,7 @@ public class RenameAction implements QualityGatesWsAction {
     WebService.NewAction action = controller.createAction("rename")
       .setPost(true)
       .setDescription("Rename a Quality Gate.<br>" +
-        "Either 'id' or 'currentName' must be specified. Requires the 'Administer Quality Gates' permission.")
+        "'currentName' must be specified. Requires the 'Administer Quality Gates' permission.")
       .setSince("4.3")
       .setChangelog(
         new Change("10.0", "Field 'id' in the response is deprecated"),