)]}'
{
  "commit": "07b7400182aefc4153eb6617ab89a5f05f577349",
  "tree": "c94fccc6dea3ca946c2c9039f062d3814d61477f",
  "parents": [
    "9aa7828cbff8e8d66e63909db5a222d1b90fa986"
  ],
  "author": {
    "name": "banksean",
    "email": "banksean@gmail.com",
    "time": "Thu Jun 26 16:05:25 2025 +0000"
  },
  "committer": {
    "name": "Sean McCullough",
    "email": "banksean@gmail.com",
    "time": "Thu Jun 26 09:07:17 2025 -0700"
  },
  "message": "fix: prevent nil pointer panic in codereview compareTestResults\n\nFix for https://github.com/boldsoftware/sketch/issues/175\n\nFix nil pointer dereference when comparing test results between commits\nwhere a package exists in the after state but not the before state.\n\nThe panic occurred at line 867 when accessing beforeResult.TestStatus[test]\nwithout checking if beforeResult was nil. This happens when testing new\npackages that didn\u0027t exist in the base commit.\n\nNow properly check for nil beforeResult and default to testStatusUnknown\nfor tests in packages that didn\u0027t exist in the before state.\n\nAdd comprehensive unit tests covering:\n- New package with passing tests (the panic scenario)\n- New package with failing tests (regression detection)\n- Existing package regressions (ensure normal flow still works)\n- End-to-end integration test for new package scenario\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: sab802d91eff08039k\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d13cd9e1a701e16417ff175c3d9dd18d61e9b040",
      "old_mode": 33188,
      "old_path": "claudetool/codereview/differential.go",
      "new_id": "ff25b22ca9043de20217187923fcebe21f9c47eb",
      "new_mode": 33188,
      "new_path": "claudetool/codereview/differential.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "827bf63a3a300484b7f2b0275d2b596c949c249d",
      "new_mode": 33188,
      "new_path": "claudetool/codereview/differential_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8d6eede9fa23f446d36cb8d513c25602060dabde",
      "new_mode": 33188,
      "new_path": "claudetool/codereview/testdata/new_package_with_tests.txtar"
    }
  ]
}
