Skip to content

Commit

Permalink
Fix Find+Replace of CHANGELOG on Unreleased links (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelmello committed Apr 8, 2023
1 parent 9dc831b commit 1c86107
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Expand Up @@ -251,9 +251,9 @@ The library is already featureful enough to warrant a higher version number, bum

<!-- next-url -->

[Unreleased]: https://github.com/mikaelmello/inquire/compare/v0.6.0...HEAD
[unreleased]: https://github.com/mikaelmello/inquire/compare/v0.5.3...v0.6.0
[unreleased]: https://github.com/mikaelmello/inquire/compare/v0.5.2...v0.5.3
[unreleased]: https://github.com/mikaelmello/inquire/compare/v0.6.0...HEAD
[0.6.0]: https://github.com/mikaelmello/inquire/compare/v0.5.3...v0.6.0
[0.5.3]: https://github.com/mikaelmello/inquire/compare/v0.5.2...v0.5.3
[0.5.2]: https://github.com/mikaelmello/inquire/compare/v0.5.1...v0.5.2
[0.5.1]: https://github.com/mikaelmello/inquire/compare/v0.5.0...v0.5.1
[0.5.0]: https://github.com/mikaelmello/inquire/compare/v0.4.0...v0.5.0
Expand Down
4 changes: 2 additions & 2 deletions release.toml
Expand Up @@ -10,9 +10,9 @@ pre-release-replacements = [
{file="CRATE_README.md", search="inquire = \".*\"", replace="{{crate_name}} = \"{{version}}\""},
{file="CRATE_README.md", search="inquire = \\{ version = \"[\\.0-9]*\"", replace="{{crate_name}} = { version = \"{{version}}\""},

{file="CHANGELOG.md", search="Unreleased", replace="{{version}}"},
{file="CHANGELOG.md", search="unreleased", replace="{{version}}"},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="<!-- ReleaseDate -->", replace="- {{date}}"},
{file="CHANGELOG.md", search="<!-- next-header -->\n", replace="<!-- next-header -->\n\n## [Unreleased] <!-- ReleaseDate -->\n\n- No changes since the latest release below.\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->\n", replace="<!-- next-url -->\n\n[Unreleased]: https://github.com/mikaelmello/inquire/compare/{{tag_name}}...HEAD", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->\n", replace="<!-- next-url -->\n\n[unreleased]: https://github.com/mikaelmello/inquire/compare/{{tag_name}}...HEAD", exactly=1},
]

0 comments on commit 1c86107

Please sign in to comment.