Skip to content

Fix main CI sanitizer integration - #3219

Merged
SamMorrowDrums merged 1 commit into
mainfrom
sammorrowdrums-fix-main-sanitizer-integration
Sep 3, 2026
Merged

Fix main CI sanitizer integration#3219
SamMorrowDrums merged 1 commit into
mainfrom
sammorrowdrums-fix-main-sanitizer-integration

Conversation

@SamMorrowDrums

Copy link
Copy Markdown
Collaborator

Summary

  • restore fidelity-preserving sanitization for Markdown bodies and commit messages
  • use plain-text sanitization for release names, sub-issue titles, and blame headlines
  • align direct release and sub-issue JSON responses with minimal converters

Validation

  • script/lint
  • script/test

Fixes main CI after #3216 and #3177.

Preserve Markdown and HTML in body and commit-message fields while stripping invisible controls. Apply plain-text sanitization consistently to raw release and sub-issue titles and restore blame headline handling.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 3, 2026 13:52
@SamMorrowDrums
SamMorrowDrums requested a review from a team as a code owner September 3, 2026 13:52
@SamMorrowDrums
SamMorrowDrums requested a balanced review from Copilot and removed request for Copilot September 3, 2026 13:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The sanitizer choices consistently match field semantics and are covered by focused regression tests.

Review tier: Balanced
Findings: None

What changed in this PR

Restores the intended sanitization boundaries for user-authored metadata and Markdown content.

Changes:

  • Preserves Markdown bodies and commit messages while removing invisible characters.
  • Applies plain-text sanitization to release names, sub-issue titles, and blame headlines.
  • Adds regression coverage for direct JSON responses.
File Description
pkg/​github/​repositories.go Sanitizes release responses and blame headlines appropriately.
pkg/​github/​repositories_test.go Tests release and blame sanitization.
pkg/​github/​minimal_types.go Preserves fidelity for body and commit-message fields.
pkg/​github/​issues.go Uses plain-text sanitization for sub-issue titles.
pkg/​github/​issues_test.go Tests sub-issue title and body handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@SamMorrowDrums
SamMorrowDrums merged commit 9205304 into main Sep 3, 2026
21 checks passed
@SamMorrowDrums
SamMorrowDrums deleted the sammorrowdrums-fix-main-sanitizer-integration branch September 3, 2026 13: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.

2 participants