MCPcopy Create free account
hub / github.com/PRX/Infrastructure / statusColor

Function statusColor

ci/src/slack-message-handler/color.mjs:1–14  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

1export function statusColor(event) {
2 switch (event.detail['build-status']) {
3 case 'IN_PROGRESS':
4 return '#daa038';
5 case 'SUCCEEDED':
6 return '#2eb886';
7 case 'FAILED':
8 return '#a30200';
9 case 'STOPPED':
10 return '#a30200';
11 default:
12 return '#daa038';
13 }
14}

Callers 1

buildAttachmentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected