)]}'
{
  "commit": "86eadf1ecf89f346476354f42d4d5bc861acab1b",
  "tree": "66f464b1188f2e23fb09015d889fd97880e10119",
  "parents": [
    "52e14b78307a62aedb69694a222decf48d54a09b"
  ],
  "author": {
    "name": "Alex Martani",
    "email": "amartani@gmail.com",
    "time": "Fri Apr 07 23:05:38 2023 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Apr 07 23:05:38 2023 -0700"
  },
  "message": "fix: gazelle correctly adds new py_test rules (#1143)\n\nSince https://github.com/bazelbuild/rules_python/pull/999, gazelle can\r\ngenerate multiple `py_test` rules in a single package (when it finds\r\nmultiple `*_test.py` or `test_*.py` files and no `__test__.py` file). In\r\nthis case, adding new test files to a package with pre-existing\r\n`py_test` rules is not handled properly due to the `MatchAny` property\r\non the `py_test` kind - it will match the existing `py_test` rule and\r\nedit it instead of adding a new test rule. This PR disables the matching\r\nso that new `py_test` rules are properly generated.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0fdc6bc3e9129d579161dfe5cc48c641007c3574",
      "old_mode": 33188,
      "old_path": "gazelle/python/kinds.go",
      "new_id": "ab1afb7d5537dbdda7959c16c482f956d3a980dd",
      "new_mode": 33188,
      "new_path": "gazelle/python/kinds.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9e84e5dc327529bf485478b6a387d3f217742c55",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/BUILD.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fd67724e3befa99aba8f304064046a72b320458a",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/BUILD.out"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8220f6112d52689ef176bb536c817f06a3b1a24e",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/README.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "faff6af87ac0ef60c3f9dacae80ca00b08118b58",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/WORKSPACE"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/__init__.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9948f1ccd46269dea5939b748eb74fccee213d03",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/bar_test.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a128adf67f994544b91ef65664a42418cdaaf0d2",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/foo_test.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2410223e5999e8b2ef1720863d19e2012a0974eb",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/multiple_tests/test.yaml"
    }
  ]
}
