Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ export const generateChangelog: typeof def = async ({ getPkgDir, tagPrefix }) =>
for await (const chunk of generator.write()) {
writeStream.write(chunk);
}
writeStream.write("\n");
writeStream.write(originalChangelog);
};
8 changes: 8 additions & 0 deletions tests/__snapshots__/changelog.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ exports[`generates a changelog with breaking changes 1`] = `
### Bug Fixes

* fix a bug ([#1](https://github.com/vitejs/test/issues/1)) ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

## 1.0.0 (yyyy-mm-dd)
### Miscellaneous Chores

* initial commit ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

"
`;

Expand All @@ -25,10 +27,12 @@ exports[`generates a changelog with commits 1`] = `
### Bug Fixes

* fix a bug ([#1](https://github.com/vitejs/test/issues/1)) ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

## 1.0.0 (yyyy-mm-dd)
### Miscellaneous Chores

* initial commit ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

"
`;

Expand All @@ -37,14 +41,17 @@ exports[`generates a changelog with commits 2`] = `
### Features

* add new feature ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

## <small>[1.0.1](https://github.com/vitejs/test/compare/v1.0.0...v1.0.1) (yyyy-mm-dd)</small>
### Bug Fixes

* fix a bug ([#1](https://github.com/vitejs/test/issues/1)) ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

## 1.0.0 (yyyy-mm-dd)
### Miscellaneous Chores

* initial commit ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

"
`;

Expand All @@ -53,5 +60,6 @@ exports[`generates a new changelog for empty project 1`] = `
### Miscellaneous Chores

* initial commit ([xxxxxxx](https://github.com/vitejs/test/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx))

"
`;
Loading