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

Function safeString

extensions/site-studio/extension.mjs:400–402  ·  view source on GitHub ↗
(value, fallback = "")

Source from the content-addressed store, hash-verified

398}
399
400function safeString(value, fallback = "") {
401 return typeof value === "string" ? value : fallback;
402}
403
404function readBranchFromGit() {
405 if (process.env.COPILOT_WORKSPACE_BRANCH) {

Callers 12

getTemplatePackOrThrowFunction · 0.85
validateFieldValueFunction · 0.85
normalizeStateFunction · 0.85
addChangeFunction · 0.85
addNoteFunction · 0.85
markMilestoneFunction · 0.85
upsertSectionContentFunction · 0.85
isSamplePlaceholderFunction · 0.85
deleteSectionContentFunction · 0.85
getSectionGuideFunction · 0.85
handleApiFunction · 0.85
extension.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected