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

Function buildExistingIssueBody

actions/setup/js/handle_agent_failure.test.cjs:398–406  ·  view source on GitHub ↗
({ branch, categories, expires = "2099-01-01T00:00:00.000Z", pullRequestNumber, workflowName = "Test Workflow", workflowId = "test-workflow" } = {})

Source from the content-addressed store, hash-verified

396 let promptsDir;
397
398 function buildExistingIssueBody({ branch, categories, expires = "2099-01-01T00:00:00.000Z", pullRequestNumber, workflowName = "Test Workflow", workflowId = "test-workflow" } = {}) {
399 const prPart = pullRequestNumber ? `, pull_request: ${pullRequestNumber}` : "";
400 return (
401 `> Generated from [${workflowName}](https://github.com/owner/repo/actions/runs/123456)\n` +
402 `> - [x] expires <!-- gh-aw-expires: ${expires} --> on Jan 1, 2099, 12:00 AM UTC\n\n` +
403 `<!-- gh-aw-agentic-workflow: ${workflowName}, workflow_id: ${workflowId}, run: https://github.com/owner/repo/actions/runs/123456 -->\n` +
404 `<!-- gh-aw-failure-issue: true, workflow_id: ${workflowId}, branch: ${branch || ""}, failure_categories: ${categories.join("|")}${prPart} -->`
405 );
406 }
407
408 function buildWorkflowMarkerOnlyIssueBody({ expires = "2099-01-01T00:00:00.000Z", workflowName = "Test Workflow", workflowId = "test-workflow" } = {}) {
409 return (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected