aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/newCodePeriod.ts
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2019-08-09 13:56:03 +0200
committerSonarTech <sonartech@sonarsource.com>2019-09-24 20:21:15 +0200
commit0d22031fffe8154061fb18addc8c426c74d78456 (patch)
treee6218ac008ad8ce55ac7a98efe1386a94824606a /server/sonar-web/src/main/js/api/newCodePeriod.ts
parentff0e7573b8beb8321f1ab4024b819e2af16b7e9f (diff)
downloadsonarqube-0d22031fffe8154061fb18addc8c426c74d78456.tar.gz
sonarqube-0d22031fffe8154061fb18addc8c426c74d78456.zip
SONAR-11658 branch setting for the new code period
Diffstat (limited to 'server/sonar-web/src/main/js/api/newCodePeriod.ts')
-rw-r--r--server/sonar-web/src/main/js/api/newCodePeriod.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/newCodePeriod.ts b/server/sonar-web/src/main/js/api/newCodePeriod.ts
index 1aa0f57eb50..8043702a12b 100644
--- a/server/sonar-web/src/main/js/api/newCodePeriod.ts
+++ b/server/sonar-web/src/main/js/api/newCodePeriod.ts
@@ -39,3 +39,9 @@ export function setNewCodePeriod(data: {
export function resetNewCodePeriod(data: { project?: string; branch?: string }): Promise<void> {
return post('/api/new_code_periods/unset', data).catch(throwGlobalError);
}
+
+export function listBranchesNewCodePeriod(data: {
+ project: string;
+}): Promise<{ newCodePeriods: T.NewCodePeriodBranch[] }> {
+ return getJSON('/api/new_code_periods/list', data).catch(throwGlobalError);
+}