Skip to content

Commit

Permalink
Merge pull request ethereum#3306 from ethereum/develop
Browse files Browse the repository at this point in the history
Minor fix into master
  • Loading branch information
evertonfraga authored Nov 21, 2017
2 parents 6e636d4 + 550581a commit 252e1ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gulpTasks/publishing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
})
});
}
Expand Down

0 comments on commit 252e1ea

Please sign in to comment.