isaacs / github

Just a place to track issues and feature requests that I have for github
2.21k stars 129 forks source link

GitHub API documentation issue: create webhook API requires "events" field #1989

Open bduffany opened 3 years ago

bduffany commented 3 years ago

See https://docs.github.com/en/rest/reference/repos#create-a-repository-webhook

In my testing, you have to provide both the top-level events field as well as config.events, otherwise the created webhook will only get the push event. The documentation makes it seem like you only have to provide config.events.

jmarshall commented 3 years ago

You can report this directly at https://github.com/github/docs