{"action":"opened","number":29638,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/29638","id":239962600,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5OTYyNjAw","html_url":"https://github.com/Automattic/wp-calypso/pull/29638","diff_url":"https://github.com/Automattic/wp-calypso/pull/29638.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/29638.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/29638","number":29638,"state":"open","locked":false,"title":"Giphy Block","user":{"login":"jeffersonrabb","id":1477002,"node_id":"MDQ6VXNlcjE0NzcwMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1477002?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffersonrabb","html_url":"https://github.com/jeffersonrabb","followers_url":"https://api.github.com/users/jeffersonrabb/followers","following_url":"https://api.github.com/users/jeffersonrabb/following{/other_user}","gists_url":"https://api.github.com/users/jeffersonrabb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffersonrabb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffersonrabb/subscriptions","organizations_url":"https://api.github.com/users/jeffersonrabb/orgs","repos_url":"https://api.github.com/users/jeffersonrabb/repos","events_url":"https://api.github.com/users/jeffersonrabb/events{/privacy}","received_events_url":"https://api.github.com/users/jeffersonrabb/received_events","type":"User","site_admin":false},"body":"#### Changes proposed in this Pull Request\r\n\r\nThe Giphy block is a straightforward integration that allows the user to explicitly specify a Gif by URL or search by keyword. The keyword search is likely to be the most common use. \r\n\r\nNote: the block resizing is based on the approach described in this article https://blog.theodo.fr/2018/01/responsive-iframes-css-trick/\r\n\r\n#### Testing instructions\r\n\r\nJurassic Ninja\r\n- https://jurassic.ninja/create?gutenpack&calypsobranch=try/giphy&branch=try/giphy\r\n- Connect Jetpack\r\n- Navigate to Settings->Jetpack Constants, check `JETPACK_BETA_BLOCKS`, and Save.\r\n\r\n1) Add the block\r\n2) Go to Giphy, find any Gif you like, copy the URL and paste into the block. The gif should show up.\r\n3) Paste in a Giphy URL following this syntax: http://i.giphy.com/4ZFekt94LMhNK.gif. Past the URL into the block. The gif should show up.\r\n4) Type any text in to the search field. DIfferent Gifs should show up for anything you search for. \r\n5) Verify that the text field appears when you click on the block. \r\n6) Verify that the text field disappears after 3.5 seconds of inactivity, unless no search text has been provided in which case it remains visible.\r\n7) Verify caption behaves much like the core Image block.\r\n8) Verify block alignment options all work as expected.\r\n\r\n","created_at":"2018-12-19T20:19:52Z","updated_at":"2018-12-19T20:19:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"jeffersonrabb","id":1477002,"node_id":"MDQ6VXNlcjE0NzcwMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1477002?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffersonrabb","html_url":"https://github.com/jeffersonrabb","followers_url":"https://api.github.com/users/jeffersonrabb/followers","following_url":"https://api.github.com/users/jeffersonrabb/following{/other_user}","gists_url":"https://api.github.com/users/jeffersonrabb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffersonrabb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffersonrabb/subscriptions","organizations_url":"https://api.github.com/users/jeffersonrabb/orgs","repos_url":"https://api.github.com/users/jeffersonrabb/repos","events_url":"https://api.github.com/users/jeffersonrabb/events{/privacy}","received_events_url":"https://api.github.com/users/jeffersonrabb/received_events","type":"User","site_admin":false},"assignees":[{"login":"jeffersonrabb","id":1477002,"node_id":"MDQ6VXNlcjE0NzcwMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1477002?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffersonrabb","html_url":"https://github.com/jeffersonrabb","followers_url":"https://api.github.com/users/jeffersonrabb/followers","following_url":"https://api.github.com/users/jeffersonrabb/following{/other_user}","gists_url":"https://api.github.com/users/jeffersonrabb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffersonrabb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffersonrabb/subscriptions","organizations_url":"https://api.github.com/users/jeffersonrabb/orgs","repos_url":"https://api.github.com/users/jeffersonrabb/repos","events_url":"https://api.github.com/users/jeffersonrabb/events{/privacy}","received_events_url":"https://api.github.com/users/jeffersonrabb/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":967391996,"node_id":"MDU6TGFiZWw5NjczOTE5OTY=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Goal]%20Gutenberg","name":"[Goal] Gutenberg","color":"97f4d2","default":false},{"id":285010018,"node_id":"MDU6TGFiZWwyODUwMTAwMTg=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/29638/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/29638/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/29638/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/631a0c4effd83ac9a37736c23728ef820edadae9","head":{"label":"Automattic:try/giphy","ref":"try/giphy","sha":"631a0c4effd83ac9a37736c23728ef820edadae9","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"node_id":"MDEwOlJlcG9zaXRvcnk0NTkzNjg5NQ==","name":"wp-calypso","full_name":"Automattic/wp-calypso","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-12-19T19:38:01Z","pushed_at":"2018-12-19T20:11:16Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":127297,"stargazers_count":10692,"watchers_count":10692,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1511,"mirror_url":null,"archived":false,"open_issues_count":1762,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1511,"open_issues":1762,"watchers":10692,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"f32fd2d50ec3adcf656a97bc8b61909a0f249e93","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"node_id":"MDEwOlJlcG9zaXRvcnk0NTkzNjg5NQ==","name":"wp-calypso","full_name":"Automattic/wp-calypso","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-12-19T19:38:01Z","pushed_at":"2018-12-19T20:11:16Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":127297,"stargazers_count":10692,"watchers_count":10692,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1511,"mirror_url":null,"archived":false,"open_issues_count":1762,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1511,"open_issues":1762,"watchers":10692,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/29638"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/29638"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/29638"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/29638/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/29638/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/29638/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/631a0c4effd83ac9a37736c23728ef820edadae9"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":14,"additions":373,"deletions":0,"changed_files":10}}
{"actor":{"display_login":"jeffersonrabb"}}