Skip to content

Commit b6ea52f

Browse files
authored
Merge pull request #323 from pytest-dev/fix-release-notes
2 parents eb0894e + a13649a commit b6ea52f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/gen-release-notes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
first_heading_found = False
2121
for line in md_text.splitlines():
2222
if line.startswith("# "):
23+
# Skip the first section (normally # Releases).
24+
pass
25+
elif line.startswith("## "):
26+
# First second-level section, note it and skip the text,
27+
# as we are only interested in the individual release items.
2328
if first_heading_found:
2429
break
2530
first_heading_found = True

0 commit comments

Comments
 (0)