src/roster.ts
10 lines and 1 functions in DrDustinEdwards/capsid, at commit daa875b on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| onRoster | 11 to 13 | 1 | 100% | OkCRAP 1 | No data: mutation testing has not run on this repo yet |
Imports
It imports no other module of this repo. Imported by src/auto-merge-policy.ts, src/controls-plan.ts, src/deploy-outcomes.ts, src/maintenance.ts, src/namespace-delete.ts, src/ops-feed.ts, src/portal-maintenance.ts, src/status.ts, src/trends.ts, src/watcher-gather.ts.
Source
// The namespaces Capsid looks after by name. The five app repos are the ones the watcher
// and the trends read CI for and whose deploys are compared (APP_ROSTER); carrel and
// capsomer joined later for auto-merge and the maintenance pass only (Dustin,
// 2026-10-07).
export const APP_ROSTER = ["capsid", "dustinedwards", "foxhound", "foxing", "germomics"] as const;
const MERGE_ONLY_ROSTER = ["carrel", "capsomer"] as const;
export const ROSTER = [...APP_ROSTER, ...MERGE_ONLY_ROSTER] as const;
export function onRoster(namespace: string): boolean {
return (ROSTER as readonly string[]).includes(namespace);
}