From 5cdd17f865ac964fc55a80d48bf62bbd53e36671 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Fri, 10 Jul 2026 16:25:44 -0400 Subject: [PATCH] fix(ci): only advertise CI-capable app categories in the wizard-ci menu Mirror the wizard fix: the welcome comment listed every apps/ directory, including ones the manifest marks ciCapable:false. Filter categories by ciCapable from wizard-workbench's apps/manifest.json. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/wizard-ci-trigger.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/wizard-ci-trigger.yml b/.github/workflows/wizard-ci-trigger.yml index 6b7c7108..1790026e 100644 --- a/.github/workflows/wizard-ci-trigger.yml +++ b/.github/workflows/wizard-ci-trigger.yml @@ -33,6 +33,12 @@ jobs: -H "Accept: application/vnd.github.v3+json" \ | jq -r '[.[] | select(.type == "dir") | .name] | sort | .[]') + # Only advertise directories whose workflow is CI-capable (apps/manifest.json). + # Left empty on fetch failure, in which case no filtering is applied. + CI_CAPABLE=$(curl -s "https://api.github.com/repos/PostHog/wizard-workbench/contents/apps/manifest.json" \ + -H "Accept: application/vnd.github.raw" \ + | jq -r '[.workflows[] | select(.ciCapable == true) | .dir] | .[]' 2>/dev/null || echo "") + # Build lists by category CATEGORY_LIST="" APP_LIST_VISIBLE="" @@ -41,6 +47,11 @@ jobs: VISIBLE_COUNT=3 for category in $CATEGORIES; do + # Skip directories the manifest marks as not CI-capable. + if [ -n "$CI_CAPABLE" ] && ! echo "$CI_CAPABLE" | grep -qxF "$category"; then + continue + fi + # Fetch apps in this category APPS=$(curl -s "https://api.github.com/repos/PostHog/wizard-workbench/contents/apps/$category" \ -H "Accept: application/vnd.github.v3+json" \