update slack hook to use new format

This commit is contained in:
Christopher Brickley 2014-10-24 08:56:12 -04:00
parent d7ea49b9f5
commit 3794111460
4 changed files with 5 additions and 24 deletions

View file

@ -81,8 +81,7 @@ func (f *NewWebhookForm) Validate(ctx *macaron.Context, errs binding.Errors) bin
type NewSlackHookForm struct {
HookTaskType string `form:"hook_type" binding:"Required"`
Domain string `form:"domain" binding:"Required`
Token string `form:"token" binding:"Required"`
PayloadUrl string `form:"payload_url" binding:"Required`
Channel string `form:"channel" binding:"Required"`
PushOnly bool `form:"push_only"`
Active bool `form:"active"`