Fix #98, support web hook
This commit is contained in:
parent
94bccbb148
commit
e573855a4f
13 changed files with 581 additions and 23 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue