From 08e937fbea514579c0b3a6c78b384c3b28c7c63a Mon Sep 17 00:00:00 2001 From: Maccesch Date: Fri, 14 Jul 2023 22:49:22 +0100 Subject: [PATCH] fixed function template --- template/modify_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/modify_files.py b/template/modify_files.py index ab43f15..dd0c865 100644 --- a/template/modify_files.py +++ b/template/modify_files.py @@ -126,6 +126,8 @@ def modify_changelog(args): if line.startswith("### New Functions"): new_function_heading_exists = True break + elif line.startswith("## [") and not line.startswith("## [Unreleased"): + break if not new_function_heading_exists: changelog_source.insert(7, "### New Functions 🚀\n")