diff --git a/proposals/scripts/new_proposal.py b/proposals/scripts/new_proposal.py index e5cd5e5dd143..6786f3b60719 100755 --- a/proposals/scripts/new_proposal.py +++ b/proposals/scripts/new_proposal.py @@ -114,6 +114,7 @@ def _fill_template(template_path: str, title: str, pr_num: int) -> str: r"\g<1>%d" % pr_num, content, ) + content = re.sub(r"\n- \[TODO: .*?\n", r"\n", content) content = re.sub(r"\n## TODO(?:.|\n)*?(\n## )", r"\1", content) return content