Skip to content
Permalink
Browse files

Merge pull request #3306 from ethereum/develop

Minor fix into master
  • Loading branch information
evertonfraga committed Nov 21, 2017
2 parents fab9a41 + b4138fb commit 0c6e6ad33d910cc09677f6538c2ee3d9c2186fb2
Showing with 5 additions and 4 deletions.
  1. +5 −4 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 `<sub>${line[1]}</sub> | <sub>\`${line[0]}\`</sub>`;
}).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 `<sub>${line[1]}</sub> | <sub>\`${line[0]}\`</sub>`;
}).join('\n'))
body: `File | Checksum (SHA256)\n-- | -- \n${checksumRows}`
})
});
}

0 comments on commit 0c6e6ad

Please sign in to comment.
You can’t perform that action at this time.