From 277d222fb190ed8882ef74bcddc0da9bea178264 Mon Sep 17 00:00:00 2001 From: dwieeb Date: Tue, 16 Oct 2018 14:04:07 -0500 Subject: [PATCH] chore(ci): slice sha1 to 7 characters (#15974) --- core/scripts/screenshot/ci.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/scripts/screenshot/ci.js b/core/scripts/screenshot/ci.js index d5393612f1..5622f1ab18 100644 --- a/core/scripts/screenshot/ci.js +++ b/core/scripts/screenshot/ci.js @@ -13,8 +13,9 @@ const s3 = new S3({ apiVersion: '2006-03-01' }); class CIScreenshotConnector extends IonicConnector { async initBuild(opts) { - const result = await execa.stdout('git', ['log', '-1', '--format=%h%n%an <%ae>%n%ct%n%s']); - const [ sha1short, author, timestamp, msg ] = result.split('\n'); + const result = await execa.stdout('git', ['log', '-1', '--format=%H%n%an <%ae>%n%ct%n%s']); + const [ sha1, author, timestamp, msg ] = result.split('\n'); + const sha1short = sha1.slice(0, 7); opts.buildId = sha1short; opts.buildMessage = msg;