According to the documentation when using a push webhook, I should be able to access info about the push, but I am having issues.
I am using https://github.com/adnanh/webhook on my server to listen for the webhook events.
I can successfully use the hook, though in the response, I am only able to access actor.display_name.
Looking at the sample response, I should be able to do the following:
push.changes[0].new.target.hash
push.changes[0].new.target.message
push.changes[0].new.target.date
push.changes[0].links.diff
Though when i try to access push.changes[0] it's empty. push.changes is not empty, and when checking the console/logs, I get a response that I'm unfamiliar with. sample:
commits:[map
[type:commit
summary:map[
raw:Testing Webhook
markup:markdown
html:<p>Testing Webhook</p>
type:rendered
]
parents:[map[