diff --git a/docs/webhook.md b/docs/webhook.md index 9bc5c746..4201eeb7 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -22,6 +22,16 @@ It may be useful for release/deploy process, for example: Automatically create n when a new version is created in packagist (triggered when new tag is created in bitbucket) and update "fix version" attribute of all the related issues from that release. + +To build a custom request payload uses Twig expression language. +This allows you to create custom queries. Untrusted template code is evaluate in a Twig sandbox mode, so +you will get an error if try to get access for security sensitive information. +By default only admin users can use Webhooks. + +``` +Exception (Twig\Sandbox\SecurityNotAllowedMethodError). Calling "setemail" method on a "Packagist\WebBundle\Entity\User" object is not allowed in "__string_template__0d2344b042278505e67568413272d80429f07ecccea43af39cb33608fa747830" at line 1. +``` + Examples ========