)]}'
{
  "commit": "15639a648a7837543e27819ea762169f9e3b558f",
  "tree": "c265c2e30306dc308d962adf68f6293f032c130a",
  "parents": [
    "fdc07b561b413880b4e71289c10466bd60811fff"
  ],
  "author": {
    "name": "Jacek Centkowski",
    "email": "geminica.programs@gmail.com",
    "time": "Tue Apr 23 09:24:05 2024 +0200"
  },
  "committer": {
    "name": "Dariusz Luksza",
    "email": "dariusz.luksza@gmail.com",
    "time": "Sat May 11 14:15:37 2024 +0100"
  },
  "message": "Use direct GerritApi calls in GerritClientDetail\n\nThe `GerritClientDetail` used to call REST API in order to retrive the\nchange details and map them to the internal `GerritPatchSetDetail`\nrepresentation. Alter it to use direct `GerritApi` calls with the\nfollowing changes:\n* obtain user\u0027s `Account.Id` from the username and set it into the\n  `Configuration`\n* add `openRequestContext` function to `Configuration` that is\n  responsible for setting the user\u0027s context to the `GerritApi`\n* use `GerritApi` in order to retrieve `ChangeInfo`\n* map the `ChangeInfo` to `GerritPatchSetDetail`\n* load `__files/gerritPatchSetDetail.json` as `ChangeInfo` and mock\n  `GerritApi` in tests so that they are passing\n\nBug: Issue 336577745\nChange-Id: I5a24c6671529a9cc2c4a06c152fa638c684e99b7\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4a17d31e2877fe4d162305c261bfb08373143603",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/ConfigCreator.java",
      "new_id": "6e8505163f8653fb25f336b7c25e6ed99304a1e9",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/ConfigCreator.java"
    },
    {
      "type": "modify",
      "old_id": "a9079e1a23d82009d87ba5a235e930269e324670",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java",
      "new_id": "d5c189c280e6c8c360a855df1ad11ea1b5f6fd25",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java"
    },
    {
      "type": "modify",
      "old_id": "f67c82ab6f7a4271875f9f7372a5e27c6dbca5a7",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/common/client/api/gerrit/GerritClientDetail.java",
      "new_id": "4f6350ec883fff42ccd1171dda1194863d6b59d7",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/common/client/api/gerrit/GerritClientDetail.java"
    },
    {
      "type": "modify",
      "old_id": "0ada5437bf7e003e6b1851f570b84da62cd83d7b",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/common/model/api/gerrit/GerritPatchSetDetail.java",
      "new_id": "425cd86a7b8531f14c3312f8c0630394e3ef57ba",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/mode/common/model/api/gerrit/GerritPatchSetDetail.java"
    },
    {
      "type": "modify",
      "old_id": "852531d9c130933e64031ccef3cb58b571f95d74",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewStatefulTest.java",
      "new_id": "0a0b5354ffe4e2e726e6f7ebc6a1df249a87c1d2",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewStatefulTest.java"
    },
    {
      "type": "modify",
      "old_id": "07880e88af8f5a296cf461326f742fbbae5435e1",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewStatelessTest.java",
      "new_id": "4a0da3d8028e10b68e5344f3fdbc61888e8927d4",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewStatelessTest.java"
    },
    {
      "type": "modify",
      "old_id": "a8af5a521fbd06fa958b0d59420875282aba47fa",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewTestBase.java",
      "new_id": "b252280c7bacc9e5e4e5eb0b11a987c69cfb009f",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/chatgpt/ChatGptReviewTestBase.java"
    }
  ]
}
