MCPcopy Create free account
hub / github.com/MatteoGabriele/agentscan / parseRepoConfig

Function parseRepoConfig

server/api/webhook/github/_config.ts:66–90  ·  view source on GitHub ↗
(yamlContent: string)

Source from the content-addressed store, hash-verified

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
84export 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) {

Callers 1

index.post.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected