Skip to content

Commit

Permalink
Added a small notice about usage webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Jan 19, 2020
1 parent 787ba50 commit acd0b2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
========

Expand Down

0 comments on commit acd0b2e

Please sign in to comment.