mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 17:35:51 +00:00
request github deploymet hooks, but keep disabled by default in UI
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user