{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/demo_apps/pulls/comments/91015905","pull_request_review_id":11526693,"id":91015905,"diff_hunk":"@@ -0,0 +1,37 @@\n+<html>\n+<body>\n+  <script type=\"text/javascript\" src=\"https://assets.zendesk.com/apps/sdk/2.0/zaf_sdk.js\"></script>\n+  <script>\n+    // Initialise the Zendesk JavaScript API client\n+    var client = ZAFClient.init();\n+\n+    function commentTemplate(currentUser, requester, lineBreak) {\n+      return 'Hi ' + currentUser + ',' + lineBreak + lineBreak + 'Kind regards,' + lineBreak + requester;\n+    }\n+\n+    // instance.created fires whenever an instance of your app is created\n+    client.on('instance.created', function(context) {\n+      // handle all ticket_sidebar instances\n+      if (context.location === 'ticket_sidebar') {","path":"v2/support/instances_sample_app/assets/iframe.html","position":15,"original_position":15,"commit_id":"05b4c457ef0de71008f060d2d19c36b7c669ab57","original_commit_id":"05b4c457ef0de71008f060d2d19c36b7c669ab57","user":{"login":"danielbreves","id":2517811,"avatar_url":"https://avatars.githubusercontent.com/u/2517811?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbreves","html_url":"https://github.com/danielbreves","followers_url":"https://api.github.com/users/danielbreves/followers","following_url":"https://api.github.com/users/danielbreves/following{/other_user}","gists_url":"https://api.github.com/users/danielbreves/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbreves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbreves/subscriptions","organizations_url":"https://api.github.com/users/danielbreves/orgs","repos_url":"https://api.github.com/users/danielbreves/repos","events_url":"https://api.github.com/users/danielbreves/events{/privacy}","received_events_url":"https://api.github.com/users/danielbreves/received_events","type":"User","site_admin":false},"body":"I was going to, but then I get an error on `get('ticket.requester.name')`, I'd also probably need to handle the template differently in case there's no requester.","created_at":"2016-12-06T05:52:12Z","updated_at":"2016-12-06T05:52:12Z","html_url":"https://github.com/zendesk/demo_apps/pull/85#discussion_r91015905","pull_request_url":"https://api.github.com/repos/zendesk/demo_apps/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/zendesk/demo_apps/pulls/comments/91015905"},"html":{"href":"https://github.com/zendesk/demo_apps/pull/85#discussion_r91015905"},"pull_request":{"href":"https://api.github.com/repos/zendesk/demo_apps/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/demo_apps/pulls/85","id":95634300,"html_url":"https://github.com/zendesk/demo_apps/pull/85","diff_url":"https://github.com/zendesk/demo_apps/pull/85.diff","patch_url":"https://github.com/zendesk/demo_apps/pull/85.patch","issue_url":"https://api.github.com/repos/zendesk/demo_apps/issues/85","number":85,"state":"open","locked":false,"title":"Add Instances API demo app","user":{"login":"danielbreves","id":2517811,"avatar_url":"https://avatars.githubusercontent.com/u/2517811?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbreves","html_url":"https://github.com/danielbreves","followers_url":"https://api.github.com/users/danielbreves/followers","following_url":"https://api.github.com/users/danielbreves/following{/other_user}","gists_url":"https://api.github.com/users/danielbreves/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbreves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbreves/subscriptions","organizations_url":"https://api.github.com/users/danielbreves/orgs","repos_url":"https://api.github.com/users/danielbreves/repos","events_url":"https://api.github.com/users/danielbreves/events{/privacy}","received_events_url":"https://api.github.com/users/danielbreves/received_events","type":"User","site_admin":false},"body":":v:\r\n\r\n⛔️  **_Depends on https://github.com/zendesk/zendesk_apps_support/pull/142_**\r\n\r\n/cc @zendesk/vegemite","created_at":"2016-11-29T06:35:58Z","updated_at":"2016-12-06T05:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6972a3afb32742babc4016af58b9edc14c12345","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/demo_apps/pulls/85/commits","review_comments_url":"https://api.github.com/repos/zendesk/demo_apps/pulls/85/comments","review_comment_url":"https://api.github.com/repos/zendesk/demo_apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/demo_apps/issues/85/comments","statuses_url":"https://api.github.com/repos/zendesk/demo_apps/statuses/05b4c457ef0de71008f060d2d19c36b7c669ab57","head":{"label":"zendesk:daniel/instances-api","ref":"daniel/instances-api","sha":"05b4c457ef0de71008f060d2d19c36b7c669ab57","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":14788239,"name":"demo_apps","full_name":"zendesk/demo_apps","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/demo_apps","description":null,"fork":false,"url":"https://api.github.com/repos/zendesk/demo_apps","forks_url":"https://api.github.com/repos/zendesk/demo_apps/forks","keys_url":"https://api.github.com/repos/zendesk/demo_apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/demo_apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/demo_apps/teams","hooks_url":"https://api.github.com/repos/zendesk/demo_apps/hooks","issue_events_url":"https://api.github.com/repos/zendesk/demo_apps/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/demo_apps/events","assignees_url":"https://api.github.com/repos/zendesk/demo_apps/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/demo_apps/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/demo_apps/tags","blobs_url":"https://api.github.com/repos/zendesk/demo_apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/demo_apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/demo_apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/demo_apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/demo_apps/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/demo_apps/languages","stargazers_url":"https://api.github.com/repos/zendesk/demo_apps/stargazers","contributors_url":"https://api.github.com/repos/zendesk/demo_apps/contributors","subscribers_url":"https://api.github.com/repos/zendesk/demo_apps/subscribers","subscription_url":"https://api.github.com/repos/zendesk/demo_apps/subscription","commits_url":"https://api.github.com/repos/zendesk/demo_apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/demo_apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/demo_apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/demo_apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/demo_apps/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/demo_apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/demo_apps/merges","archive_url":"https://api.github.com/repos/zendesk/demo_apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/demo_apps/downloads","issues_url":"https://api.github.com/repos/zendesk/demo_apps/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/demo_apps/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/demo_apps/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/demo_apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/demo_apps/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/demo_apps/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/demo_apps/deployments","created_at":"2013-11-28T22:56:01Z","updated_at":"2016-11-29T08:24:47Z","pushed_at":"2016-12-06T05:31:16Z","git_url":"git://github.com/zendesk/demo_apps.git","ssh_url":"git@github.com:zendesk/demo_apps.git","clone_url":"https://github.com/zendesk/demo_apps.git","svn_url":"https://github.com/zendesk/demo_apps","homepage":null,"size":3689,"stargazers_count":94,"watchers_count":94,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":3,"forks":175,"open_issues":3,"watchers":94,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"0c6a3f1509dbce6b7714472d3a27140434454c79","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":14788239,"name":"demo_apps","full_name":"zendesk/demo_apps","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/demo_apps","description":null,"fork":false,"url":"https://api.github.com/repos/zendesk/demo_apps","forks_url":"https://api.github.com/repos/zendesk/demo_apps/forks","keys_url":"https://api.github.com/repos/zendesk/demo_apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/demo_apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/demo_apps/teams","hooks_url":"https://api.github.com/repos/zendesk/demo_apps/hooks","issue_events_url":"https://api.github.com/repos/zendesk/demo_apps/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/demo_apps/events","assignees_url":"https://api.github.com/repos/zendesk/demo_apps/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/demo_apps/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/demo_apps/tags","blobs_url":"https://api.github.com/repos/zendesk/demo_apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/demo_apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/demo_apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/demo_apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/demo_apps/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/demo_apps/languages","stargazers_url":"https://api.github.com/repos/zendesk/demo_apps/stargazers","contributors_url":"https://api.github.com/repos/zendesk/demo_apps/contributors","subscribers_url":"https://api.github.com/repos/zendesk/demo_apps/subscribers","subscription_url":"https://api.github.com/repos/zendesk/demo_apps/subscription","commits_url":"https://api.github.com/repos/zendesk/demo_apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/demo_apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/demo_apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/demo_apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/demo_apps/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/demo_apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/demo_apps/merges","archive_url":"https://api.github.com/repos/zendesk/demo_apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/demo_apps/downloads","issues_url":"https://api.github.com/repos/zendesk/demo_apps/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/demo_apps/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/demo_apps/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/demo_apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/demo_apps/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/demo_apps/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/demo_apps/deployments","created_at":"2013-11-28T22:56:01Z","updated_at":"2016-11-29T08:24:47Z","pushed_at":"2016-12-06T05:31:16Z","git_url":"git://github.com/zendesk/demo_apps.git","ssh_url":"git@github.com:zendesk/demo_apps.git","clone_url":"https://github.com/zendesk/demo_apps.git","svn_url":"https://github.com/zendesk/demo_apps","homepage":null,"size":3689,"stargazers_count":94,"watchers_count":94,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":3,"forks":175,"open_issues":3,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/demo_apps/pulls/85"},"html":{"href":"https://github.com/zendesk/demo_apps/pull/85"},"issue":{"href":"https://api.github.com/repos/zendesk/demo_apps/issues/85"},"comments":{"href":"https://api.github.com/repos/zendesk/demo_apps/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/demo_apps/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/demo_apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/demo_apps/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/demo_apps/statuses/05b4c457ef0de71008f060d2d19c36b7c669ab57"}}}}
{"actor":{"display_login":"danielbreves"}}