jeromegn / DocumentUp

Pretty documentation generator for Github projects with proper Readme.
http://documentup.com
884 stars 90 forks source link

Github webhooks #85

Open peteruithoven opened 9 years ago

peteruithoven commented 9 years ago

I understand from the docs that the documents are only recompiled when the following url is visited: http://documentup.com/{user}/{repository}/recompile

To recompile it automatically you can add a webhook to Github. So I've set the Payload URL to: http://documentup.com/recompile Shouldn't that be http://documentup.com/{user}/{repository}/recompile ?

It didn't seem to work when I left the content type to application/json (default), but changing it to application/x-www-form-urlencoded seems to help, it then received an ok as response. Maybe you can add this to your readme?

I left the event that should trigger the hook to Just the push event, which is the default. I couldn't find the Post-receive hook.

jeromegn commented 9 years ago

The terminology and API might have changed during the life of this project :)

I haven't touched it much in the past two years. Post-receive seems to have changed name indeed. Thanks for the heads up.

The URL should stay the same. I think. It figures out which repo to update based on the data received.

joonas-fi commented 7 years ago

I didn't seem to get the webhook working with either types of GitHub webhook types:

Is this a known issue?