UNPKG

github-pr-automation

Version:

MCP server and CLI for automated GitHub PR management, review resolution, and workflow optimization

17 lines 838 B
import type { ToolError, ErrorCategory } from "../types/index.js"; /** * Convert GitHub API error to standardized ToolError format * @param error - Unknown error from GitHub API * @param context - Context string describing the API operation that failed * @returns ToolError with standardized error information */ export declare function handleGitHubError(error: unknown, context: string): ToolError; /** * Create a standardized ToolError response * @param message - Error message describing what went wrong * @param category - Error category for classification * @param suggestion - Optional suggestion for resolving the error * @returns ToolError with standardized format */ export declare function createToolError(message: string, category: ErrorCategory, suggestion?: string): ToolError; //# sourceMappingURL=errors.d.ts.map