Skip to main content
Glama
suggestion-formatter.ts572 B
/** * Formats a comment with a code suggestion in markdown format * that Bitbucket can render as an applicable suggestion */ export function formatSuggestionComment( commentText: string, suggestion: string, startLine?: number, endLine?: number ): string { // Add line range info if it's a multi-line suggestion const lineInfo = startLine && endLine && endLine > startLine ? ` (lines ${startLine}-${endLine})` : ''; // Format with GitHub-style suggestion markdown return `${commentText}${lineInfo} \`\`\`suggestion ${suggestion} \`\`\``; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdogra1299/bitbucket-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server