# formatGithubAnnotation (/docs/api/functions/formatGithubAnnotation)



```ts
function formatGithubAnnotation(d): string;
```

Defined in: [packages/core/src/diagnostics.ts:86](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/diagnostics.ts#L86)

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 [#parameters]

### d [#d]

[`Diagnostic`](../interfaces/Diagnostic.mdx)

## Returns [#returns]

`string`


## Sitemap

Browse the full documentation: [Markdown sitemap](https://austenstone.github.io/actio/sitemap.md) · [XML sitemap](https://austenstone.github.io/actio/sitemap.xml)