aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/components.ts
diff options
context:
space:
mode:
authorGuillaume Peoc'h <guillaume.peoch@sonarsource.com>2022-10-27 16:57:58 +0200
committersonartech <sonartech@sonarsource.com>2022-11-01 20:03:09 +0000
commitef563f2a2e98629a8be54164e43095d672762c3c (patch)
treee23dc4147d924596b7354f0bc91ed044aa0f4a10 /server/sonar-web/src/main/js/api/components.ts
parentf437fd1533e60cdad6adab04514f44d13334209d (diff)
downloadsonarqube-ef563f2a2e98629a8be54164e43095d672762c3c.tar.gz
sonarqube-ef563f2a2e98629a8be54164e43095d672762c3c.zip
SONAR-17527 Add main branch name during manual project creation
Diffstat (limited to 'server/sonar-web/src/main/js/api/components.ts')
-rw-r--r--server/sonar-web/src/main/js/api/components.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/components.ts b/server/sonar-web/src/main/js/api/components.ts
index ea9c6f2621e..d05d132b1f7 100644
--- a/server/sonar-web/src/main/js/api/components.ts
+++ b/server/sonar-web/src/main/js/api/components.ts
@@ -86,6 +86,7 @@ export function deletePortfolio(portfolio: string): Promise<void | Response> {
export function createProject(data: {
name: string;
project: string;
+ mainBranch: string;
visibility?: Visibility;
}): Promise<{ project: ProjectBase }> {
return postJSON('/api/projects/create', data).catch(throwGlobalError);