request github deploymet hooks, but keep disabled by default in UI

This commit is contained in:
Brad Rydzewski 2015-10-26 16:04:18 -07:00
parent 13aa6fda3d
commit 0427306f31
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ const (
EventPush = "push"
EventPull = "pull_request"
EventTag = "tag"
EventDeploy = "deploy"
EventDeploy = "deployment"
)
const (

View file

@ -224,7 +224,7 @@ func DeleteHook(client *github.Client, owner, name, url string) error {
func CreateHook(client *github.Client, owner, name, url string) (*github.Hook, error) {
var hook = new(github.Hook)
hook.Name = github.String("web")
hook.Events = []string{"push", "pull_request"}
hook.Events = []string{"push", "pull_request", "deployment"}
hook.Config = map[string]interface{}{}
hook.Config["url"] = url
hook.Config["content_type"] = "form"