Skip to content

Commit

Permalink
Add release name as most recent git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Apr 22, 2024
1 parent 0531c87 commit 992f89e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gunicorn = "*"
uritemplate = "*"
psycopg = {extras = ["binary"], version = "*"}
sentry-sdk = {extras = ["django"], version = "*"}
gitpython = "*"

[dev-packages]
pylint = "*"
Expand Down
27 changes: 26 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion sibyl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import os
from pathlib import Path
from django.core.management.utils import get_random_secret_key
from git import Repo
import dj_database_url
import sentry_sdk

Expand Down Expand Up @@ -170,5 +171,6 @@
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
enable_tracing=True,
environment=os.getenv("ENV")
environment=os.getenv("ENV"),
release=Repo(search_parent_directories=True).head.object.hexsha
)

0 comments on commit 992f89e

Please sign in to comment.