aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/context_processors.py
blob: 35854454c49e6b3f569af970d212c58ab3cf4893 (plain) (blame)
1
2
3
4
5
6
7
from django.conf import settings
from django.http import HttpRequest


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