From fdfc4ff7a9d730cd666a6c333008c7299af90e93 Mon Sep 17 00:00:00 2001 From: porsh Date: Mon, 14 Jun 2021 19:14:47 +0300 Subject: [PATCH] fix(webhooks): fixed params on create Github Hook --- server/store/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/store/repo/repo.go b/server/store/repo/repo.go index c7cf3ca6..2b1b3579 100644 --- a/server/store/repo/repo.go +++ b/server/store/repo/repo.go @@ -215,7 +215,7 @@ func (s repositoryStore) CreateHook(id, userID uint, data gitscm.HookForm) error } target := fmt.Sprintf("%s/webhooks", repo.Provider.Host) - _, err = gitscm.CreateHook(repo.FullName, target, repo.Provider.Name, repo.Provider.Secret, data) + _, err = gitscm.CreateHook(repo.FullName, target, repo.Provider.Secret, repo.Provider.Name, data) return err }