Question is pretty much self explanatory. I want that the webhook will be triggered on commits to master branch only, I might be wrong, but from my experience right now it seems to be triggered on commit to every branch.
Adding a deploy secretSelect Configuration in the project settings panel. Scroll down to the Webhook Deploy Secret section, then click Set Webhook Secret. Looker will automatically generate a secret token. You can use this automatically generated secret, or you can type in your own secret token.
Considering that you don't have much control over a GitHub post-receive hook, it seems easier to filter the JSON message representing the payload of said hook.
You can check the value of the "ref
" element
"ref":"refs/heads/master",
Any part of the JSON message which don't include the expected ref could be ignored by your listener.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With