netlify / netlifyctl

MIT License
176 stars 34 forks source link

give verbose messaging about explicitly setting the webhook type to 'application/json' in GH UI #87

Open fool opened 6 years ago

fool commented 6 years ago

When a user runs netlifyctl init -m they are given a webhook URL to put in place in GitHub's UI. This is pretty straightforward:

image

...however there is a default setting on the Content type to be "application/x-www-form-urlencoded" which doesn't at present work with our system (GitHub sends JSON with this content type, rails does not parse it successfully).

We should call this out when giving the user the webhook that the content-type should be adjusted to "application/json" and then things will just work.