Browse Source

SONAR-20635 Clarify endpoint description to import projects from DevOps Platform

tags/10.3.0.82913
Antoine Vigneau 8 months ago
parent
commit
4ce8547271

+ 1
- 1
server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/github/ImportGithubProjectAction.java View File

@@ -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.<br/>" +
"Autoconfigure pull request decoration mechanism.<br/>" +
"Autoconfigure pull request decoration mechanism. If Automatic Provisioning is enable for GitHub, it will also synchronize permissions from the repository.<br/>" +
"Requires the 'Create Projects' permission")
.setPost(true)
.setSince("8.4")

+ 2
- 1
server/sonar-webserver-webapi/src/main/java/org/sonar/server/project/ws/CreateAction.java View File

@@ -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.<br/>" +
"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.<br/>")
.setSince("4.0")
.setPost(true)
.setResponseExample(getClass().getResource("create-example.json"))

Loading…
Cancel
Save