Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

olimorris's avatar

Accessing Git commit hash in Envoyer

Useful trick for those who use Envoyer and may wish to access the Git commit hash in their deployment hooks...Taylor has kindly added a {{sha}} placeholder. So we can use it in our deployment scripts and it will be replaced with the Git commit hash.

After a successful deployment I use a hook to notify Rollbar and send the commit hash.

0 likes
1 reply

Please or to participate in this conversation.