You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,10 @@ inputs:
46
46
description: 'Draw depth>1 sub-components as nested subgraphs (pair with depth_level >= 2).'
47
47
required: false
48
48
default: 'false'
49
+
cta_base_url:
50
+
description: 'Base URL of the click proxy (e.g. https://go.codeboarding.org). When set, the comment adds "open in workspace" / "get the extension" links with owner/repo/pr appended. Empty disables the CTA.'
# Call-to-action: links open the live workspace (github.dev-equivalent) and
359
+
# the extension via the click proxy, with owner/repo/pr appended for tracking.
360
+
cta() {
361
+
[ -z "$CTA_BASE" ] && return
362
+
local ws="${CTA_BASE}/use-workspace?owner=${OWNER}&repo=${REPO}&pr=${PR}"
363
+
local mp="${CTA_BASE}/use-marketplace?owner=${OWNER}&repo=${REPO}&pr=${PR}"
364
+
echo ""
365
+
echo "---"
366
+
echo "🔍 **This is the flattened map.** [**Explore it live in your browser →**](${ws}) — expand each component, follow every dependency, and click straight through to the code that changed. No install; it opens right here on this PR."
367
+
echo ""
368
+
echo "💡 Want this on every PR? [**Add the CodeBoarding extension →**](${mp})"
echo "Components are tinted by the files that changed inside them — 🟩 added · 🟨 modified · 🟥 removed — versus \`${BASE_REF}\` (not whole subsystems being added or dropped)."
359
381
if [ "$TRUNC" = "true" ]; then
360
382
echo ""
361
383
echo "<sub>Showing changed components only — the full graph exceeds GitHub's inline Mermaid limit.</sub>"
362
384
fi
363
385
else
364
386
echo "**$(headline "$N")** versus \`${BASE_REF}\`, but the diagram is too large to render inline (GitHub caps inline Mermaid at 500 edges)."
365
387
fi
388
+
cta
366
389
echo ""
367
390
echo "<sub>codeboarding-action · run ${{ github.run_id }}</sub>"
0 commit comments