From 0427306f31b59ba5d6859ad65c0213388308a90c Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 26 Oct 2015 16:04:18 -0700 Subject: [PATCH] request github deploymet hooks, but keep disabled by default in UI --- model/const.go | 2 +- remote/github/helper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"