MCPcopy Index your code
hub / github.com/desktop/desktop / getPretext

Function getPretext

script/draft-release/run.ts:217–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217async function getPretext(): Promise<string | null> {
218 const pretextPath = join(
219 __dirname,
220 '..',
221 '..',
222 'app',
223 'static',
224 'common',
225 'pretext-draft.md'
226 )
227 const pretext = await readFile(pretextPath, 'utf8')
228 if (pretext.trim() === '') {
229 return null
230 }
231 return `[Pretext] ${pretext}`
232}

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected