You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: preserve frontmatter when updating changelog (#108)
* chore: add failing test for retaining frontmatter
Signed-off-by: Tim Knight <[email protected]>
* fix: preserve frontmatter when updating changelog
fixes#106
Signed-off-by: Tim Knight <[email protected]>
* chore: add tests for upgrade path from standard-version
Signed-off-by: Tim Knight <[email protected]>
* fix: preserve front matter when swapping from standard-version
- Matches based off # Changelog title position rather than new header position
Signed-off-by: Tim Knight <[email protected]>
* chore: run linting
Signed-off-by: Tim Knight <[email protected]>
* chore: refactoring, extract functions
Signed-off-by: Tim Knight <[email protected]>
* chore: front matter usually on separate lines to title
Signed-off-by: Tim Knight <[email protected]>
* chore: apply eslint . --fix
Signed-off-by: Tim Knight <[email protected]>
---------
Signed-off-by: Tim Knight <[email protected]>
it('appends the new release above the last release, replacing the old header (standard-version format) with header (new format), and retains any front matter',asyncfunction(){
185
+
const{ header }=require('../defaults')
186
+
187
+
conststandardVersionHeader=
188
+
'# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.'
0 commit comments