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

Function parseStringListConfig

actions/setup/js/create_pull_request_helpers.cjs:117–123  ·  view source on GitHub ↗

* Parse config values that may be arrays or comma-separated strings. * @param {string[]|string|undefined} value * @returns {string[]}

(value)

Source from the content-addressed store, hash-verified

115 * @returns {string[]}
116 */
117function parseStringListConfig(value) {
118 if (!value) {
119 return [];
120 }
121 const raw = Array.isArray(value) ? value : String(value).split(",");
122 return raw.map(item => String(item).trim()).filter(Boolean);
123}
124
125/**
126 * Merges the required fallback label with any workflow-configured labels,

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected