Skip to content

Commit 53c01d2

Browse files
authored
changelog: automatically populate version and date when releasing (#2635)
1 parent e4c29ad commit 53c01d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ tag-name = "v{{version}}"
3939
# Don't release any crate unless its manifest has `release = true`
4040
release = false
4141

42+
# Add version and date to changelog file
43+
[[workspace.metadata.release.pre-release-replacements]]
44+
file = "CHANGELOG.md"
45+
search = "# Unreleased"
46+
replace = "# {{version}} ({{date}})"
47+
4248
# The profile that 'cargo dist' will build with
4349
[profile.dist]
4450
inherits = "release"

0 commit comments

Comments
 (0)