Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolajevp committed Jan 2, 2018
1 parent 85f1dcb commit 91a5e25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function updateBottomSectionGithub(changelog) {
const compareToUnreleased = `[Unreleased]:${url}v${version}...HEAD`;
const compareToLatestVersion = `[${version}]:${url}v${previousVersion}...v${version}`;

changelog = changelog.replace(regex, `${compareToUnreleased}\n${compareToLatestVersion}`);
changelog = changelog.replace(
regex,
`${compareToUnreleased}\n${compareToLatestVersion}`
);
}

return changelog;
Expand All @@ -48,7 +51,10 @@ function updateBottomSectionBitbucket(changelog) {
const compareToUnreleased = `[Unreleased]:${url}HEAD..v${version}`;
const compareToLatestVersion = `[${version}]:${url}v${version}..v${previousVersion}`;

changelog = changelog.replace(regex, `${compareToUnreleased}\n${compareToLatestVersion}`);
changelog = changelog.replace(
regex,
`${compareToUnreleased}\n${compareToLatestVersion}`
);
}

return changelog;
Expand Down

0 comments on commit 91a5e25

Please sign in to comment.