({ branch, categories, expires = "2099-01-01T00:00:00.000Z", pullRequestNumber, workflowName = "Test Workflow", workflowId = "test-workflow" } = {})
| 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 ( |
no outgoing calls
no test coverage detected