MCPcopy Create free account
hub / github.com/github/gh-aw / parseBooleanEnv

Function parseBooleanEnv

actions/setup/js/send_otlp_span.cjs:153–157  ·  view source on GitHub ↗

* Parse a strict boolean env var. * @param {string | undefined} value * @returns {boolean | undefined}

(value)

Source from the content-addressed store, hash-verified

151 * @returns {boolean | undefined}
152 */
153function parseBooleanEnv(value) {
154 if (value === "true") return true;
155 if (value === "false") return false;
156 return undefined;
157}
158
159/**
160 * Resolve the job name for conclusion spans.

Callers 2

sendJobSetupSpanFunction · 0.85
sendJobConclusionSpanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected