MCPcopy Create free account
hub / github.com/github/gh-aw / buildCodeFenceOpener

Function buildCodeFenceOpener

actions/setup/js/comment_memory_helpers.cjs:23–25  ·  view source on GitHub ↗

* Builds the opening line of a code-fence memory block. * Format: ``````gh-aw-comment-memory: * @param {string} memoryId * @returns {string}

(memoryId)

Source from the content-addressed store, hash-verified

21 * @returns {string}
22 */
23function buildCodeFenceOpener(memoryId) {
24 return `${COMMENT_MEMORY_CODE_FENCE}${COMMENT_MEMORY_TAG}:${memoryId}`;
25}
26
27function stripCommentMemoryCodeFence(content) {
28 const trimmed = typeof content === "string" ? content.trim() : "";

Callers 3

buildManagedMemoryBodyFunction · 0.85
findManagedCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected