)]}'
{
  "commit": "ef03eda14f747362623a105edf2a8a527c11cf11",
  "tree": "a2b2757f7713b137cda3e60fac249061979c39f4",
  "parents": [
    "8f1a9884af4be3ad338c0d840c6faba258754d57"
  ],
  "author": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Wed Dec 02 13:26:36 2020 +0100"
  },
  "committer": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Thu Dec 10 15:07:44 2020 +0100"
  },
  "message": "CodeOwnerApprovalCheck: Allow to check for an account which paths it owns\n\nWhen a code owner votes on the code owner label, we want to write a\nchange message that lists the files/paths that were approved by the user\nby applying the vote. To write this message we need to know which of the\nfiles/paths in the change are owned by the user. Instead of\nreimplementing logic for this, we extend CodeOwnerApprovalCheck so that\nit can compute the code owner statuses for all files/paths of a change\nassuming that there is only an approval of a given user. Any file/path\nthat gets approved by this approval is owned by the user. Making use of\nthe new getFileStatusesForAccount method in CodeOwnerApprovalCheck to\nwrite the change message on post review will be implemented by a\nfollow-up change.\n\nSigned-off-by: Edwin Kempin \u003cekempin@google.com\u003e\nChange-Id: I10551f22a36372beeea560fe357e86370fc9c756\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "26d67f06d7aecfc54f9aa7f2cf0b3d0efedeff42",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/plugins/codeowners/backend/CodeOwnerApprovalCheck.java",
      "new_id": "7b832655974b2a181a9094332d63b88c4e9fc668",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/backend/CodeOwnerApprovalCheck.java"
    },
    {
      "type": "modify",
      "old_id": "a03f0e1bac9aeec77c2cecb19581422dfd1fab26",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/plugins/codeowners/backend/CodeOwnerResolverResult.java",
      "new_id": "b5b71c055655a98ba2bfb3413643b747cef8e552",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/backend/CodeOwnerResolverResult.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e392e47bf341dd57459b01e04a310eb983f2ac3b",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerApprovalCheckForAccountTest.java"
    },
    {
      "type": "modify",
      "old_id": "6386a1511cf5b37edef24b03e7e4818957b1f1a5",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerApprovalCheckTest.java",
      "new_id": "f9e79edfb667862a69cf8bdaf42256eb168a00fb",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerApprovalCheckTest.java"
    }
  ]
}
