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

from pydis_site.utils.resources import get_git_sha


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