)]}'
{
  "commit": "bef58c8c1d48006683f180417a7112a771baa1af",
  "tree": "58d7346100de8ea19735716620fc4017e1c24b11",
  "parents": [
    "d1dcf599f89fa146fa58b409149c014b921d83dd"
  ],
  "author": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Wed May 20 09:24:58 2020 +0200"
  },
  "committer": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Wed May 27 11:52:10 2020 +0200"
  },
  "message": "Add parser for code owner configurations that use the find-owners syntax\n\nOne syntax for code owner configurations that we want to support is the\nsyntax that is used by the find-owners plugin [1].\n\nFor now we only support the simplest code owner configurations possible,\nwhich means that a code owner configuration can only contain a set of\ncode owners.\n\nIn the find-owners syntax a set of code owners is represented as a list\nof emails, one email per line. E.g.:\n\n  a@example.com\n  b@example.com\n  c@example.com\n\nParsing this syntax is implemented in CodeOwnerConfigParser which is\ndefined in the new \u0027c.g.g.plugins.codeowners.backend.findowners\u0027\npackage. This package will contain all classes of the find-owners code\nowner backend.\n\nFor now invalid lines (lines that are not emails) are silently ignored\nduring the parsing so that owner configuration files that use syntax\nelements that are not supported yet can be parsed. Later we will likely\nchange this so that invalid lines make the parsing fail.\n\nThe validations of the email is very basic for now and will be improved\nin follow-up changes (see TODOs in CodeOwnerConfigParser and\nCodeOwnerConfigParserTest).\n\nThe result of the parsing is a CodeOwnerConfig, which is the code owner\nbackend independent representation of a code owner configuration.\n\nTo make assertions of CodeOwnerConfigs easy we add a dedicated truth\nsubject for it (CodeOwnerConfigSubject) that knows how to extract the\ncode owner emails from a CodeOwnerConfig.\n\n[1] https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/syntax.md\n\nSigned-off-by: Edwin Kempin \u003cekempin@google.com\u003e\nChange-Id: Ie8200cf15fea88efbbc62772725b84a24269c897\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "840b0cebb1600928cb8fb8e4f79bd4edb7ed6f30",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/plugins/codeowners/backend/CodeOwnerConfig.java",
      "new_id": "7b30f404646bd706c9723807b5c7e71eeef990ac",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/backend/CodeOwnerConfig.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "156bee3b9ea07bf605c94c251f2deb3e861ea3aa",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/backend/findowners/CodeOwnerConfigParser.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4041f3aa386b1b853ee1a2e90f9192c54bed9fb2",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/testing/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "741f1e1ae357bafaf32ab606b871df4cfd526096",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/plugins/codeowners/testing/CodeOwnerConfigSubject.java"
    },
    {
      "type": "modify",
      "old_id": "0f890400e6f5f8d52519d22328ed058bf05de333",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gerrit/plugins/codeowners/backend/BUILD",
      "new_id": "b54686b73d6d54838fc8db95ad26025850eb3446",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/BUILD"
    },
    {
      "type": "modify",
      "old_id": "bfc42ebd346de12755113fc121712903a685f9ea",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerConfigTest.java",
      "new_id": "7d24bf72ef86a29a90179dcf076a938181c7756d",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/CodeOwnerConfigTest.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4ce19e0fcf72eeca3522e026ea7663c9b5532fa3",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/findowners/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e8ea7400ff4feae44cb2505837036f173c65af25",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/plugins/codeowners/backend/findowners/CodeOwnerConfigParserTest.java"
    }
  ]
}
