Merge branch 'abhinav/code-760' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#388)

This commit is contained in:
Abhinav Singh 2023-09-01 01:03:03 +00:00 committed by Harness
commit 85d02ea122

View File

@ -357,6 +357,7 @@ func mapToWebhook(hook *webhook) (*types.Webhook, error) {
Insecure: hook.Insecure,
Triggers: triggersFromString(hook.Triggers),
LatestExecutionResult: (*enum.WebhookExecutionResult)(hook.LatestExecutionResult.Ptr()),
Internal: hook.Internal,
}
switch {
@ -390,6 +391,7 @@ func mapToInternalWebhook(hook *types.Webhook) (*webhook, error) {
Insecure: hook.Insecure,
Triggers: triggersToString(hook.Triggers),
LatestExecutionResult: null.StringFromPtr((*string)(hook.LatestExecutionResult)),
Internal: hook.Internal,
}
switch hook.ParentType {