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.
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
createCommentmethod inPullRequestService.mjshas 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
createCommentmethod inai/mcp/server/github-workflow/services/PullRequestService.mjswas 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.