Skip to content
Permalink
Browse files

chore(generic): fix changelog link parsing

  • Loading branch information
MarshallOfSound committed Dec 11, 2016
1 parent abca563 commit 07defb76de59b8b54a578dcb4085edaa8a4b7b88
Showing with 2 additions and 2 deletions.
  1. +2 −2 ci/fix-changelog.js
@@ -7,8 +7,8 @@ const changelog = fs.readFileSync(changelogPath, 'utf8');

const fixedChangelog = changelog.replace(/\(([A-Za-z0-9]{8})\)/g,
(match, commitID) => `([${commitID}](https://github.com/marshallofsound/electron-forge/commit/${commitID}))`
).replace(/#### ([0-9]+\.[0-9]+\.[0-9]+) /g,
(match, version) => `#### [${version}](https://github.com/MarshallOfSound/electron-forge/releases/tag/v${version}) `
).replace(/# ([0-9]+\.[0-9]+\.[0-9]+) /g,
(match, version) => `# [${version}](https://github.com/MarshallOfSound/electron-forge/releases/tag/v${version}) `
);

fs.writeFileSync(changelogPath, fixedChangelog);

0 comments on commit 07defb7

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