)]}'
{
  "commit": "04b0e495de3442a5cf5c110664f718d7b50ce9c7",
  "tree": "36b254a81601dfa5df0e0a813119efe4cb42a2d2",
  "parents": [
    "c5e5d2f5e82d020914ed505334d0cb702c9ea7fc"
  ],
  "author": {
    "name": "Marcin Czech",
    "email": "maczech@gmail.com",
    "time": "Tue Feb 16 17:25:42 2021 +0100"
  },
  "committer": {
    "name": "Marcin Czech",
    "email": "maczech@gmail.com",
    "time": "Wed Feb 17 13:11:29 2021 +0100"
  },
  "message": "Add branch protection check during the project import\n\nWhen importing a GitHub repository into Gerrit, if the repository has\nbranch protection enabled, it would be impossible for Gerrit to push to\nit. Call the GitHubApi to check if the repository contains protected\nbranches, if yes block import and give warning to the user.\n\nBug: Issue 14017\nChange-Id: I34cf4f8fbec0b929577bc45005d5b4e9f8498a8a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "12acdb238db950c812f6de280f1a2d70d07a0c85",
      "old_mode": 33188,
      "old_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/GuiceHttpModule.java",
      "new_id": "4e6448b9bdc889aa2366c5021adb5b456caa8fbe",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/GuiceHttpModule.java"
    },
    {
      "type": "modify",
      "old_id": "4421841391bd252f4cacb9bb90e0d7097e854a64",
      "old_mode": 33188,
      "old_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/AbstractCloneJob.java",
      "new_id": "753575fd9e954de2aff541f3b05e909c69dd7001",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/AbstractCloneJob.java"
    },
    {
      "type": "modify",
      "old_id": "01760919f71d792439a2c49169f1ec7715cb114f",
      "old_mode": 33188,
      "old_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/GitImporter.java",
      "new_id": "66a7b5cdd06a93d58a2bb8ab607a07704acceca7",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/GitImporter.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "221152f12f10ffab4ac5aad6cf03ae74cf84fbae",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/ProtectedBranchFoundException.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5b2f763333f7cf62cdd7472d87daaf56f6a2c5a2",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/ProtectedBranchesCheckStep.java"
    }
  ]
}
