{"action":"created","comment":{"url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/comments/102890609","pull_request_review_id":23660194,"id":102890609,"diff_hunk":"@@ -131,7 +136,14 @@ public function changeset_migrate( $limit = -1, $dry_run = false ) {\n \t\t\t\trequire_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );\n \t\t\t}\n \t\t\tforeach ( $query->posts as $id ) {\n-\t\t\t\t$this->migrate_post( $id );\n+\t\t\t\t$success = $this->migrate_post( $id );\n+\t\t\t\tif ( $is_doing_cli ) {\n+\t\t\t\t\tif ( $success ) {\n+\t\t\t\t\t\t\\WP_CLI::success( __( 'Migrated post', 'customize-snapshots' ) . ' ' . $id . '.' );","path":"php/class-migrate.php","position":27,"original_position":27,"commit_id":"ecfd2a5b8ab42f2e963b155ae0583b365f5ed08f","original_commit_id":"ecfd2a5b8ab42f2e963b155ae0583b365f5ed08f","user":{"login":"valendesigns","id":62798,"avatar_url":"https://avatars.githubusercontent.com/u/62798?v=3","gravatar_id":"","url":"https://api.github.com/users/valendesigns","html_url":"https://github.com/valendesigns","followers_url":"https://api.github.com/users/valendesigns/followers","following_url":"https://api.github.com/users/valendesigns/following{/other_user}","gists_url":"https://api.github.com/users/valendesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/valendesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valendesigns/subscriptions","organizations_url":"https://api.github.com/users/valendesigns/orgs","repos_url":"https://api.github.com/users/valendesigns/repos","events_url":"https://api.github.com/users/valendesigns/events{/privacy}","received_events_url":"https://api.github.com/users/valendesigns/received_events","type":"User","site_admin":false},"body":"Change to:\r\n```\r\n\\WP_CLI::success( sprintf( __( 'Migrated post %s.', 'customize-snapshots' ), $id ) );\r\n```","created_at":"2017-02-24T07:24:15Z","updated_at":"2017-02-24T07:25:22Z","html_url":"https://github.com/xwp/wp-customize-snapshots/pull/119#discussion_r102890609","pull_request_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/comments/102890609"},"html":{"href":"https://github.com/xwp/wp-customize-snapshots/pull/119#discussion_r102890609"},"pull_request":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119","id":107778362,"html_url":"https://github.com/xwp/wp-customize-snapshots/pull/119","diff_url":"https://github.com/xwp/wp-customize-snapshots/pull/119.diff","patch_url":"https://github.com/xwp/wp-customize-snapshots/pull/119.patch","issue_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/119","number":119,"state":"open","locked":false,"title":"Improve migration","user":{"login":"PatelUtkarsh","id":5015489,"avatar_url":"https://avatars.githubusercontent.com/u/5015489?v=3","gravatar_id":"","url":"https://api.github.com/users/PatelUtkarsh","html_url":"https://github.com/PatelUtkarsh","followers_url":"https://api.github.com/users/PatelUtkarsh/followers","following_url":"https://api.github.com/users/PatelUtkarsh/following{/other_user}","gists_url":"https://api.github.com/users/PatelUtkarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/PatelUtkarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatelUtkarsh/subscriptions","organizations_url":"https://api.github.com/users/PatelUtkarsh/orgs","repos_url":"https://api.github.com/users/PatelUtkarsh/repos","events_url":"https://api.github.com/users/PatelUtkarsh/events{/privacy}","received_events_url":"https://api.github.com/users/PatelUtkarsh/received_events","type":"User","site_admin":false},"body":"change wp_update_post to update via $wpdb to skip extra hooks,\r\nchange ajax limit to 5 to avoid large snapshot migration timeouts,\r\nimprove migration verbosity.","created_at":"2017-02-24T07:08:25Z","updated_at":"2017-02-24T07:25:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4037b131cf92e9d83cb649f14cc6405f6efc93f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119/commits","review_comments_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119/comments","review_comment_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/119/comments","statuses_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/statuses/ecfd2a5b8ab42f2e963b155ae0583b365f5ed08f","head":{"label":"xwp:improve/migration","ref":"improve/migration","sha":"ecfd2a5b8ab42f2e963b155ae0583b365f5ed08f","user":{"login":"xwp","id":9003139,"avatar_url":"https://avatars.githubusercontent.com/u/9003139?v=3","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"repo":{"id":45574788,"name":"wp-customize-snapshots","full_name":"xwp/wp-customize-snapshots","owner":{"login":"xwp","id":9003139,"avatar_url":"https://avatars.githubusercontent.com/u/9003139?v=3","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwp/wp-customize-snapshots","description":"Customize Snapshots WordPress Plugin","fork":false,"url":"https://api.github.com/repos/xwp/wp-customize-snapshots","forks_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/forks","keys_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/teams","hooks_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/hooks","issue_events_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/events{/number}","events_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/events","assignees_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/assignees{/user}","branches_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/branches{/branch}","tags_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/tags","blobs_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/statuses/{sha}","languages_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/languages","stargazers_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/stargazers","contributors_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/contributors","subscribers_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/subscribers","subscription_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/subscription","commits_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/contents/{+path}","compare_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/merges","archive_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/downloads","issues_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues{/number}","pulls_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls{/number}","milestones_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/milestones{/number}","notifications_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/labels{/name}","releases_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/releases{/id}","deployments_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/deployments","created_at":"2015-11-04T23:42:20Z","updated_at":"2017-01-27T04:18:55Z","pushed_at":"2017-02-24T07:08:26Z","git_url":"git://github.com/xwp/wp-customize-snapshots.git","ssh_url":"git@github.com:xwp/wp-customize-snapshots.git","clone_url":"https://github.com/xwp/wp-customize-snapshots.git","svn_url":"https://github.com/xwp/wp-customize-snapshots","homepage":"https://wordpress.org/plugins/customize-snapshots/","size":1739,"stargazers_count":29,"watchers_count":29,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":32,"forks":4,"open_issues":32,"watchers":29,"default_branch":"develop"}},"base":{"label":"xwp:develop","ref":"develop","sha":"cd5a18f9de3ea61bbf5e40854851c249f84a847a","user":{"login":"xwp","id":9003139,"avatar_url":"https://avatars.githubusercontent.com/u/9003139?v=3","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"repo":{"id":45574788,"name":"wp-customize-snapshots","full_name":"xwp/wp-customize-snapshots","owner":{"login":"xwp","id":9003139,"avatar_url":"https://avatars.githubusercontent.com/u/9003139?v=3","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwp/wp-customize-snapshots","description":"Customize Snapshots WordPress Plugin","fork":false,"url":"https://api.github.com/repos/xwp/wp-customize-snapshots","forks_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/forks","keys_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/teams","hooks_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/hooks","issue_events_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/events{/number}","events_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/events","assignees_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/assignees{/user}","branches_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/branches{/branch}","tags_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/tags","blobs_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/statuses/{sha}","languages_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/languages","stargazers_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/stargazers","contributors_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/contributors","subscribers_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/subscribers","subscription_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/subscription","commits_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/contents/{+path}","compare_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/merges","archive_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/downloads","issues_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues{/number}","pulls_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls{/number}","milestones_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/milestones{/number}","notifications_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/labels{/name}","releases_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/releases{/id}","deployments_url":"https://api.github.com/repos/xwp/wp-customize-snapshots/deployments","created_at":"2015-11-04T23:42:20Z","updated_at":"2017-01-27T04:18:55Z","pushed_at":"2017-02-24T07:08:26Z","git_url":"git://github.com/xwp/wp-customize-snapshots.git","ssh_url":"git@github.com:xwp/wp-customize-snapshots.git","clone_url":"https://github.com/xwp/wp-customize-snapshots.git","svn_url":"https://github.com/xwp/wp-customize-snapshots","homepage":"https://wordpress.org/plugins/customize-snapshots/","size":1739,"stargazers_count":29,"watchers_count":29,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":32,"forks":4,"open_issues":32,"watchers":29,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119"},"html":{"href":"https://github.com/xwp/wp-customize-snapshots/pull/119"},"issue":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/119"},"comments":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/xwp/wp-customize-snapshots/statuses/ecfd2a5b8ab42f2e963b155ae0583b365f5ed08f"}}}}
{"actor":{"display_login":"valendesigns"}}