Skip to content

generateThinCallerContent

generateThinCallerContent(name, withOverrides?, additionalPaths?, logger?, comments?): string

Defined in: cli/astromech/src/generators/github-action-thin-callers/github-action-thin-callers.ts:136

Generate the thin caller content for a workflow, optionally injecting or merging with: overrides into the jobs block.

Two strategies are used depending on the template:

  • Templates that already have a with: block (e.g. lint): the override entries are merged in, replacing existing keys and appending new ones.
  • Templates that end with secrets: inherit: a new with: block is injected immediately before secrets: inherit. If neither pattern matches the template, a warning is emitted and the base template is returned unchanged.

string

Record<string, unknown>

string[]

Optional sink for the “could not inject with:” warning.

(obj, msg) => void

Record<string, string>

with: key → a # comment line rendered immediately above that entry. Only honored when injecting a fresh with: block (no template today ships one), which is the path lint takes.

string