UNPKG

review-copilot

Version:

ReviewCopilot - AI-powered code review assistant with customizable prompts

16 lines (15 loc) 593 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getVcsProvider = getVcsProvider; const github_provider_1 = require("./github-provider"); const gitlab_provider_1 = require("./gitlab-provider"); const local_git_provider_1 = require("./local-git-provider"); function getVcsProvider() { if (process.env.GITHUB_ACTIONS === 'true') { return new github_provider_1.GithubProvider(); } if (process.env.GITLAB_CI === 'true') { return new gitlab_provider_1.GitlabProvider(); } return new local_git_provider_1.LocalGitProvider(); }