mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
request github deploymet hooks, but keep disabled by default in UI
This commit is contained in:
parent
13aa6fda3d
commit
0427306f31
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ const (
|
|||
EventPush = "push"
|
||||
EventPull = "pull_request"
|
||||
EventTag = "tag"
|
||||
EventDeploy = "deploy"
|
||||
EventDeploy = "deployment"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue