diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-06 11:50:31 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-06 11:50:31 -0400 |
commit | e573855a4f040abd4aa6a2afa9ce610a1ec2670f (patch) | |
tree | 7ead7dafd3c228305e83a19dec0bca5b60d92217 /routers/repo | |
parent | 94bccbb148a4ed897eb8332fc746aa75486c5c4d (diff) | |
download | gitea-e573855a4f040abd4aa6a2afa9ce610a1ec2670f.tar.gz gitea-e573855a4f040abd4aa6a2afa9ce610a1ec2670f.zip |
Fix #98, support web hook
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 6937d0b42a..96f9f857f1 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -247,7 +247,7 @@ func WebHooksAddPost(ctx *middleware.Context, form auth.NewWebhookForm) { w := &models.Webhook{ RepoId: ctx.Repo.Repository.Id, - Payload: form.Url, + Url: form.Url, ContentType: ct, Secret: form.Secret, HookEvent: &models.HookEvent{ @@ -315,7 +315,7 @@ func WebHooksEditPost(ctx *middleware.Context, params martini.Params, form auth. w := &models.Webhook{ Id: hookId, RepoId: ctx.Repo.Repository.Id, - Payload: form.Url, + Url: form.Url, ContentType: ct, Secret: form.Secret, HookEvent: &models.HookEvent{ |