{
 "flight": {
  "id": 20185,
  "agent": "github-copilot",
  "state": "merged",
  "title": "Fix MSTEST0020 codefix placing code in static constructors",
  "number": 5935,
  "source": "aidev",
  "commits": 4,
  "debrief": "GitHub Copilot fixed the MSTEST0020 codefix for PreferConstructorOverTestInitialize in microsoft/testfx, which placed TestInitialize method code into static constructors when a test class had both static and instance constructors. The change touched five files with 91 additions and 47 deletions across four commits. It merged clean with no changes requested, in 72.84 hours.",
  "outcome": "merged_clean",
  "signals": [
   "aidev:Copilot"
  ],
  "index_ok": true,
  "additions": 91,
  "closed_at": "2025-07-07T08:30:50+00:00",
  "deletions": 47,
  "merged_at": "2025-07-07T08:30:50+00:00",
  "opened_at": "2025-07-04T07:40:18+00:00",
  "task_type": "fix",
  "body_chars": 4353,
  "confidence": "dataset",
  "updated_at": "2026-11-03T21:37:31.827739+00:00",
  "enriched_at": null,
  "body_excerpt": "The MSTEST0020 codefix for \"PreferConstructorOverTestInitialize\" was incorrectly placing TestInitialize method code into static constructors when both static and instance constructors existed in a test class.\n\n## Problem\nWhen applying the codefix to code like this:\n\n```csharp\n[TestClass]\npublic seal",
  "review_count": 2,
  "files_changed": 5,
  "hours_to_merge": 72.84,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 0,
  "og_generated_at": "2026-11-03T21:37:31.827739+00:00",
  "reviewer_excerpt": "Delete global.json.bak please",
  "review_comment_count": 0,
  "reviewer_excerpt_url": "https://github.com/microsoft/testfx/pull/5935#pullrequestreview-2985996350"
 },
 "repo": {
  "name": "testfx",
  "owner": "microsoft",
  "stars": 1058,
  "license": "MIT",
  "full_name": "microsoft/testfx",
  "primary_language": "C#"
 },
 "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": "Youssef Victor"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": "2025-07-07T08:30:50+00:00",
   "url": null,
   "kind": "merged",
   "actor_login": "Youssef1313"
  },
  {
   "at": "2025-07-07T08:30:50+00:00",
   "url": null,
   "kind": "closed",
   "actor_login": "Youssef1313"
  }
 ],
 "related": [
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Add timeout tests for GlobalTestInitializeAttribute and GlobalTestCleanupAttribute",
   "number": 6200,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 153,
   "deletions": 0,
   "merged_at": "2025-07-28T18:04:49+00:00",
   "opened_at": "2025-07-28T12:13:38+00:00",
   "task_type": "test",
   "files_changed": 2,
   "hours_to_merge": 5.85
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Add analyzer to flag Assert.Throws with multiple statements (MSTEST0051)",
   "number": 6190,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 4504,
   "deletions": 1326,
   "merged_at": "2025-07-30T10:53:31+00:00",
   "opened_at": "2025-07-27T14:02:16+00:00",
   "task_type": "feat",
   "files_changed": 101,
   "hours_to_merge": 68.85
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Rename diagnostic options to use kebab case",
   "number": 6165,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 5353,
   "deletions": 5262,
   "merged_at": "2025-07-30T14:05:27+00:00",
   "opened_at": "2025-07-25T08:23:15+00:00",
   "task_type": "refactor",
   "files_changed": 309,
   "hours_to_merge": 125.7
  }
 ],
 "pr_url": "https://github.com/microsoft/testfx/pull/5935",
 "page": "https://agentriders.com/logs/microsoft/testfx/5935/"
}