Commit 5269c23
fix(tags): substitute ${devrelease} placeholder in tag_format
TagRules.normalize_tag only substituted `version`, `major`, `minor`,
`patch` and `prerelease`. Users with `tag_format` referencing
`` got the literal placeholder in their generated tag
(e.g. `0.0-2`), which then broke subsequent bumps and
changelog generation.
Render `devrelease` as `dev<N>` when the version has a dev release,
matching how dev releases appear in PEP-440 / SemVer version strings,
and as the empty string otherwise -- mirroring the `prerelease`
behaviour.
Closes #1615
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4d99415 commit 5269c23
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| 229 | + | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments