So I am using a PHP script to create a webhook with Gitlab. However, I am running into a slight issue. Finding the short commit ID. How would I find this? I can't seem to find it within PHP. Thanks!
The solutions I've seen are using the PHP exec() function which I definitely do not want enabled on my web server.
I expect the commit ID in the webhook to appear as something such as "2e54ar" rather than having the long string of numbers and letters.