aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/constants.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-02 22:19:45 +0100
committerGravatar GitHub <[email protected]>2020-09-02 22:19:45 +0100
commit55d4b8ff7457629676c3964581900c0328cb4673 (patch)
treeca14eea4be10f530f216b3f371cabfef345792c1 /pydis_site/constants.py
parentMerge pull request #349 from ks129/tags-cleanup (diff)
parentMerge branch 'master' into add_deployment_info (diff)
Merge pull request #376 from python-discord/add_deployment_info
Add deployment info and set up Sentry releases
Diffstat (limited to 'pydis_site/constants.py')
-rw-r--r--pydis_site/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/constants.py b/pydis_site/constants.py
new file mode 100644
index 00000000..0b76694a
--- /dev/null
+++ b/pydis_site/constants.py
@@ -0,0 +1,5 @@
+import git
+
+# Git SHA
+repo = git.Repo(search_parent_directories=True)
+GIT_SHA = repo.head.object.hexsha