Skip to content
Permalink
Browse files
Change chart annotation generator to use RELEASE_NOTES (#23549)
  • Loading branch information
jedcunningham committed May 7, 2022
1 parent 46af5ba commit e2c7847c6bf73685f0576364787fab906397a6fe
Showing 1 changed file with 11 additions and 2 deletions.
@@ -85,8 +85,9 @@ def print_entry(section: str, description: str, pr_number: Optional[int]):


in_first_release = False
past_significant_changes = False
section = ""
with open("chart/CHANGELOG.txt") as f:
with open("chart/RELEASE_NOTES.rst") as f:
for line in f:
line = line.strip()
if not line:
@@ -97,8 +98,16 @@ def print_entry(section: str, description: str, pr_number: Optional[int]):
break
in_first_release = True
continue
if line.startswith('"""') or line.startswith('----'):
if line.startswith('"""') or line.startswith('----') or line.startswith('^^^^'):
continue

# Make sure we get past "significant features" before we actually start keeping track
if not past_significant_changes:
if line == "New Features":
section = line
past_significant_changes = True
continue

if not line.startswith('- '):
section = line
continue

0 comments on commit e2c7847

Please sign in to comment.