From 18da38367378bfe38a71c468be0fee3dd44cdf23 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 22 Nov 2020 13:15:34 +0200 Subject: [PATCH] Use 7 chars for git commit hash, not 8 Consistent with GitHub --- src/botVersion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/botVersion.js b/src/botVersion.js index cdfa315..ee33ac6 100644 --- a/src/botVersion.js +++ b/src/botVersion.js @@ -31,7 +31,7 @@ function getPrettyVersion() { const headCommitHash = getHeadCommitHash(); return headCommitHash - ? `v${packageVersion} (${headCommitHash.slice(0, 8)})` + ? `v${packageVersion} (${headCommitHash.slice(0, 7)})` : packageVersion; }