{"record":{"id":"48c13351caf1119e","repo":"oven-sh/bun","slug":"github-issue-body-must-be-set-48c133","errorCode":null,"errorMessage":"GITHUB_ISSUE_BODY must be set","messagePattern":"GITHUB_ISSUE_BODY must be set","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/read-issue.ts","lineNumber":4,"sourceCode":"const body = process.env.GITHUB_ISSUE_BODY;\n\nif (!body) {\n  throw new Error(\"GITHUB_ISSUE_BODY must be set\");\n}\n\nconst labels: string[] = [];\nlet command = \"\";\nif (body.includes(\"[TestCommand]\")) {\n  command = \"jest\";\n} else if (body.includes(\"[BuildCommand]\")) {\n  command = \"bundler\";\n} else if (body.includes(\"[InstallCommand]\") || body.includes(\"[AddCommand]\") || body.includes(\"[RemoveCommand]\")) {\n  command = \"npm\";\n}\n\nlet featuresLine = \"\";\nconst featuresI = body.indexOf(\"\\nFeatures: \");\nconst featuresEndI = body.indexOf(\"\\n\", featuresI + 1);\nif (featuresI > -1 && featuresEndI > -1) {\n  featuresLine = body.slice(featuresI + 1, featuresEndI).trim();\n}","sourceCodeStart":1,"sourceCodeEnd":22,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/read-issue.ts#L1-L22","documentation":"Error \"GITHUB_ISSUE_BODY must be set\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/read-issue.ts:4 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}