Skip to main content

check_root_context

Function check_root_context 

Source
pub fn check_root_context<F: RepositoryFacts>(
    content: &mut ContentState,
    lifecycle: &LifecycleContent,
    facts: &mut F,
) -> PolicyOutcome
Expand description

What: Check the lifecycle’s candidates for a top-level CONTEXT.md that is not a deletion. <F: RepositoryFacts> accepts any facts provider. Why: Only pathnames and change kinds are read, never content; at most one finding.

In TS you’d write (pseudocode):

async function checkRootContext(content, lifecycle, facts): Promise<PolicyOutcome>;