Ability to trigger HTTP endpoints
The following JSON will be posted to request:
{
"time": "<current timestamp>",
"message": "Triggered by Rivi",
"item": {
"repository": "<issue repository>",
"state": "<issue state>",
"id": <issue id>,
"title": "<issue title>"
}
}
The following headers will be set to request:
X-Rivi-Event=trigger
User-Agent=Rivi-Agent/1.0
None
endpoint
(required) - the target endpointmethod
(optional) - HTTP method (GET
orPOST
) (default: POST)headers
(optional) - key-values to add to request. Must start withX-
otherwise will not be includedbody
(optional) - Template for posted datacontent-type
(optional) - SetContent-Type
header (default:application/json
)
rules:
example:
trigger:
endpoint: "http://example.com/hook"