forked from conventional-changelog/standard-version
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
e4419a7
commit abdcfe2
Showing
2 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters