Skip to content

Commit

Permalink
chore(generic): fix changelog link parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Dec 11, 2016
1 parent abca563 commit 07defb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/fix-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.