{
 "flight": {
  "id": 48037,
  "agent": "github-copilot",
  "state": "closed",
  "title": "Fix incorrect type declarations for constants inside namespaces merged with enums",
  "number": 61946,
  "source": "aidev",
  "commits": 12,
  "debrief": "Copilot attempted a fix for invalid declaration files generated for constants inside namespaces merged with enums, where unqualified enum member references were emitted. The change touched 203 files, with 21414 additions and 5895 deletions across twelve commits. After seven reviews, five change requests and two review comments, it closed unmerged after human review.",
  "outcome": "burn",
  "signals": [
   "aidev:Copilot"
  ],
  "index_ok": true,
  "additions": 21414,
  "closed_at": "2025-07-10T07:12:05+00:00",
  "deletions": 5895,
  "merged_at": null,
  "opened_at": "2025-06-25T15:38:32+00:00",
  "task_type": "fix",
  "body_chars": 1917,
  "confidence": "dataset",
  "updated_at": "2026-11-03T21:52:48.786863+00:00",
  "enriched_at": null,
  "body_excerpt": "When generating declaration files for constants inside namespaces merged with enums, TypeScript was incorrectly generating unqualified enum member references, resulting in invalid d.ts files.\n\n## Issue\n\nConsider this TypeScript code:\n\n```typescript\nenum Foo {\n    bar\n}\nnamespace Foo {\n    export con",
  "review_count": 7,
  "files_changed": 203,
  "hours_to_merge": null,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 5,
  "og_generated_at": "2026-11-03T21:52:48.786863+00:00",
  "reviewer_excerpt": "You can't put a file named `.d.ts` in `tests/compiler`, this fact was in the instructions: > Filenames in tests/cases/compiler must always end with .ts, not",
  "review_comment_count": 2,
  "reviewer_excerpt_url": "https://github.com/microsoft/TypeScript/pull/61946#pullrequestreview-2959149032"
 },
 "repo": {
  "name": "TypeScript",
  "owner": "microsoft",
  "stars": 111862,
  "license": "Apache-2.0",
  "full_name": "microsoft/TypeScript",
  "primary_language": "Go"
 },
 "author": {
  "login": "Copilot",
  "name": null,
  "github_profile": "https://github.com/Copilot",
  "page": null
 },
 "claim": null,
 "events": [
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Ryan Cavanaugh"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Ryan Cavanaugh"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": "2025-06-25T15:38:36+00:00",
   "url": null,
   "kind": "labeled",
   "actor_login": "typescript-bot"
  },
  {
   "at": "2025-06-25T15:38:36+00:00",
   "url": null,
   "kind": "labeled",
   "actor_login": "typescript-bot"
  },
  {
   "at": "2025-06-25T17:59:31+00:00",
   "url": "https://github.com/microsoft/TypeScript/pull/61946#pullrequestreview-2959149032",
   "kind": "changes_requested",
   "actor_login": "RyanCavanaugh"
  },
  {
   "at": "2025-06-25T19:15:29+00:00",
   "url": "https://github.com/microsoft/TypeScript/pull/61946#pullrequestreview-2959358949",
   "kind": "changes_requested",
   "actor_login": "RyanCavanaugh"
  },
  {
   "at": "2025-06-25T21:46:51+00:00",
   "url": "https://github.com/microsoft/TypeScript/pull/61946#pullrequestreview-2959760674",
   "kind": "changes_requested",
   "actor_login": "RyanCavanaugh"
  },
  {
   "at": "2025-06-26T04:43:03+00:00",
   "url": "https://github.com/microsoft/TypeScript/pull/61946#pullrequestreview-2960525450",
   "kind": "changes_requested",
   "actor_login": "RyanCavanaugh"
  },
  {
   "at": "2025-07-09T23:45:33+00:00",
   "url": "https://github.com/microsoft/TypeScript/pull/61946#pullrequestreview-3003413823",
   "kind": "changes_requested",
   "actor_login": "RyanCavanaugh"
  }
 ],
 "related": [
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Fix Copilot instructions to emphasize mandatory lint, test, and format steps",
   "number": 61950,
   "outcome": "merged_after_rework",
   "index_ok": true,
   "additions": 61,
   "deletions": 46,
   "merged_at": "2025-06-30T22:22:29+00:00",
   "opened_at": "2025-06-26T05:11:20+00:00",
   "task_type": "fix",
   "files_changed": 2,
   "hours_to_merge": 113.19
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Fix Symbol completion priority and cursor positioning",
   "number": 61945,
   "outcome": "merged_after_rework",
   "index_ok": true,
   "additions": 484,
   "deletions": 71,
   "merged_at": "2025-07-02T21:46:24+00:00",
   "opened_at": "2025-06-25T15:20:04+00:00",
   "task_type": "fix",
   "files_changed": 27,
   "hours_to_merge": 174.44
  },
  {
   "agent": "github-copilot",
   "state": "closed",
   "title": "Fix class member completion crash in monorepo with baseUrl configuration",
   "number": 61940,
   "outcome": "burn",
   "index_ok": true,
   "additions": 1005,
   "deletions": 25,
   "merged_at": null,
   "opened_at": "2025-06-24T18:41:33+00:00",
   "task_type": "fix",
   "files_changed": 4,
   "hours_to_merge": null
  }
 ],
 "pr_url": "https://github.com/microsoft/TypeScript/pull/61946",
 "page": "https://agentriders.com/logs/microsoft/TypeScript/61946/"
}