)]}'
{
  "commit": "52cd6d592363bf6ffd3b745044bdfd6aab980973",
  "tree": "c55961cb975603669114fe57f2004f7fd8afbadb",
  "parents": [
    "9a40741d4d67bd30122d2da8f7d9d58747dc22d7"
  ],
  "author": {
    "name": "Alon Bar-Lev",
    "email": "alon.barlev@gmail.com",
    "time": "Thu Jul 21 11:50:11 2022 +0300"
  },
  "committer": {
    "name": "Alon Bar-Lev",
    "email": "alon.barlev@gmail.com",
    "time": "Thu Sep 15 09:01:54 2022 +0300"
  },
  "message": "workflow: add invoke-issue-restapi and invoke-project-restapi actions\n\nThe invoke-issue-restapi invokes RestAPI on the issue, it uses soy\ntemplate to generate the request.\n\n   action \u003d invoke-issue-restapi method uri passCodes template\n\nThe invoke-project-restapi is similar but invokes project method.\n\nThese commands enables advanced integration with most of JIRA features.\n\nFor example if you would like to create a link in issues to review, use\nthe following action:\n\n  action \u003d invoke-issue-restapi POST /remotelink 200,201 link\n\nWith the follwing `its/templates/link.soy` template:\n\n  {namespace etc.its.templates}\n  {template .link}\n    {@param changeUrl: string}\n    {@param subject: string}\n    {@param status: string}\n  {lb}\n    \"globalId\": \"{$changeUrl}\",\n    \"application\": {lb}\n      \"type\": \"com.googlesource.gerrit\",\n      \"name\": \"Gerrit\"\n    {rb},\n    \"object\": {lb}\n      \"url\": \"{$changeUrl}\",\n      \"title\": \"{$subject}\",\n      \"icon\": {lb}\n        \"url16x16\": \"https://www.gerritcodereview.com/images/diffy_logo.png\",\n        \"title\": \"Review\"\n      {rb},\n      \"status\": {lb}\n        {switch $status}\n          {case null}\n            \"resolved\": false\n          {case \u0027NEW\u0027}\n            \"resolved\": false\n          {case \u0027SUBMITTED\u0027}\n            \"resolved\": false\n          {case \u0027MERGED\u0027}\n            \"resolved\": true\n          {case \u0027ABANDONED\u0027}\n            \"resolved\": true\n        {/switch}\n      {rb}\n    {rb}\n  {rb}\n  {/template}\n\nChange-Id: I617c110764d48ed9dd2162c5414945e0d7b9d90c\nSigned-off-by: Alon Bar-Lev \u003calon.barlev@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5544df26a76c6bb7e82dbca92615234e3e360aeb",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/JiraClient.java",
      "new_id": "7c1c35d868683bef23a67cc09627ab09e64026dd",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/JiraClient.java"
    },
    {
      "type": "modify",
      "old_id": "3d594583b6424252ae0dbe29305039e88562f33e",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/JiraModule.java",
      "new_id": "4cdda87f8f2c704ef77017b076d85d8ba6bfde0a",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/JiraModule.java"
    },
    {
      "type": "modify",
      "old_id": "bcd10a59eae8910ce26e34d2d3fa80e170c31a27",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/restapi/JiraRestApi.java",
      "new_id": "c24ff499aa58c3c2e219b56aad756afc523b5e1e",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/restapi/JiraRestApi.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f798d64eac0ba155f729fccae40bcc77efd074d1",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/workflow/InvokeIssueRestAPI.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c2cec94dc632d6e8f9f9eaa58cfd67cf3aad4651",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/workflow/InvokeProjectRestAPI.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ce5313af5a0a69e81635265ed2d53f1d262cc67c",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/workflow/InvokeRestAPIParameters.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b99141e196b7e209c17c3820408a625d9ab00abb",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/workflow/InvokeRestAPIParametersExtractor.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3463be876b1e1da7eb3fa0975d4b2fd72d75f290",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/jira/workflow/SoyTemplateRenderer.java"
    },
    {
      "type": "modify",
      "old_id": "4827dfdc1c4082aaf4200911408706b3f2b661e5",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/config.md",
      "new_id": "cb34003e374e85a3aff1e9c846b86676d1d09f0b",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/config.md"
    }
  ]
}
