)]}'
{
  "commit": "7e52a985b502329cf8a3a34f23dfef9520c6a1fa",
  "tree": "4c0897ef24701bd7d3bee44e177fffc94ee0c74d",
  "parents": [
    "bef58c8c1d48006683f180417a7112a771baa1af"
  ],
  "author": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Wed May 20 12:35:24 2020 +0200"
  },
  "committer": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Wed May 27 11:53:31 2020 +0200"
  },
  "message": "Validate emails when parsing find-owner code owner configuration files\n\nEmails in code owner configurations must be resolveable to Gerrit\naccounts. This means any email that is invalid for Gerrit accounts, is\nalso invalid as code owner (if an email cannot be added to a Gerrit\naccount, it can never be resolved to a Gerrit account and hence it makes\nno sense to allow it as code owner). Since emails for Gerrit accounts\nare validated by OutgoingEmailValidator we should use the same validator\nfor code owner emails although it\u0027s not only checking if the email is\nvalid, but also if the email is allowed to receive email notifications.\n\nAlternatively we considered to use\norg.apache.commons.validator.routines.EmailValidator, which is used by\nOutgoingEmailValidator internally, but this is not possible since it is\na singleton with some static initialization and hence we can\u0027t use an\nEmailValidator instance that is different from the one that is used in\nOutgoingEmailValidator. This means we must use OutgoingEmailValidator,\nas this class takes care to do the static setup which must be done\nbefore the first use of the EmailValidator singleton instance.\n\nSigned-off-by: Edwin Kempin \u003cekempin@google.com\u003e\nChange-Id: I6669dd56459bdd1af4a0d6031446f3b56ee413ec\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "156bee3b9ea07bf605c94c251f2deb3e861ea3aa",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/plugins/codeowners/backend/findowners/CodeOwnerConfigParser.java",
      "new_id": "f15636551775bf12670c77cf24161e02e42657d1",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/backend/findowners/CodeOwnerConfigParser.java"
    },
    {
      "type": "modify",
      "old_id": "e8ea7400ff4feae44cb2505837036f173c65af25",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gerrit/plugins/codeowners/backend/findowners/CodeOwnerConfigParserTest.java",
      "new_id": "29449662827cf0a2a73a6c2d77085756d7cf0964",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/findowners/CodeOwnerConfigParserTest.java"
    }
  ]
}
