This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e2c7847c6b Change chart annotation generator to use RELEASE_NOTES 
(#23549)
e2c7847c6b is described below

commit e2c7847c6bf73685f0576364787fab906397a6fe
Author: Jed Cunningham <[email protected]>
AuthorDate: Sat May 7 03:15:25 2022 -0600

    Change chart annotation generator to use RELEASE_NOTES (#23549)
---
 dev/chart/build_changelog_annotations.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/dev/chart/build_changelog_annotations.py 
b/dev/chart/build_changelog_annotations.py
index 0497588fe3..15e3b6ec68 100755
--- a/dev/chart/build_changelog_annotations.py
+++ b/dev/chart/build_changelog_annotations.py
@@ -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 @@ with open("chart/CHANGELOG.txt") as f:
                 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

Reply via email to