Support custom action for automation rules with webhook + api #6375
Labels
Feature
New feature
Needed: design decision
A core team decision is required
Sprintable
Small enough to sprint on
Currently, the actions to be run are only defined in code
https://github.com/readthedocs/readthedocs.org/blob/master/readthedocs/builds/automation_actions.py
Users can't set a custom action. We don't want to execute arbitrary code neither. But we can offer users to set a webhook that will be called on a match. Users can use apiv3 to do whatever they want to the version or project.
Why don't just use api?
Because users don't have a way to know when the version is created on rtd (nor the final slug). They can only know when the version is created on github.
Examples
The webhook receives a payload with the project and the matched version. Then the user can trigger a build or deactivate the version or modify other versions, anything.
The text was updated successfully, but these errors were encountered: