diff --git a/model/const.go b/model/const.go index 96b2db30f..8c5f48a6f 100644 --- a/model/const.go +++ b/model/const.go @@ -4,7 +4,7 @@ const ( EventPush = "push" EventPull = "pull_request" EventTag = "tag" - EventDeploy = "deploy" + EventDeploy = "deployment" ) const ( diff --git a/remote/github/helper.go b/remote/github/helper.go index 12f1cd880..98973c1c6 100644 --- a/remote/github/helper.go +++ b/remote/github/helper.go @@ -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"