Skip to content

[Fix] Pull requests show duplicate Roomote attribution - #1582

Merged
mrubens merged 1 commit into
developfrom
fix/pr-attribution-dedup-18pflg7f1mqrd
Aug 24, 2026
Merged

[Fix] Pull requests show duplicate Roomote attribution#1582
mrubens merged 1 commit into
developfrom
fix/pr-attribution-dedup-18pflg7f1mqrd

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

​Opened on behalf of @mrubens. Follow up by mentioning @roomote-roomote or in the web UI.

What changed

PR-body attribution parsing now recognizes the HTML entity, HTML-escaped entity, and literal zero-width-space prefixes used before Roomote's marker comments. Write-time normalization removes every marked attribution line in the body's leading whitespace region before inserting one canonical line.

Regression coverage reproduces both the PR creation payload and the already-duplicated body shape observed on PR #1579.

Why this change was made

PR #1579 was created with both the delivery-harness attribution and the server-generated attribution because the prefixes were encoded differently. The previous first-line-only check did not reliably identify both marker-wrapped variants, so server normalization prepended instead of replacing.

Impact

Roomote-created and refreshed pull requests keep a single canonical attribution line even when callers use different zero-width-space encodings. Marker-wrapped attribution elsewhere in substantive body content remains untouched.

@roomote-community

roomote-community Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed b321fa5

@mrubens
mrubens marked this pull request as ready for review August 24, 2026 12:57
@mrubens
mrubens merged commit 8730f85 into develop Aug 24, 2026
16 checks passed
@mrubens
mrubens deleted the fix/pr-attribution-dedup-18pflg7f1mqrd branch August 24, 2026 12:57
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