)]}'
{
  "commit": "b7fe2092e856db2b76c24a95ae79456df8637b87",
  "tree": "68ecb8e2ef0e4363a46418976cfa4a80c9e8e57b",
  "parents": [
    "18edefac123218ef61af7e4926b2c56824eef03a"
  ],
  "author": {
    "name": "David Pursehouse",
    "email": "dpursehouse@collab.net",
    "time": "Wed Jul 12 10:39:45 2017 +0900"
  },
  "committer": {
    "name": "David Pursehouse",
    "email": "dpursehouse@collab.net",
    "time": "Tue Jul 25 06:51:03 2017 +0100"
  },
  "message": "Add username parameters to hooks\n\nWhen a parameter is added from an AccountInfo object, it gets\nformatted as:\n\n Name (Email)\n\nor if the account does not have an email address:\n\n Name\n\nwhere \"Name\" can be \"Anonymous Coward\" if the name was not set.\n\nFrom this information hooks cannot easily get the account username.\n\nFor the parameters that take an AccountInfo, automatically add an\nadditional parameter for the username, with the name being derived\nfrom the AccountInfo parameter. So for example if the hook takes\nthe parameter:\n\n  --change-owner Name (Email)\n\nit will also automatically have:\n\n  --change-owner-username username\n\nFor the ref-update and commit-received hooks that take a user,\nbut not from AccountInfo, explicitly add an --uploader-username\nparameter.\n\nChange-Id: Ic38358464122c11e7e8f7616fbafa14bf71aef99\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "02800fc10df4bfea20163438e47e66b0a4f4018e",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/hooks/CommitReceived.java",
      "new_id": "ba4cec62d705de1715bb000fa2124702b708e8e6",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/hooks/CommitReceived.java"
    },
    {
      "type": "modify",
      "old_id": "fa3baec24dfbe53b927c6137ad9056f179eaf310",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/hooks/HookArgs.java",
      "new_id": "f1b29159e54bcfe41f7fb6a38719fa8a1704b6b3",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/hooks/HookArgs.java"
    },
    {
      "type": "modify",
      "old_id": "618927713145c471270d3a9c715e4348b2d905fc",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/hooks/RefUpdate.java",
      "new_id": "7618d97e157d0341becdb1b547961cc4813d638b",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/hooks/RefUpdate.java"
    },
    {
      "type": "modify",
      "old_id": "1fcb0c9b1d3c4064af0fedd1ca4c2f90a5976e72",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/hooks.md",
      "new_id": "0787fb335ef7101b9504a8c68fe9f84d69fb7b4c",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/hooks.md"
    }
  ]
}
