HTTP Executor
The HTTP executor makes HTTP requests to external services, acting as a webhook relay or transformer.
Configuration
[hooks.executor]
type = "http"
method = "POST"
url = "https://api.example.com/deploy"
follow_redirects = true
Headers
[hooks.executor]
type = "http"
method = "POST"
url = "https://slack.com/api/chat.postMessage"
[hooks.executor.headers]
Authorization = "Bearer ${{SLACK_TOKEN}}"
Content-Type = "application/json"
Body with interpolation
[hooks.executor]
type = "http"
method = "POST"
url = "https://hooks.slack.com/services/..."
body = '{"text": "Deployment of {{repo}} to {{branch}} triggered"}'
Supported methods
GET, POST, PUT, PATCH, DELETE