Skip to content

Escape the item title with core's Markdown::escape() - #17

Merged
roble merged 1 commit into
mainfrom
dev-2026-10-29
Oct 30, 2026
Merged

roble merged 1 commit into
mainfrom
dev-2026-10-29

Conversation

@roble

@roble roble commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Moves the status-change email onto core's shared Saucebase\Core\Support\Markdown::escape() (core v2.7.0) and removes the module's private escapeMarkdown() copy. What's escaped is unchanged: the item title, which a visitor typed and every voter receives. The greeting isn't escaped.

composer.json now requires saucebase/core ^2.7.

Roadmap PHPUnit: 93 pass.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Roadmap status-change emails now display item titles containing Markdown special characters without unintended formatting. Titles remain readable in the email, including when they contain characters that could otherwise be interpreted as Markdown. This improves consistency when recipients view notifications about roadmap item status changes.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

The saucebase/core requirement changes from ^2.0 to ^2.7. The roadmap status notification now uses Markdown::escape for the item title and removes its private escaping method.

Changes: Notification title escaping

Layer / File(s) Summary
Update core dependency and notification escaping
composer.json, src/Notifications/RoadmapItemStatusChangedNotification.php
The core dependency constraint changes to ^2.7. The notification imports Markdown and uses Markdown::escape for the title instead of its private escaping method.

Priority: Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Refactor

Possibly related PRs

  • saucebase-dev/roadmap#15: Changes the saucebase/core requirement to ^2.0; this PR updates that constraint to ^2.7 and uses Markdown::escape.
Merge Risk: Minimal · up to 85ae5

The change centralizes title escaping and updates the minimum core version accordingly. No merge-blocking risk is identified from the supplied evidence.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: using core's Markdown::escape() to escape the item title. It matches the notification update and dependency change.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@roble
roble merged commit 28395c7 into main Oct 30, 2026
7 checks passed
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