From 4ce854727184915373545ea3c7e2fe49b3a88371 Mon Sep 17 00:00:00 2001 From: Antoine Vigneau Date: Mon, 2 Oct 2023 17:06:11 +0200 Subject: [PATCH] SONAR-20635 Clarify endpoint description to import projects from DevOps Platform --- .../almintegration/ws/github/ImportGithubProjectAction.java | 2 +- .../main/java/org/sonar/server/project/ws/CreateAction.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/github/ImportGithubProjectAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/github/ImportGithubProjectAction.java index 3a6db7a1345..c621b028f6e 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/github/ImportGithubProjectAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/github/ImportGithubProjectAction.java @@ -108,7 +108,7 @@ public class ImportGithubProjectAction implements AlmIntegrationsWsAction { public void define(WebService.NewController context) { WebService.NewAction action = context.createAction("import_github_project") .setDescription("Create a SonarQube project with the information from the provided GitHub repository.
" + - "Autoconfigure pull request decoration mechanism.
" + + "Autoconfigure pull request decoration mechanism. If Automatic Provisioning is enable for GitHub, it will also synchronize permissions from the repository.
" + "Requires the 'Create Projects' permission") .setPost(true) .setSince("8.4") diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/CreateAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/CreateAction.java index 1eddb0b29fe..6b3409d0e41 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/CreateAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/CreateAction.java @@ -84,7 +84,8 @@ public class CreateAction implements ProjectsWsAction { public void define(WebService.NewController context) { WebService.NewAction action = context.createAction(ACTION_CREATE) .setDescription("Create a project.
" + - "Requires 'Create Projects' permission") + "If your project is hosted on a DevOps Platform, please use the import endpoint under api/alm_integrations, so it creates and properly configures the project." + + "Requires 'Create Projects' permission.
") .setSince("4.0") .setPost(true) .setResponseExample(getClass().getResource("create-example.json")) -- 2.39.5