Skip to content

fix(vig-utils): skip inline code spans when matching blocked emails - #1536

Merged
c-vigo merged 3 commits into
devfrom
feature/1521-fingerprint-email-context
Aug 17, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/1521-fingerprint-email-context

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements #1521 (follow-up to the #1516 train blocker): the emails blocklist in contains_agent_fingerprint matched as a bare substring over the whole content, so a changelog entry or PR body that merely quotes a bot identity in an inline code span blocked its own release PR.

Of the two options the issue offered, this takes code-span stripping, not the _ATTRIBUTION_CONTEXT_RE guard — deliberately: the context regex (…[\s-]+by\b) does not match Signed-off-by: (the -off- infix) or Author: lines, so gating emails on it would let real attributions through and would have required deleting two deliberate #274-era pins. Instead:

Test plan

Closes #1521

c-vigo added 3 commits August 17, 2026 11:55
…gate

Encode the #1516 acceptance cases: the verbatim 1.10.0 CHANGELOG wording
for #1503 (identity in an inline code span) must pass the PR fingerprint
check, while real attributions -- trailers, Signed-off-by, Author lines --
must keep failing, case-insensitively, with name matching unchanged.

Refs: #1521
The emails blocklist was matched as a bare substring over the whole
content, so a changelog entry or PR body that quoted a bot identity
while describing a bug blocked its own release PR. Strip inline
Markdown code spans before email matching; names and trailers keep
their existing semantics, so plain-text attributions still fail.

Refs: #1521
@c-vigo
c-vigo merged commit 4f2d2a9 into dev Aug 17, 2026
12 checks passed
@c-vigo
c-vigo deleted the feature/1521-fingerprint-email-context branch August 17, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant