From 973e499f8298db69763e930fb19b47ee3f4fe421 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 20 Jul 2026 16:01:29 -0700 Subject: [PATCH] new_proposal.py fix for rumdl missing anchor from dangling ToC TODO entry (#7540) rumdl error broke the proposal script execution: ``` rumdl check..............................................................Failed - hook id: rumdl - exit code: 1 proposals/p000003-test-proposal.md:15:5: [MD051] Link anchor '#todo-initial-proposal-setup' does not exist in document headings Issues: Found 1 issues in 1 file (11ms) ``` So update the script to remove the TODO entry in the ToC to match removing the TODO section. --- proposals/scripts/new_proposal.py | 1 + 1 file changed, 1 insertion(+) 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