How to get a full commit hash from a webhook?
I'm trying to write a web hook for handling successful builds, and I need a full commit hash in it.
Payload of AppVeyor notification has a eventData.commitId field, but it carries just a portion of it (not exactly a git abbreviated hash, either). I tried to play with custom payloads (%APPVEYOR_REPO_COMMIT% carries exactly what I need), but I'm not sure how to inject environment variables into custom payload and whether it's possible at all -- the documentation on webhook payloads is really brief...
I believe a default payload should carry a full commit hash. But since it doesn't at the moment -- is there any workaround?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ilya Finkelshte... on 09 Jun, 2017 02:27 PM
Hi Vladimir,
Possible workaround is to pass what you need with message, as described here. Let us know if this works for you.
Ilya.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.