Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #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 fab9a41 + b4138fb commit 0c6e6ad
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 0c6e6ad

Please sign in to comment.