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

Function parseAllowedIssueFields

actions/setup/js/allowed_issue_fields.cjs:11–15  ·  view source on GitHub ↗

* Parse allowed issue field names from config. * @param {string[]|string|undefined} value * @returns {string[]}

(value)

Source from the content-addressed store, hash-verified

9 * @returns {string[]}
10 */
11function parseAllowedIssueFields(value) {
12 if (value == null || value === "") return [];
13 const raw = Array.isArray(value) ? value : String(value).split(",");
14 return [...new Set(raw.map(item => String(item).trim()).filter(Boolean))];
15}
16
17/**
18 * Build a lowercased Set from allowedFields.

Callers 3

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected