pre-release-replacements = [ {file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}"}, {file = "CHANGELOG.md", search = "/commits/HEAD", replace = "/commits/{{tag_name}}", min = 0, max = 1}, {file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", min = 0, max = 1}, {file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}"}, {file = "CHANGELOG.md", search = "", replace = "\n\n## [Unreleased] - ReleaseDate", exactly = 1}, {file = "CHANGELOG.md", search = "", replace = "\n[Unreleased]: https://github.com/gifnksm/clap-file/compare/{{tag_name}}...HEAD", exactly = 1}, {file = "README.md", search = "clap-file = \".*\"$", replace = "clap-file = \"{{version}}\"", exactly = 1}, {file = "README.md", search = "https://docs\\.rs/clap-file/[^/]*/clap_file", replace = "https://docs.rs/clap-file/{{version}}/clap_file"}, {file = "src/lib.rs", search = "^//! clap-file = \".*\"$", replace = "//! clap-file = \"{{version}}\"", exactly = 1}, {file = "src/lib.rs", search = "^#!\\[doc\\(html_root_url = \"https://docs.rs/clap-file/.*\"\\)\\]$", replace = "#![doc(html_root_url = \"https://docs.rs/clap-file/{{version}}\")]", exactly = 1}, ] pre-release-hook = ["cargo", "xtask", "pre-release"]