{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/comments/227635194","pull_request_review_id":167721308,"id":227635194,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzYzNTE5NA==","diff_hunk":"@@ -38,6 +38,10 @@ function run_after_data_migration_cleanup() {\n \n \tconnect_jetpack();\n \tconnect_vaultpress();\n+\t\n+\tif ( class_exists( 'Akismet_Admin' ) && method_exists( 'Akismet_Admin', 'connect_jetpack_user' ) ) {\n+\t\tAkismet_Admin::connect_jetpack_user();\n+\t}","path":"vip-helpers/vip-migrations.php","position":7,"original_position":7,"commit_id":"f27649550bb9d4e0d9f215d93993d5ac2205e519","original_commit_id":"f27649550bb9d4e0d9f215d93993d5ac2205e519","user":{"login":"mjangda","id":86105,"node_id":"MDQ6VXNlcjg2MTA1","avatar_url":"https://avatars1.githubusercontent.com/u/86105?v=4","gravatar_id":"","url":"https://api.github.com/users/mjangda","html_url":"https://github.com/mjangda","followers_url":"https://api.github.com/users/mjangda/followers","following_url":"https://api.github.com/users/mjangda/following{/other_user}","gists_url":"https://api.github.com/users/mjangda/gists{/gist_id}","starred_url":"https://api.github.com/users/mjangda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjangda/subscriptions","organizations_url":"https://api.github.com/users/mjangda/orgs","repos_url":"https://api.github.com/users/mjangda/repos","events_url":"https://api.github.com/users/mjangda/events{/privacy}","received_events_url":"https://api.github.com/users/mjangda/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n\t} else {\r\n\t\ttrigger_error( sprintf( '%s: Failed to call `Akismet_Admin::connect_jetpack_user` as it does not exist; Akismet will need to be connected manually', __FUNCTION__ ), E_USER_WARNING );\r\n\t}\r\n```","created_at":"2018-10-24T03:53:32Z","updated_at":"2018-10-24T03:54:10Z","html_url":"https://github.com/Automattic/vip-go-mu-plugins/pull/988#discussion_r227635194","pull_request_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/comments/227635194"},"html":{"href":"https://github.com/Automattic/vip-go-mu-plugins/pull/988#discussion_r227635194"},"pull_request":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988","id":224002674,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MDAyNjc0","html_url":"https://github.com/Automattic/vip-go-mu-plugins/pull/988","diff_url":"https://github.com/Automattic/vip-go-mu-plugins/pull/988.diff","patch_url":"https://github.com/Automattic/vip-go-mu-plugins/pull/988.patch","issue_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/988","number":988,"state":"open","locked":false,"title":"Connect akismet during migration cleanup","user":{"login":"joshbetz","id":300429,"node_id":"MDQ6VXNlcjMwMDQyOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/300429?v=4","gravatar_id":"","url":"https://api.github.com/users/joshbetz","html_url":"https://github.com/joshbetz","followers_url":"https://api.github.com/users/joshbetz/followers","following_url":"https://api.github.com/users/joshbetz/following{/other_user}","gists_url":"https://api.github.com/users/joshbetz/gists{/gist_id}","starred_url":"https://api.github.com/users/joshbetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshbetz/subscriptions","organizations_url":"https://api.github.com/users/joshbetz/orgs","repos_url":"https://api.github.com/users/joshbetz/repos","events_url":"https://api.github.com/users/joshbetz/events{/privacy}","received_events_url":"https://api.github.com/users/joshbetz/received_events","type":"User","site_admin":false},"body":"### Test:\r\n\r\nFirst, in a sandbox:\r\n\r\n```\r\nwp --allow-root cron event schedule vip_after_data_migration\r\n```\r\n\r\nAfter the command has finished, verify Akismet is connected:\r\n\r\n```\r\nwp --allow-root shell\r\nwp> Akismet_Admin::display_status();\r\n<div class=\"akismet-alert akismet-active\">\r\n\t<h3 class=\"akismet-key-status\">Akismet is now protecting your site from spam. Happy blogging!</h3>\r\n\t</div>\r\n```","created_at":"2018-10-18T15:32:38Z","updated_at":"2018-10-24T03:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c371772c7bec4f0fe96c28807fb9e42a4da3bdf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":309838383,"node_id":"MDU6TGFiZWwzMDk4MzgzODM=","url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"d93f0b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988/commits","review_comments_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988/comments","review_comment_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/988/comments","statuses_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/statuses/f27649550bb9d4e0d9f215d93993d5ac2205e519","head":{"label":"Automattic:update/connect-akismet-during-migration","ref":"update/connect-akismet-during-migration","sha":"f27649550bb9d4e0d9f215d93993d5ac2205e519","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":32939693,"node_id":"MDEwOlJlcG9zaXRvcnkzMjkzOTY5Mw==","name":"vip-go-mu-plugins","full_name":"Automattic/vip-go-mu-plugins","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/vip-go-mu-plugins","description":"The development repo for mu-plugins used on the VIP Go platform.","fork":false,"url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins","forks_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/forks","keys_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/teams","hooks_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/hooks","issue_events_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/events","assignees_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/tags","blobs_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/languages","stargazers_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/stargazers","contributors_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/contributors","subscribers_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/subscribers","subscription_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/subscription","commits_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/merges","archive_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/downloads","issues_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/deployments","created_at":"2015-03-26T16:42:46Z","updated_at":"2018-10-23T02:43:04Z","pushed_at":"2018-10-23T02:46:51Z","git_url":"git://github.com/Automattic/vip-go-mu-plugins.git","ssh_url":"git@github.com:Automattic/vip-go-mu-plugins.git","clone_url":"https://github.com/Automattic/vip-go-mu-plugins.git","svn_url":"https://github.com/Automattic/vip-go-mu-plugins","homepage":"https://vip.wordpress.com/documentation/vip-go/","size":49070,"stargazers_count":40,"watchers_count":40,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":122,"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":33,"open_issues":122,"watchers":40,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"ea4fcd9018a3522b8c419fbb74c158ced152611d","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":32939693,"node_id":"MDEwOlJlcG9zaXRvcnkzMjkzOTY5Mw==","name":"vip-go-mu-plugins","full_name":"Automattic/vip-go-mu-plugins","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/vip-go-mu-plugins","description":"The development repo for mu-plugins used on the VIP Go platform.","fork":false,"url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins","forks_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/forks","keys_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/teams","hooks_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/hooks","issue_events_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/events","assignees_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/tags","blobs_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/languages","stargazers_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/stargazers","contributors_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/contributors","subscribers_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/subscribers","subscription_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/subscription","commits_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/merges","archive_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/downloads","issues_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/deployments","created_at":"2015-03-26T16:42:46Z","updated_at":"2018-10-23T02:43:04Z","pushed_at":"2018-10-23T02:46:51Z","git_url":"git://github.com/Automattic/vip-go-mu-plugins.git","ssh_url":"git@github.com:Automattic/vip-go-mu-plugins.git","clone_url":"https://github.com/Automattic/vip-go-mu-plugins.git","svn_url":"https://github.com/Automattic/vip-go-mu-plugins","homepage":"https://vip.wordpress.com/documentation/vip-go/","size":49070,"stargazers_count":40,"watchers_count":40,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":122,"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":33,"open_issues":122,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988"},"html":{"href":"https://github.com/Automattic/vip-go-mu-plugins/pull/988"},"issue":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/988"},"comments":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/issues/988/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/pulls/988/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/vip-go-mu-plugins/statuses/f27649550bb9d4e0d9f215d93993d5ac2205e519"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mjangda"}}