@nexus2520/bitbucket-mcp-server
Version:
MCP server for Bitbucket API integration - supports both Cloud and Server
17 lines (16 loc) • 579 B
JavaScript
/**
* Formats a comment with a code suggestion in markdown format
* that Bitbucket can render as an applicable suggestion
*/
export function formatSuggestionComment(commentText, suggestion, startLine, endLine) {
// 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}
\`\`\``;
}
//# sourceMappingURL=suggestion-formatter.js.map