Relay sent webhooks for repository push
events to your Discord server.
webhook-relay.zip
file from latest releaserelay.php
and config.php
files and upload them to your webhost composer install
commandconfig.php
to your likings
For
$dc_webhookurl
: Edit channel > Integrations > Webhooks > Create or select one > Copy Webhook URL
For$dc_secret
: You can set a secret, which will be used to verify the webhook's authenticity. (It needs to be the same as in your repository settings and should be secure.)
Payload URL:
URL to your relay.php file
(https://example.com/relay.php)
Content Type:application/x-www-form-urlencoded
Secret: Here you can enter a secret, which will be used to verify the webhook's authenticity. (It needs to be the same as in your config.php and should be secure.)
Too simple? Fear not, Livaco got your back!
You can customize your embed in relay.php
file at line 81
.
List of available methods to customize your embed
A complicated example by Livaco