aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/webhooks.ts
diff options
context:
space:
mode:
authorSiegfried Ehret <siegfried.ehret@sonarsource.com>2019-04-24 15:02:55 +0200
committerSonarTech <sonartech@sonarsource.com>2019-04-29 20:21:07 +0200
commit310ce579dd146106b125fb2bf240c198208c818f (patch)
tree48f3234ac9bec2b33e320e04f6f27b56a600afd4 /server/sonar-web/src/main/js/api/webhooks.ts
parentbe370470be29dcdbe867499391a4b73b4091e447 (diff)
downloadsonarqube-310ce579dd146106b125fb2bf240c198208c818f.tar.gz
sonarqube-310ce579dd146106b125fb2bf240c198208c818f.zip
SONAR-12000 Update frontend for webhooks secret
Diffstat (limited to 'server/sonar-web/src/main/js/api/webhooks.ts')
-rw-r--r--server/sonar-web/src/main/js/api/webhooks.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/webhooks.ts b/server/sonar-web/src/main/js/api/webhooks.ts
index 34aa48a9ca0..01a32ea8ce9 100644
--- a/server/sonar-web/src/main/js/api/webhooks.ts
+++ b/server/sonar-web/src/main/js/api/webhooks.ts
@@ -24,6 +24,7 @@ export function createWebhook(data: {
name: string;
organization: string | undefined;
project?: string;
+ secret?: string;
url: string;
}): Promise<{ webhook: T.Webhook }> {
return postJSON('/api/webhooks/create', data).catch(throwGlobalError);
@@ -43,6 +44,7 @@ export function searchWebhooks(data: {
export function updateWebhook(data: {
webhook: string;
name: string;
+ secret?: string;
url: string;
}): Promise<void | Response> {
return post('/api/webhooks/update', data).catch(throwGlobalError);