Lifecycle Hooks

BeforeGenerate

Context Type

interface BeforeGenerateContext {
    lifecycle: Lifecycle.BeforeGenerate;
    commits: Commit[];
}

AfterGenerate

Context Type

interface AfterGenerateContext {
    lifecycle: Lifecycle.AfterGenerate;
    commits: Commit[];
}

Generating

Context Type

interface GeneratingContext {
    lifecycle: Lifecycle.Generating;
    sectionName: string;
    variable: Variable;
    result: SectionNode;
}