UNPKG

sfcoe-ailabs

Version:

AI-powered code review tool with static analysis integration for comprehensive code quality assessment.

22 lines (21 loc) 748 B
import { GitHub } from './index.js'; export default class GitProviderFactory { /** * Gets a git provider instance * * @param type - The type of Git provider to create * @param token - The authentication token for the provider * @param owner - The repository owner/organization name * @param repo - The repository name * @returns An instance of the specified Git provider * @throws Error when the provider type is unsupported */ static getInstance(type, token, owner, repo) { switch (type) { case 'GitHub': return new GitHub(token, owner, repo); default: throw new Error(`Unsupported git provider type: ${type}`); } } }