)]}'
{
  "commit": "de2535081427a9f2385189ca8475712f0e872282",
  "tree": "b575e98516ac75fa5620aca8999b67d630bb2b18",
  "parents": [
    "514f963c2401b63135305fd106579fd80015249f"
  ],
  "author": {
    "name": "Adam Markowitz",
    "email": "amarkowitz@google.com",
    "time": "Fri Oct 02 13:27:55 2026 +0000"
  },
  "committer": {
    "name": "Adam Markowitz",
    "email": "amarkowitz@google.com",
    "time": "Fri Oct 02 13:27:55 2026 +0000"
  },
  "message": "Resolve changes by project and number in AddReviewers\n\nWhen a new change is pushed and change indexing runs asynchronously\n(`index.indexChangesAsync \u003d true`), the `reviewers` plugin immediately\nruns `AddReviewers` to assign reviewers from `reviewers.config`. Because\n`AddReviewers` looks up the change by change number alone\n(`gApi.changes().id(changeInfo._number)`), Gerrit has to query the\nchange index to find which project the change belongs to. On Patchset 1,\nif background indexing has not finished yet, the lookup fails with\n`ResourceNotFoundException` and no reviewers are added.\n\nPass both the project name and change number\n(`gApi.changes().id(changeInfo.project, changeInfo._number)`) in\n`AddReviewers` so Gerrit reads the change directly from primary storage\n(NoteDb) instead of querying the change index. This follows the\ndeprecation of `Changes#id(int)` in favor of `Changes#id(String, int)`\n(see I7ddde61db, I0ccd90cf6, and I305ff2d2c).\n\nChange-Id: Ia2df288f0a82fc3adec6712695e2cbe55a07b7ae\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "099db3735ed135a62b0be36e5e8c24d4f9f2eab2",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/reviewers/AddReviewers.java",
      "new_id": "3e4f8c71b9475e6e680ff434d9e65ea11ac7f1af",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/reviewers/AddReviewers.java"
    },
    {
      "type": "modify",
      "old_id": "6e4df5804768883824b66075c60a8b0f9b54bd78",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/reviewers/ReviewersIT.java",
      "new_id": "48c61b27e21682a2b2bf0007910f739f2a547b29",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/reviewers/ReviewersIT.java"
    }
  ]
}
