aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorEric Giffon <eric.giffon@sonarsource.com>2024-01-31 15:10:12 +0100
committersonartech <sonartech@sonarsource.com>2024-02-01 20:02:47 +0000
commit2d87c5aec277581732ac108682f83a8f48524ad8 (patch)
tree6fa6518919f86be821b26822711876df7228ee14 /sonar-ws/src
parent98457fb5d082e4b9d95da9e85e9d527ceb0cd59b (diff)
downloadsonarqube-2d87c5aec277581732ac108682f83a8f48524ad8.tar.gz
sonarqube-2d87c5aec277581732ac108682f83a8f48524ad8.zip
SONAR-21268 Fixed issues can be null in PR decoration
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/projects/CreateRequest.java12
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java2
2 files changed, 7 insertions, 7 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/CreateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/CreateRequest.java
index a89760b4be5..c24bdcf58e3 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/CreateRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/CreateRequest.java
@@ -30,21 +30,21 @@ import javax.annotation.Generated;
@Generated("sonar-ws-generator")
public class CreateRequest {
- private String branch;
+ private String mainBranch;
private String name;
private String project;
private String visibility;
/**
- * Example value: "branch-5.0"
+ * Example value: "master"
*/
- public CreateRequest setBranch(String branch) {
- this.branch = branch;
+ public CreateRequest setMainBranch(String mainBranch) {
+ this.mainBranch = mainBranch;
return this;
}
- public String getBranch() {
- return branch;
+ public String getMainBranch() {
+ return mainBranch;
}
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java
index 98c82c0a2c2..c63409ad03a 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java
@@ -71,7 +71,7 @@ public class ProjectsService extends BaseService {
public CreateWsResponse create(CreateRequest request) {
return call(
new PostRequest(path("create"))
- .setParam("branch", request.getBranch())
+ .setParam("mainBranch", request.getMainBranch())
.setParam("name", request.getName())
.setParam("project", request.getProject())
.setParam("visibility", request.getVisibility()),