Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bd78bb

Browse files
committedAug 2, 2024·
Support cargo-release
1 parent cb7e16e commit 4bd78bb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

‎CHANGELOG.md

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

8-
## [Unreleased]
8+
<!-- next-header -->
9+
## [Unreleased] - ReleaseDate
910

1011
### Changed
1112

@@ -85,6 +86,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8586
## [v0.1.0] - 2019-11-05
8687

8788

89+
<!-- next-url -->
8890
[Unreleased]: https://github.com/stm32-rs/stm32f7xx-hal/compare/v0.7.0...HEAD
8991
[v0.7.0]: https://github.com/stm32-rs/stm32f7xx-hal/compare/v0.6.0...v0.7.0
9092
[v0.6.0]: https://github.com/stm32-rs/stm32f7xx-hal/compare/v0.5.0...v0.6.0

‎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/stm32-rs/{{crate_name}}/compare/{{tag_name}}...HEAD", exactly=1},
7+
]

0 commit comments

Comments
 (0)