)]}'
{
  "commit": "91ff2de213b59f4656d2f69c76dbb1fc2361db68",
  "tree": "0b2e12b796ff7f4d7584a44a25c370b8b5421733",
  "parents": [
    "5eee3c0608b8284b0835d06eb0eb263bf92cfc4a"
  ],
  "author": {
    "name": "Dariusz Luksza",
    "email": "dariusz.luksza@gmail.com",
    "time": "Mon Apr 22 20:05:32 2024 +0100"
  },
  "committer": {
    "name": "Dariusz Luksza",
    "email": "dariusz.luksza@gmail.com",
    "time": "Thu Apr 25 11:37:47 2024 +0100"
  },
  "message": "Support tagging ChatGPT bot via its primary email\n\nRight now to ask questions to ChatGPT it\u0027s required to provide the bot\nusername in the comment.\n\nIn the regular workflow with Gerrit, typing `@` following by a single\nletter opens  user auto-suggestion dropdown. From which the user can\nbe selected. This also applies to the ChatGPT user.\n\nUnfortunately, this won\u0027t trigger the plugin action,\nas auto-suggestion is inserting the primary email address of the user.\n\nThis change updates the regular expression for finding questions to\nChatGPT to also work with the ChatGPT user\u0027s preferred email address.\n\nTo make it work, we extend the `Configuration` class to also include\nChatGPT user email address. This is because the `ConfigurationCreator`\nclass is the last place where we can use Guice injections, as from\nthat point class instances are created manually either with `new`\noperator or via `SingletonManager`. With that in place, we can then\nupdate the bot mention pattern in `ClientMessage`.\n\nChange-Id: I89500741600bc584ee749f3ff0cea2f7cc23f292\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "25f92d8194b1628a52701b11e436b2a5ca28431c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/client/common/ClientMessage.java",
      "new_id": "82cb93139ee2b77584843d6687ed484e67c88116",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/client/common/ClientMessage.java"
    },
    {
      "type": "modify",
      "old_id": "5bf274ec196988ae04674f98982c8778f2d52cb5",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/ConfigCreator.java",
      "new_id": "4a17d31e2877fe4d162305c261bfb08373143603",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/ConfigCreator.java"
    },
    {
      "type": "modify",
      "old_id": "2498191a5c39dc70ce87bdaf1b854ac9943dfab6",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java",
      "new_id": "5a9c2cf8d2567f356931d5f2e879b874d77e0337",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java"
    }
  ]
}
