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 newwith:block is injected immediately beforesecrets: inherit. If neither pattern matches the template, a warning is emitted and the base template is returned unchanged.
Parameters
Section titled “Parameters”string
withOverrides?
Section titled “withOverrides?”Record<string, unknown>
additionalPaths?
Section titled “additionalPaths?”string[]
logger?
Section titled “logger?”Optional sink for the “could not inject with:” warning.
(obj, msg) => void
comments?
Section titled “comments?”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.
Returns
Section titled “Returns”string