{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-article/pulls/comments/50697191","id":50697191,"diff_hunk":"@@ -12,4 +12,25 @@\n         </div>\n     </xsl:template>\n \n+    <xsl:template match=\"p[a[contains(@href, 'youtube.com/watch') and string-length(text()) = 0]]\">\n+        <xsl:apply-templates select=\"a\" />\n+    </xsl:template>\n+\n+    <xsl:template match=\"a[contains(@href, 'youtube.com/watch') and string-length(text()) = 0]\">\n+        <xsl:variable name=\"videoId\">\n+            <xsl:choose>\n+                <xsl:when test=\"contains(@href, '&amp;')\">\n+                    <xsl:value-of select=\"substring-before(substring-after(@href, 'v='), '&amp;')\" />\n+                </xsl:when>\n+                <xsl:otherwise>\n+                    <xsl:value-of select=\"substring-after(@href, 'v=')\" />\n+                </xsl:otherwise>\n+            </xsl:choose>\n+        </xsl:variable>\n+\n+        <div class=\"article__video-wrapper\">\n+            <iframe width=\"560\" height=\"315\" frameborder=\"0\" src=\"https://www.youtube.com/embed/{$videoId}\"></iframe>","path":"server/stylesheets/video.xsl","position":21,"original_position":21,"commit_id":"9f609ea8fbdcb4e1711eb9e3c99835b6e7a54570","original_commit_id":"9f609ea8fbdcb4e1711eb9e3c99835b6e7a54570","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"is this safe, from a responsive perspective?  maybe `width=\"100%\"`?","created_at":"2016-01-25T14:13:04Z","updated_at":"2016-01-25T14:13:04Z","html_url":"https://github.com/Financial-Times/next-article/pull/1217#discussion_r50697191","pull_request_url":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-article/pulls/comments/50697191"},"html":{"href":"https://github.com/Financial-Times/next-article/pull/1217#discussion_r50697191"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217","id":57075137,"html_url":"https://github.com/Financial-Times/next-article/pull/1217","diff_url":"https://github.com/Financial-Times/next-article/pull/1217.diff","patch_url":"https://github.com/Financial-Times/next-article/pull/1217.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-article/issues/1217","number":1217,"state":"open","locked":false,"title":"Add a transform to swap empty YouTube links to iframe embeds.","user":{"login":"i-like-robots","id":271645,"avatar_url":"https://avatars.githubusercontent.com/u/271645?v=3","gravatar_id":"","url":"https://api.github.com/users/i-like-robots","html_url":"https://github.com/i-like-robots","followers_url":"https://api.github.com/users/i-like-robots/followers","following_url":"https://api.github.com/users/i-like-robots/following{/other_user}","gists_url":"https://api.github.com/users/i-like-robots/gists{/gist_id}","starred_url":"https://api.github.com/users/i-like-robots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-like-robots/subscriptions","organizations_url":"https://api.github.com/users/i-like-robots/orgs","repos_url":"https://api.github.com/users/i-like-robots/repos","events_url":"https://api.github.com/users/i-like-robots/events{/privacy}","received_events_url":"https://api.github.com/users/i-like-robots/received_events","type":"User","site_admin":false},"body":"Feeling the burn after that XSLT sesh, phew!\r\n\r\n![screen shot 2016-01-25 at 14 06 26](https://cloud.githubusercontent.com/assets/271645/12553010/e8e3aa26-c36c-11e5-8f45-831bef305a7e.png)\r\n","created_at":"2016-01-25T14:07:29Z","updated_at":"2016-01-25T14:13:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83d61f9ed6a8634ff9a19bffe4900edbbe763d9e","assignee":{"login":"andygnewman","id":8938227,"avatar_url":"https://avatars.githubusercontent.com/u/8938227?v=3","gravatar_id":"","url":"https://api.github.com/users/andygnewman","html_url":"https://github.com/andygnewman","followers_url":"https://api.github.com/users/andygnewman/followers","following_url":"https://api.github.com/users/andygnewman/following{/other_user}","gists_url":"https://api.github.com/users/andygnewman/gists{/gist_id}","starred_url":"https://api.github.com/users/andygnewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygnewman/subscriptions","organizations_url":"https://api.github.com/users/andygnewman/orgs","repos_url":"https://api.github.com/users/andygnewman/repos","events_url":"https://api.github.com/users/andygnewman/events{/privacy}","received_events_url":"https://api.github.com/users/andygnewman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-article/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-article/issues/1217/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-article/statuses/9f609ea8fbdcb4e1711eb9e3c99835b6e7a54570","head":{"label":"Financial-Times:matth/xslt-youtube","ref":"matth/xslt-youtube","sha":"9f609ea8fbdcb4e1711eb9e3c99835b6e7a54570","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":26121818,"name":"next-article","full_name":"Financial-Times/next-article","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-article","description":"Articles","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-article","forks_url":"https://api.github.com/repos/Financial-Times/next-article/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-article/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-article/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-article/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-article/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-article/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-article/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-article/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-article/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-article/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-article/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-article/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-article/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-article/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-article/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-article/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-article/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-article/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-article/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-article/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-article/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-article/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-article/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-article/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-article/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-article/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-article/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-article/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-article/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-article/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-article/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-article/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-article/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-article/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-article/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/next-article/deployments","created_at":"2014-11-03T14:22:04Z","updated_at":"2016-01-12T11:52:37Z","pushed_at":"2016-01-25T14:07:29Z","git_url":"git://github.com/Financial-Times/next-article.git","ssh_url":"git@github.com:Financial-Times/next-article.git","clone_url":"https://github.com/Financial-Times/next-article.git","svn_url":"https://github.com/Financial-Times/next-article","homepage":"","size":7866,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":30,"forks":3,"open_issues":30,"watchers":7,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"fde8220709b3d2f6090c3b7161469a8c912d3049","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":26121818,"name":"next-article","full_name":"Financial-Times/next-article","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-article","description":"Articles","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-article","forks_url":"https://api.github.com/repos/Financial-Times/next-article/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-article/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-article/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-article/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-article/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-article/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-article/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-article/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-article/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-article/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-article/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-article/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-article/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-article/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-article/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-article/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-article/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-article/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-article/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-article/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-article/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-article/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-article/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-article/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-article/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-article/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-article/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-article/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-article/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-article/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-article/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-article/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-article/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-article/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-article/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/next-article/deployments","created_at":"2014-11-03T14:22:04Z","updated_at":"2016-01-12T11:52:37Z","pushed_at":"2016-01-25T14:07:29Z","git_url":"git://github.com/Financial-Times/next-article.git","ssh_url":"git@github.com:Financial-Times/next-article.git","clone_url":"https://github.com/Financial-Times/next-article.git","svn_url":"https://github.com/Financial-Times/next-article","homepage":"","size":7866,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":30,"forks":3,"open_issues":30,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217"},"html":{"href":"https://github.com/Financial-Times/next-article/pull/1217"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-article/issues/1217"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-article/issues/1217/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-article/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-article/pulls/1217/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-article/statuses/9f609ea8fbdcb4e1711eb9e3c99835b6e7a54570"}}}}