mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
Merge branch 'abhinav/code-760' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#388)
This commit is contained in:
commit
85d02ea122
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user