Actio
API ReferenceFunctions

formatGithubAnnotation

function formatGithubAnnotation(d): string;

Defined in: packages/core/src/diagnostics.ts:86

Render a diagnostic as a GitHub Actions workflow command so it surfaces as an inline annotation on the originating .actio.yml source line. Relies on the diagnostic's range already being source-mapped (see transpile's sourceMap).

Parameters

d

Diagnostic

Returns

string

On this page