The script in its current form is fairly juvenile and doesn't account for a number of possibly undesirable situations, such as getting pulls on other branches when an unrelated branch is pushed to, not outputting as much info as it could. This can be vastly improved by actually doing some parsing of the webhook request body, even if it's just on some basic parameters. (assure "ref": "refs/heads/master" for example)
The script in its current form is fairly juvenile and doesn't account for a number of possibly undesirable situations, such as getting pulls on other branches when an unrelated branch is pushed to, not outputting as much info as it could. This can be vastly improved by actually doing some parsing of the webhook request body, even if it's just on some basic parameters. (assure
"ref": "refs/heads/master"
for example)