summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-06 11:50:31 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-06 11:50:31 -0400
commite573855a4f040abd4aa6a2afa9ce610a1ec2670f (patch)
tree7ead7dafd3c228305e83a19dec0bca5b60d92217 /routers/repo
parent94bccbb148a4ed897eb8332fc746aa75486c5c4d (diff)
downloadgitea-e573855a4f040abd4aa6a2afa9ce610a1ec2670f.tar.gz
gitea-e573855a4f040abd4aa6a2afa9ce610a1ec2670f.zip
Fix #98, support web hook
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/setting.go4
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{