aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/context_processors.py
blob: 0e8b4a949530744cd4aacf5e00b6cbbb7724cfe3 (plain) (blame)
1
2
3
4
5
6
7
from django.conf import settings
from django.template import RequestContext


def git_sha_processor(_: RequestContext) -> dict:
    """Expose the git SHA for this repo to all views."""
    return {'git_sha': settings.GIT_SHA}