(memoryID)
| 27 | } |
| 28 | |
| 29 | function sanitizeMemoryID(memoryID) { |
| 30 | const normalized = String(memoryID || "default").trim(); |
| 31 | if (!/^[a-zA-Z0-9_-]+$/.test(normalized)) { |
| 32 | core.info(`comment_memory: rejected invalid memory_id '${normalized}'`); |
| 33 | return null; |
| 34 | } |
| 35 | return normalized; |
| 36 | } |
| 37 | |
| 38 | function buildManagedMemoryBody(rawBody, memoryID, options) { |
| 39 | const { includeFooter, runUrl, workflowName, workflowSource, workflowSourceURL, historyUrl, triggeringIssueNumber, triggeringPRNumber } = options; |