Repository navigation
fix(pr-management): verify the review footer when no contributing URL is set - #2026
Merged
potiuk merged 1 commit intoNov 9, 2026
Merged
Conversation
… is set footer() drops the last three template lines when no contributing-docs URL is configured, but _footer_regex() always matched the full template, so verify_footer reported the footer render had just written as missing. Share the trim between the two and accept either form. Generated-by: Claude Opus 5
potiuk
enabled auto-merge (squash)
November 9, 2026 02:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
code-review renderreportsfooter_verified: false, andverify_footerreturnsaction: block, for every review on a project with noupstream_contributing_docs_url.footer()drops the last three template lines when there is no URL, but_footer_regex()always matched the full template, so the footerrenderitself had just written could never verify.verify_footeraccepts either form of the footer.A hand-edited body that loses the contributing link on a project that does have a URL now also verifies.
renderbuilds the footer itself, so this only affects manual edits. Tying the check to the configured URL would also need a change to the standalone verify command, so it is left out here.Type of change
tools/*/withpyproject.toml)Test plan
prek run --all-filespasses (not run: see below)uv run pytest/ruff check/mypypassesprek run --fileson the three changed files passes, includingcheck-family-plugins.--all-fileswas not run because the checkout was sparse: the sandbox denies writes to.apache-magpie-overrides/tools/vetted-ops/.test_footer_without_contributing_url_still_verifiescases fail onmainand pass with this change.test_footer_without_contributing_url_truncated_is_blockedguards against the check becoming too loose.RFC-AI-0004 compliance
No principles affected: this corrects a check and adds no new mutation, host access or outbound message.
Linked issues
None.
🤖 Generated with Claude Code