Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github webhooks #85

Open
peteruithoven opened this issue Nov 21, 2014 · 2 comments
Open

Github webhooks #85

peteruithoven opened this issue Nov 21, 2014 · 2 comments
Labels

Comments

@peteruithoven
Copy link

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
Copy link
Owner

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.

@jeromegn jeromegn added the Chore label Nov 21, 2014
@joonas-fi
Copy link

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

  • JSON or
  • urlencoded

Is this a known issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants