mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 09:20:31 +00:00
forcing github hook as form
content_type
This commit is contained in:
parent
8ad36255de
commit
b92ae8b3c7
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ func CreateHook(client *github.Client, owner, name, url string) (*github.Hook, e
|
|||
hook.Events = []string{"push", "pull_request"}
|
||||
hook.Config = map[string]interface{}{}
|
||||
hook.Config["url"] = url
|
||||
hook.Config["content_type"] = "json"
|
||||
hook.Config["content_type"] = "form"
|
||||
created, _, err := client.Repositories.CreateHook(owner, name, hook)
|
||||
return created, err
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ func CreateUpdateHook(client *github.Client, owner, name, url string) (*github.H
|
|||
hook.Events = []string{"push", "pull_request"}
|
||||
hook.Config = map[string]interface{}{}
|
||||
hook.Config["url"] = url
|
||||
hook.Config["content_type"] = "json"
|
||||
hook.Config["content_type"] = "form"
|
||||
var updated, _, err = client.Repositories.EditHook(owner, name, *hook.ID, hook)
|
||||
return updated, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue