To standardize AI-generated comments on pull requests and reduce formatting errors, the createComment tool will be enhanced.
Changes:
- New
agent Parameter: A new agent parameter will be added to the createComment tool. The description for this parameter will be clear that it's for identifying the agent model (e.g., "Gemini 2.5 pro").
- Server-Side Templating: The
createComment method in PullRequestService.mjs will be updated. It will use the agent parameter to wrap the provided body in a template that adds a header (Input from [agent]:) and prefixes the comment body with a specific icon (✦ for Gemini, ❋ for Claude).
- API Spec Update: The
openapi.yaml file for the github-workflow server will be updated to include the new agent parameter in the createComment operation and clarify that the tool now handles the comment formatting.
To standardize AI-generated comments on pull requests and reduce formatting errors, the
createCommenttool will be enhanced.Changes:
agentParameter: A newagentparameter will be added to thecreateCommenttool. The description for this parameter will be clear that it's for identifying the agent model (e.g., "Gemini 2.5 pro").createCommentmethod inPullRequestService.mjswill be updated. It will use theagentparameter to wrap the providedbodyin a template that adds a header (Input from [agent]:) and prefixes the comment body with a specific icon (✦for Gemini,❋for Claude).openapi.yamlfile for thegithub-workflowserver will be updated to include the newagentparameter in thecreateCommentoperation and clarify that the tool now handles the comment formatting.