Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"mempalace==3.2.0"
\\\n
markitdown-mcp
numpy
scikit-learn
15 changes: 15 additions & 0 deletions actions/setup/js/add_labels.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,20 @@ const main = createCountGatedHandler({
};
}

/** @type {string[]} */
let labelsBefore = [];
try {
const { data: existingItem } = await githubClient.rest.issues.get({
owner: repoParts.owner,
repo: repoParts.repo,
issue_number: itemNumber,
});
const existingLabels = Array.isArray(existingItem?.labels) ? existingItem.labels : [];
labelsBefore = existingLabels.map(label => (typeof label === "string" ? label : label?.name)).filter(name => typeof name === "string" && name.trim() !== "");
} catch (error) {
core.info(`Unable to capture labels-before snapshot for ${contextType} #${itemNumber}: ${getErrorMessage(error)}`);
}

try {
await withRetry(
() =>
Expand All @@ -195,6 +209,7 @@ const main = createCountGatedHandler({
success: true,
number: itemNumber,
labelsAdded: uniqueLabels,
labelsBefore,
contextType,
};
} catch (error) {
Expand Down
Loading