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 <tim.knight1@engineering.digital.dwp.gov.uk>
* fix: preserve frontmatter when updating changelog
fixes#106
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
* chore: add tests for upgrade path from standard-version
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
* 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 <tim.knight1@engineering.digital.dwp.gov.uk>
* chore: run linting
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
* chore: refactoring, extract functions
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
* chore: front matter usually on separate lines to title
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
* chore: apply eslint . --fix
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
---------
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
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