I’m writing a plugin for Statamic CMS, and want clients to be able to deploy their site via the control panel, but only if the latest automated commit from their server is different to the one their site is running.
So I’m able to trigger builds easily with the build hook I created, and I can get the site’s information using the Netlify API, but the
commit_ref is always
null if the build was triggered via the build hook. Is this intentional? It is directly linked to the branch (currently populated with ‘staging’), so I can’t think of a good reason why this would intentionally be