aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-10-18 11:52:57 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-10-19 14:36:58 +0200
commit2fad0bfc3b20e8effb7e192d1eab210419149236 (patch)
tree8c28bcb778f7ee8e6669020ad23f17c60327028f /server/sonar-web/src
parent52182f4c03060541d98bdd41e732788d53d6f65a (diff)
downloadsonarqube-2fad0bfc3b20e8effb7e192d1eab210419149236.tar.gz
sonarqube-2fad0bfc3b20e8effb7e192d1eab210419149236.zip
Set branches WS as public and fix description
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/api/branches.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/branches.ts b/server/sonar-web/src/main/js/api/branches.ts
index ec3e79e0932..fa0e7a12061 100644
--- a/server/sonar-web/src/main/js/api/branches.ts
+++ b/server/sonar-web/src/main/js/api/branches.ts
@@ -28,6 +28,6 @@ export function deleteBranch(project: string, branch: string): Promise<void | Re
return post('/api/project_branches/delete', { project, branch }).catch(throwGlobalError);
}
-export function renameBranch(project: string, branch: string): Promise<void | Response> {
- return post('/api/project_branches/rename', { project, branch }).catch(throwGlobalError);
+export function renameBranch(project: string, name: string): Promise<void | Response> {
+ return post('/api/project_branches/rename', { project, name }).catch(throwGlobalError);
}