{"record":{"id":"c30b3ad57f3345be","repo":"affaan-m/ECC","slug":"missing-github-repo-pass-repo-owner-repo","errorCode":null,"errorMessage":"Missing GitHub repo. Pass --repo <owner/repo>.","messagePattern":"Missing GitHub repo\\. Pass --repo <owner/repo>\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/work-items.js","lineNumber":272,"sourceCode":"    closed.push(\n      store.upsertWorkItem({\n        ...item,\n        status: 'closed',\n        updatedAt: new Date().toISOString(),\n        metadata: {\n          ...item.metadata,\n          sourceClosedAt: new Date().toISOString()\n        }\n      })\n    );\n  }\n  return closed;\n}\n\nfunction syncGithubWorkItems(store, options) {\n  const repo = options.githubRepo;\n  if (!repo) {\n    throw new Error('Missing GitHub repo. Pass --repo <owner/repo>.');\n  }\n\n  const limit = normalizeLimit(options.limit);\n  const prs = runGhJson(['pr', 'list', '--repo', repo, '--state', 'open', '--limit', String(limit), '--json', 'number,title,author,url,updatedAt,mergeStateStatus,isDraft,headRefName']);\n  const issues = runGhJson(['issue', 'list', '--repo', repo, '--state', 'open', '--limit', String(limit), '--json', 'number,title,author,url,updatedAt,labels']);\n\n  const syncedAt = new Date().toISOString();\n  const activeIds = new Set();\n  const items = [];\n  for (const pr of prs) {\n    const payload = buildGithubPrWorkItem(repo, pr, options);\n    activeIds.add(payload.id);\n    items.push(\n      store.upsertWorkItem({\n        ...payload,\n        createdAt: undefined,\n        updatedAt: syncedAt\n      })","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/affaan-m/ECC/blob/8321021c54d670126ce3b2969d5deb880b4b0c2a/scripts/work-items.js#L254-L290","documentation":"Precondition guard in syncGithubWorkItems: options.githubRepo is empty, so GitHub PR/issue sync cannot run at all; the generic parser accepted the invocation but the required --repo <owner/repo> value was never provided.","triggerScenarios":"Thrown at scripts/work-items.js:272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --repo <owner/repo> on the work-items sync command.","Or set the repo in the persistent options/store the sync reads.","Confirm the command was run inside the intended repository if relying on auto-detection."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8321021c54d670126ce3b2969d5deb880b4b0c2a","analyzedAt":"2026-09-16T10:08:13.343Z","contentChangedAt":"2026-09-16T10:08:13.343Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}