statusToIcon
Maps a CI/CD job status to an emoji icon.
| Status | Icon |
|---|---|
success | ✅ |
failure | ❌ |
skipped | ⏭️ |
| (other) | ⚠️ |
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 — An emoji representing the status
Examples
Section titled “Examples”Map CI status to icon
Section titled “Map CI status to icon”Returns an emoji icon matching 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.
