Build_revision not available in new deploys

I’ve been using the following without issue for sometime. However it doesn’t work with new site deploys. I have site.github.repository_url set in _config.yml. Looking through the settings in sites where it works I can’t see any setting or anything different. Still feel like I’m missing something. Thanks.

<a href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}" target="_blank" rel="noopener">{{ site.github.build_revision | slice: 0, 7 }}</a>

hi there, sorry to be slow to get back to you! have you been able to make any progress with this? you didn’t really give us much information to troubleshoot with - which framework is this? what netlify site? does this work locally?