A simple webhook, i´ve made this to easy deploy some freelancer works at my personal stage/test enviroment for repositories hosted at bitbucket
It´s just a example, if you need something like this, it´s very good start to learning point.
For more info go to you should visit this link: https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/
npm install
node webhooks.js