AT- 416 Added functionality to fetch PR title & description from Mermaid AI via pr-summary endpoint#45
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
There was a problem hiding this comment.
Pull request overview
Adds SDK support for generating suggested PR titles/descriptions from Mermaid diagram diffs by calling the Mermaid AI /rest-api/openai/pr-summary endpoint.
Changes:
- Added the
prSummaryREST URL constant for the new endpoint. - Introduced
MermaidPrSuggestionRequest/Responsetypes. - Added
MermaidChart.mermaidPrSuggestion()and corresponding unit tests.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/sdk/src/urls.ts | Adds URL constant for the OpenAI PR summary endpoint. |
| packages/sdk/src/types.ts | Adds request/response types for PR suggestion generation. |
| packages/sdk/src/index.ts | Adds mermaidPrSuggestion() client method calling the new endpoint. |
| packages/sdk/src/index.test.ts | Adds unit tests for mermaidPrSuggestion(). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Introduces support for calling the
/rest-api/openai/pr-summaryendpoint with original and modified Mermaid diagrams to generate suggested PR titles and descriptions.Enables Mermaid MCP and other SDK consumers to build automated PR copy generation from diagram diffs.