MCPcopy Index your code
hub / github.com/github/awesome-copilot / shortPhase

Function shortPhase

extensions/java-modernization-studio/renderer.mjs:680–684  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

678 return '<div class="card guide"><h2>Recommended approach</h2><div class="flow">' + flow + "</div><p class=\"muted\" style=\"margin:10px 0 0\">" + body + "</p></div>";
679 }
680 function shortPhase(name) {
681 if (!name) return "the current phase";
682 const m = String(name).match(/\bP[0-3]\b/i);
683 return m ? m[0].toUpperCase() : name;
684 }
685
686 function stepAction(st) {
687 const label = st.status === "in_progress" ? "Resume this step" : "Work on this step";

Callers 3

findingActionsFunction · 0.85
planTabFunction · 0.85
stepRowActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected