Skip to content

Commit a544388

Browse files
committed
Support cargo-release
1 parent ecb8638 commit a544388

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
<!-- next-header -->
9+
## [Unreleased] - ReleaseDate
10+
911
### Changed
1012
- [breaking-change] Update to embedded-hal 1.0.
1113

@@ -65,6 +67,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6567

6668
Initial release to crates.io.
6769

70+
<!-- next-url -->
6871
[Unreleased]: https://github.com/eldruin/lsm303agr-rs/compare/v0.3.0...HEAD
6972
[0.3.0]: https://github.com/eldruin/lsm303agr-rs/compare/v0.2.2...v0.3.0
7073
[0.2.2]: https://github.com/eldruin/lsm303agr-rs/compare/v0.2.1...v0.2.2

release.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pre-release-replacements = [
2+
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
3+
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
4+
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
5+
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
6+
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/eldruin/{{crate_name}}-rs/compare/{{tag_name}}...HEAD", exactly=1},
7+
]

0 commit comments

Comments
 (0)