Skip to content

AT- 416 Added functionality to fetch PR title & description from Mermaid AI via pr-summary endpoint#45

Merged
Prashant-7718 merged 7 commits intomainfrom
AT-416-add-new-tool-to-mcp-pr-summary-that-call-mermaid-ai-through-mermaid-sdk-and-collab
Apr 28, 2026
Merged

AT- 416 Added functionality to fetch PR title & description from Mermaid AI via pr-summary endpoint#45
Prashant-7718 merged 7 commits intomainfrom
AT-416-add-new-tool-to-mcp-pr-summary-that-call-mermaid-ai-through-mermaid-sdk-and-collab

Conversation

@Prashant-7718
Copy link
Copy Markdown
Contributor

Introduces support for calling the /rest-api/openai/pr-summary endpoint 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.

Copilot AI review requested due to automatic review settings April 23, 2026 09:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
office-plugin-site Ignored Ignored Apr 28, 2026 0:33am

Request Review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 prSummary REST URL constant for the new endpoint.
  • Introduced MermaidPrSuggestionRequest/Response types.
  • 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.

Comment thread packages/sdk/src/types.ts Outdated
Comment thread packages/sdk/src/index.ts Outdated
Comment thread packages/sdk/src/index.test.ts Outdated
@Prashant-7718 Prashant-7718 requested review from Copilot and removed request for Copilot April 23, 2026 12:52
Copilot AI review requested due to automatic review settings April 27, 2026 08:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/sdk/src/index.ts Outdated
Comment thread packages/sdk/src/types.ts Outdated
Copilot AI review requested due to automatic review settings April 28, 2026 11:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .changeset/calm-berries-check.md Outdated
@Prashant-7718 Prashant-7718 merged commit bc8679c into main Apr 28, 2026
58 of 74 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
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.

4 participants