MCPcopy Create free account
hub / github.com/EvoMap/evolver / getConfig

Function getConfig

src/gep/issueReporter.js:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38const SUPPRESS_BUCKETS = new Set(['host_no_transcript', 'host_provider_error', 'local_gene_no_blast']);
39
40function getConfig() {
41 const enabled = String(process.env.EVOLVER_AUTO_ISSUE || 'true').toLowerCase();
42 if (enabled === 'false' || enabled === '0') return null;
43 return {
44 // Default repo is shared with self-PR (see config.SELF_PR_REPO) so that
45 // auto-reported issues and auto-filed PRs land in the same public repo.
46 repo: process.env.EVOLVER_ISSUE_REPO || SELF_PR_REPO,
47 cooldownMs: Number(process.env.EVOLVER_ISSUE_COOLDOWN_MS) || DEFAULT_COOLDOWN_MS,
48 minStreak: Number(process.env.EVOLVER_ISSUE_MIN_STREAK) || DEFAULT_MIN_STREAK,
49 };
50}
51
52function getGithubToken() {
53 return process.env.GITHUB_TOKEN || process.env.GH_TOKEN || process.env.GITHUB_PAT || '';

Callers 2

maybeReportIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected