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

Function buildIssueIntentLabelUpdates

actions/setup/js/issue_intents.cjs:131–143  ·  view source on GitHub ↗
(labelSpecs, labelIdByName)

Source from the content-addressed store, hash-verified

129}
130
131function buildIssueIntentLabelUpdates(labelSpecs, labelIdByName) {
132 return labelSpecs.map(spec => {
133 const labelId = labelIdByName.get(spec.name.toLowerCase());
134 if (!labelId) {
135 throw new Error(`Label ${JSON.stringify(spec.name)} not found. Ensure the label exists in the target repository.`);
136 }
137
138 return {
139 labelId,
140 ...normalizeIssueIntentMetadata(spec),
141 };
142 });
143}
144
145module.exports = {
146 buildIssueIntentLabelUpdates,

Callers 1

executeIssueUpdateFunction · 0.85

Calls 2

getMethod · 0.80

Tested by

no test coverage detected