diff --git a/.github/workflows/pocketbase-bot.yml b/.github/workflows/pocketbase-bot.yml index 362680308..9d2cf4c84 100644 --- a/.github/workflows/pocketbase-bot.yml +++ b/.github/workflows/pocketbase-bot.yml @@ -430,9 +430,20 @@ jobs: if (methodListMode) { await addReaction('+1'); + let debugInfo = ''; + if (methodsArr.length === 0) { + const rawJson = record.install_methods_json; + const expandedIds = Array.isArray(record.install_methods) ? record.install_methods : []; + const expandData = record.expand && record.expand.install_methods; + debugInfo = '\n\n
Debug info\n\n' + + '- `install_methods_json` raw: `' + JSON.stringify(rawJson) + '`\n' + + '- `install_methods` IDs: `' + JSON.stringify(expandedIds) + '`\n' + + '- expand present: `' + (expandData ? JSON.stringify(expandData) : 'none') + '`\n' + + '
'; + } await postComment( 'ℹ️ **PocketBase Bot**: Install methods for **`' + slug + '`** (' + methodsArr.length + ' total)\n\n' + - formatMethodsList(methodsArr) + formatMethodsList(methodsArr) + debugInfo ); } else { // Parse: cpu=N ram=N hdd=N