From 7ed528995fbbed2178b7086fd809d2af316d2efa Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Tue, 21 Nov 2017 17:56:49 -0500 Subject: [PATCH] Fixing checksum table --- gulpTasks/publishing.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gulpTasks/publishing.js b/gulpTasks/publishing.js index 9556f6467..0cdf199a7 100644 --- a/gulpTasks/publishing.js +++ b/gulpTasks/publishing.js @@ -87,14 +87,15 @@ gulp.task('upload-binaries', (cb) => { .then(() => { console.info('Appending checksums to release notes...', checksums); if (draft.body && checksums) { + const checksumRows = checksums.map((e) => { + const line = e.replace('\n', '').split(' '); + return `${line[1]} | \`${line[0]}\``; + }).join('\n'); got.patch(`https://api.github.com/repos/ethereum/mist/releases/${draft.id}?access_token=${GITHUB_TOKEN}`, { body: JSON.stringify({ tag_name: `v${version}`, // String manipulation to create a checksums table - body: String.concat('File | Checksum (SHA256)\n-- | --', checksums.map((e) => { - const line = e.replace('\n', '').split(' '); - return `${line[1]} | \`${line[0]}\``; - }).join('\n')) + body: `File | Checksum (SHA256)\n-- | -- \n${checksumRows}` }) }); }