UNPKG

pr-sizewise

Version:

A CLI tool that measures and reports pull request sizes for GitHub and GitLab, helping teams maintain manageable code changes.

18 lines 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.detectPlatform = detectPlatform; /** * Platform detection utility */ function detectPlatform() { // GitLab CI if (process.env.GITLAB_CI ?? process.env.CI_SERVER_URL) { return 'gitlab'; } // GitHub Actions if (process.env.GITHUB_ACTIONS ?? process.env.GITHUB_SERVER_URL) { return 'github'; } return null; } //# sourceMappingURL=base.js.map