diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2019-08-09 13:56:03 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-09-24 20:21:15 +0200 |
commit | 0d22031fffe8154061fb18addc8c426c74d78456 (patch) | |
tree | e6218ac008ad8ce55ac7a98efe1386a94824606a /server/sonar-web/src/main/js/api/newCodePeriod.ts | |
parent | ff0e7573b8beb8321f1ab4024b819e2af16b7e9f (diff) | |
download | sonarqube-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.ts | 6 |
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); +} |