Skip to content

Commit 0777837

Browse files
committed
Ignore old 'vN-branch' tags when scanning for release notes
reno has an open TODO [1] to sort branches by something other than alphabetical order. Unfortunately we're hitting this here since heat previously had a 'vN-branch' branch naming scheme, and reno thinks those branches are newer than e.g. 'stable/train'. The solution is to just be stricter in how we select our branches and tags, preventing those with hyphens in them from being accepted. [1] https://github.com/openstack/reno/blob/3.0.0/reno/scanner.py#L850-L852 Change-Id: I75841d0dcb8e69214b7e96cf04f8b095da4d81d2 Signed-off-by: Stephen Finucane <[email protected]>
1 parent d8354d9 commit 0777837

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ doc/source/_static/heat.policy.yaml.sample
3535

3636
# Files created by releasenotes build
3737
releasenotes/build
38+
releasenotes/notes/reno.cache
3839

3940
# sample config included in docs
4041
doc/source/_static/heat.conf.sample

releasenotes/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
branch_name_re: '^stable/\w+$'
3+
release_tag_re: '((?:[\d.ab]|rc)+)'
4+
closed_branch_tag_re: '^(\w+)-eol$'

0 commit comments

Comments
 (0)