)]}'
{
  "commit": "48e36fe7ed0693de0f5ab3a866119f86357b5fa1",
  "tree": "911bdb295857a68c9415135cb63a3323765e6149",
  "parents": [
    "943b365fe9b8e1a37859ffd7e5f4c8b85d2043ea"
  ],
  "author": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Mon Aug 05 08:14:59 2024 +0000"
  },
  "committer": {
    "name": "Edwin Kempin",
    "email": "ekempin@google.com",
    "time": "Tue Aug 06 08:57:15 2024 +0000"
  },
  "message": "Add a basic screen to invoke the Check Code Owner REST endpoint\n\nIt happens frequently that users have questions about code owners, e.g.\nwhy a certain user is or isn\u0027t a code owner of a certain file. In this\ncase admins can use the Check Code Owner REST endpoint to get insights\ninto the code owner computation.\n\nInvoking the Check Code Owner REST endpoint is a bit cumbersome though\nand hence takes more time than it should:\n\n* one needs to lookup the URL from the documentation and then assemble\n  the URL manually\n* identifiers in the URL (e.g. project names and files names) need to be\n  URL-encoded\n* to make the JSON output readable pretty-printing (pp\u003d1) should be\n  requested\n* one needs to know how to call the REST endpoint with authentication\n  (e.g. through curl or by opening the URL in the browser)\n\nTo simplify this we add a very basic screen with a form that allows to\ncall the Check Code Owner REST endpoint from the UI. This form takes\ncare of the pain-points above and also provides links to the\ndocumentation.\n\nThe new screen is available at:\n\u003cGERRIT_URL\u003e/x/code-owners/check-code-owner\n\nScreenshot: https://i.imgur.com/6CFDFpH.png\n\nThe implementation of the screen followed the example of the service\nuser creation screen from the serviceuser plugin:\nhttps://gerrit.googlesource.com/plugins/serviceuser/+/master/web/gr-serviceuser-create.ts\n\nBug: Google b/345161989\nChange-Id: I25cff9f08ee3c8eb3a11dc4cd2d262fc8be1a6e3\nSigned-off-by: Edwin Kempin \u003cekempin@google.com\u003e\nReviewed-on: https://gerrit-review.googlesource.com/c/plugins/code-owners/+/434457\nTested-by: Zuul \u003czuul-63@gerritcodereview-ci.iam.gserviceaccount.com\u003e\nReviewed-by: Kamil Musin \u003ckamilm@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cba304f301ea6bf9859c848212f8d32de007b7ec",
      "new_mode": 33188,
      "new_path": "web/gr-check-code-owner.ts"
    },
    {
      "type": "modify",
      "old_id": "9270544a65cd1568094dba8511521017fe28e41d",
      "old_mode": 33188,
      "old_path": "web/plugin.ts",
      "new_id": "2e26843f2210ac83167a04b99470d54442175411",
      "new_mode": 33188,
      "new_path": "web/plugin.ts"
    }
  ]
}
