mirror of
https://github.com/harness/drone.git
synced 2025-05-19 02:20:03 +08:00
[MISC] Update UI webhook creation to enable secure by default (#202)
This commit is contained in:
parent
eabdf2ab86
commit
d9a01ef9a3
@ -81,7 +81,7 @@ export function WehookForm({ repoMetadata, isEdit, webhook }: WebHookFormProps)
|
||||
url: webhook?.url || '',
|
||||
secret: isEdit && webhook?.has_secret ? SECRET_MASK : '',
|
||||
enabled: webhook ? (webhook?.enabled as boolean) : true,
|
||||
secure: webhook?.insecure === false || false,
|
||||
secure: webhook ? (webhook?.insecure === false as boolean) : true,
|
||||
branchCreated: webhook?.triggers?.includes(WebhookIndividualEvent.BRANCH_CREATED) || false,
|
||||
branchUpdated: webhook?.triggers?.includes(WebhookIndividualEvent.BRANCH_UPDATED) || false,
|
||||
branchDeleted: webhook?.triggers?.includes(WebhookIndividualEvent.BRANCH_DELETED) || false,
|
||||
|
Loading…
Reference in New Issue
Block a user