diff options
Diffstat (limited to 'models/repo_generate.go')
-rw-r--r-- | models/repo_generate.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/models/repo_generate.go b/models/repo_generate.go index 0b234d8e34..b0016494c4 100644 --- a/models/repo_generate.go +++ b/models/repo_generate.go @@ -117,17 +117,17 @@ func GenerateWebhooks(ctx DBContext, templateRepo, generateRepo *Repository) err for _, templateWebhook := range templateWebhooks { generateWebhook := &Webhook{ - RepoID: generateRepo.ID, - URL: templateWebhook.URL, - HTTPMethod: templateWebhook.HTTPMethod, - ContentType: templateWebhook.ContentType, - Secret: templateWebhook.Secret, - HookEvent: templateWebhook.HookEvent, - IsActive: templateWebhook.IsActive, - HookTaskType: templateWebhook.HookTaskType, - OrgID: templateWebhook.OrgID, - Events: templateWebhook.Events, - Meta: templateWebhook.Meta, + RepoID: generateRepo.ID, + URL: templateWebhook.URL, + HTTPMethod: templateWebhook.HTTPMethod, + ContentType: templateWebhook.ContentType, + Secret: templateWebhook.Secret, + HookEvent: templateWebhook.HookEvent, + IsActive: templateWebhook.IsActive, + Type: templateWebhook.Type, + OrgID: templateWebhook.OrgID, + Events: templateWebhook.Events, + Meta: templateWebhook.Meta, } if err := createWebhook(ctx.e, generateWebhook); err != nil { return err |