| 64 | scan: { |
| 65 | 'pull-requests': true, |
| 66 | issues: false, |
| 67 | }, |
| 68 | labels: { |
| 69 | 'community-flagged': 'agentscan:community-flagged', |
| 70 | mixed: 'agentscan:mixed-signals', |
| 71 | automation: 'agentscan:automation-signals', |
| 72 | }, |
| 73 | messages: { |
| 74 | organic: '', |
| 75 | mixed: '', |
| 76 | automation: '', |
| 77 | 'community-flagged': '', |
| 78 | 'insufficient-data': '', |
| 79 | honeypot: '', |
| 80 | 'honeypot-first-time': '', |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | export function parseRepoConfig(yamlContent: string): RepoConfig { |
| 85 | const raw = parseYaml(yamlContent) as Partial<RepoConfig> | null |
| 86 | |
| 87 | if (raw == null) { |
| 88 | return DEFAULT_CONFIG |
| 89 | } |
| 90 | |
| 91 | const version = raw.version ?? SUPPORTED_CONFIG_VERSION |
| 92 | |
| 93 | if (version > SUPPORTED_CONFIG_VERSION) { |