UNPKG

near-protocol-rewards

Version:

A transparent, metric-based rewards system for NEAR projects

31 lines (30 loc) 962 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shouldSkipIntegrationTests = exports.integrationConfig = void 0; exports.integrationConfig = { githubRepo: process.env.TEST_GITHUB_REPO || "test-org/test-repo", githubToken: process.env.GITHUB_TOKEN, timeframe: "week", weights: { commits: 0.35, pullRequests: 0.25, reviews: 0.2, issues: 0.2, }, validation: { github: { minCommits: 1, maxCommitsPerDay: 15, minAuthors: 1, suspiciousAuthorRatio: 0.8, }, }, isTestMode: true, }; exports.shouldSkipIntegrationTests = process.env.SKIP_INTEGRATION_TESTS === "true"; if (exports.shouldSkipIntegrationTests) { console.warn("Skipping integration tests: SKIP_INTEGRATION_TESTS is true"); } else if (!process.env.GITHUB_TOKEN) { console.warn("Skipping integration tests: GITHUB_TOKEN not provided"); }