mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 13:25:26 +02:00
fixed webhook format issue
This commit is contained in:
parent
f631c1757b
commit
8321318143
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class KubernetesDeployController {
|
||||||
payload.AutoUpdate.Interval = this.formValues.RepositoryFetchInterval;
|
payload.AutoUpdate.Interval = this.formValues.RepositoryFetchInterval;
|
||||||
metadata['automatic-updates'] = 'polling';
|
metadata['automatic-updates'] = 'polling';
|
||||||
} else if (this.formValues.RepositoryMechanism === `Webhook`) {
|
} else if (this.formValues.RepositoryMechanism === `Webhook`) {
|
||||||
payload.AutoUpdate.Webhook = this.formValues.RepositoryWebhookURL;
|
payload.AutoUpdate.Webhook = this.formValues.RepositoryWebhookURL.split('/').reverse()[0];
|
||||||
metadata['automatic-updates'] = 'webhook';
|
metadata['automatic-updates'] = 'webhook';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue