LearnNewsExamplesServices
Frontmatter
id7648
titleFeat: Improve Agent Comment Formatting with Markdown Headings
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 25, 2025, 5:53 PM
updatedAtOct 25, 2025, 5:54 PM
githubUrlhttps://github.com/neomjs/neo/issues/7648
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 25, 2025, 5:54 PM

Feat: Improve Agent Comment Formatting with Markdown Headings

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 25, 2025, 5:53 PM

This ticket describes an enhancement to the agent comment formatting within the PullRequestService.

Problem: Previously, when an agent comment started with a markdown heading (e.g., #, ##, ###), the agent icon was prepended before the heading markers, resulting in an awkward format like > ✦ ### Review: Approved.

Solution: The createComment method in PullRequestService.mjs has been adjusted to intelligently place the agent icon after the markdown heading markers but before the heading text. This results in a more visually appealing and semantically correct format, such as ### ✦ Review: Approved. The entire comment is then correctly blockquoted.

Changes Implemented: The createComment method in ai/mcp/server/github-workflow/services/PullRequestService.mjs was modified to include logic for detecting markdown headings and inserting the agent icon at the appropriate position.

This ensures that agent comments are consistently well-formatted, improving readability and adherence to markdown conventions.

tobiu added the enhancement label on Oct 25, 2025, 5:53 PM
tobiu added the ai label on Oct 25, 2025, 5:53 PM
tobiu assigned to @tobiu on Oct 25, 2025, 5:53 PM
tobiu referenced in commit 3d70e63 - "Feat: Improve Agent Comment Formatting with Markdown Headings #7648" on Oct 25, 2025, 5:54 PM
tobiu closed this issue on Oct 25, 2025, 5:54 PM