MCPcopy
hub / github.com/github/awesome-copilot / heroAction

Function heroAction

extensions/java-modernization-studio/renderer.mjs:447–453  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

445 }
446
447 function heroAction(f) {
448 const act = f.action;
449 if (act && act.kind && act.kind !== "fix_finding") {
450 return btn(act.label || "Run this step", act.kind, act.payload || {}, { primary: true });
451 }
452 return btn((act && act.label) || "Help me fix this", "fix_finding", findingCtx(f), { primary: true });
453 }
454
455 function findingCard(x, ord) {
456 const locked = isFindingLocked(x, ord);

Callers 1

heroNextFunction · 0.85

Calls 2

btnFunction · 0.85
findingCtxFunction · 0.85

Tested by

no test coverage detected