aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-27 19:58:14 +0000
committerGravatar GitHub <[email protected]>2020-12-27 19:58:14 +0000
commit41ee41ebdc2f2a52015f53fabd47ef017d7461ee (patch)
tree6d332d3220613dcae0d2c86093cefee39f360007 /backend/routes
parentMerge pull request #46 from python-discord/ks123/responses-bulk-delete (diff)
parentCreate workflow for creating Sentry releases (diff)
Merge pull request #47 from python-discord/ks123/sentry
Diffstat (limited to 'backend/routes')
-rw-r--r--backend/routes/index.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/routes/index.py b/backend/routes/index.py
index dd40d01..2551c58 100644
--- a/backend/routes/index.py
+++ b/backend/routes/index.py
@@ -7,6 +7,7 @@ from spectree import Response
from starlette.requests import Request
from starlette.responses import JSONResponse
+from backend.constants import GIT_SHA
from backend.route import Route
from backend.validation import api
@@ -19,6 +20,9 @@ class IndexResponse(BaseModel):
" be an IP of our internal load balancer"
)
)
+ sha: str = Field(
+ description="Current release Git SHA in production."
+ )
class IndexRoute(Route):
@@ -41,7 +45,8 @@ class IndexRoute(Route):
"client": request.client.host,
"user": {
"authenticated": False
- }
+ },
+ "sha": GIT_SHA
}
if request.user.is_authenticated: