dpgaspar commented on a change in pull request #8614: SHA display touchups
URL:
https://github.com/apache/incubator-superset/pull/8614#discussion_r348617660
##########
File path: superset/config.py
##########
@@ -70,7 +70,7 @@ def _try_json_readversion(filepath):
def _try_json_readsha(filepath):
try:
with open(filepath, "r") as f:
- return json.load(f).get("GIT_SHA")
+ return json.load(f).get("GIT_SHA")[-8:]
Review comment:
I would prefer the first 8 chars `[:8]`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]