()
| 38 | const SUPPRESS_BUCKETS = new Set(['host_no_transcript', 'host_provider_error', 'local_gene_no_blast']); |
| 39 | |
| 40 | function 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 | |
| 52 | function getGithubToken() { |
| 53 | return process.env.GITHUB_TOKEN || process.env.GH_TOKEN || process.env.GITHUB_PAT || ''; |
no outgoing calls
no test coverage detected