statusToBadge
Maps a CI/CD job status to an inline code badge string.
| Status | Badge |
|---|---|
success | `passing` |
failure | `failing` |
skipped | `skipped` |
| (other) | `unknown` |
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
status | CiStatus | The CI/CD job status |
Returns
Section titled “Returns”string — A Markdown inline-code badge
Examples
Section titled “Examples”Map CI status to a Markdown badge
Section titled “Map CI status to a Markdown badge”Returns a Markdown code-span badge string for the given CI status.
Related Types
Section titled “Related Types”CiStatus
Section titled “CiStatus”Canonical CI/CD job status values.
The string & {} intersection allows any custom status string while
still enabling IDE auto-completion for the known values.
