Skip to content

Webhook build by branch #2138

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

Closed
zxiiro opened this issue Apr 13, 2016 · 3 comments
Closed

Webhook build by branch #2138

zxiiro opened this issue Apr 13, 2016 · 3 comments
Labels
Support Support question

Comments

@zxiiro
Copy link
Contributor

zxiiro commented Apr 13, 2016

Details

I'm trying to setup a custom webhook following the instructions from [0] and want to make a hook that triggers builds for specific branches. I don't see any documentation on how to make rtd using a custom webhook to build a specific branch. Is this possible using custom webhooks?

[0] https://read-the-docs.readthedocs.org/en/latest/webhooks.html

@agjohnson
Copy link
Contributor

Looking into implementing this, it seems our webhook is in fact accepting a version already:
https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/core/views/hooks.py#L292-L296

A POST with version_slug should build a particular version, but I haven't tested this. Can you confirm?

@agjohnson agjohnson added the Support Support question label Jan 18, 2017
@zxiiro
Copy link
Contributor Author

zxiiro commented Jan 20, 2017

I was able to build my project with the following command:

curl -X POST --data "version_slug=stable-boron" https://readthedocs.org/build/opendaylight

We should update the webhooks documentation to mention the version_slug parameter. I'll see if I can find out where to update it and submit a patch.

@zxiiro
Copy link
Contributor Author

zxiiro commented Jan 20, 2017

Submitted PR #2599

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

No branches or pull requests

2 participants