{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/9","id":32448551,"html_url":"https://github.com/alleyinteractive/rewrite-testing/pull/9","diff_url":"https://github.com/alleyinteractive/rewrite-testing/pull/9.diff","patch_url":"https://github.com/alleyinteractive/rewrite-testing/pull/9.patch","issue_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues/9","number":9,"state":"open","locked":false,"title":"WP-CLI commands","user":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars.githubusercontent.com/u/208434?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"body":"This introduces `wp rewrite test`, with the following subcommands:\r\n\r\n * `wp rewrite test list [--fields=<fields>] [--groups=<groups>] [--format=<format>]`\r\n\r\n    List the available rewrite rule tests.\r\n\r\n * `wp rewrite test run [--fields=<fields>] [--format=<format>]`\r\n\r\n    Run the rewrite tests.\r\n\r\n * `wp rewrite test summary [--format=<format>]`\r\n\r\n    Get a summary of the rewrite test results.\r\n\r\n * `wp rewrite test coverage [--status=<status>] [--format=<format>]`\r\n\r\n    Get a test coverage report for the rewrite rules on the site.\r\n        \r\n * `wp rewrite test passing`\r\n\r\n    Are the rewrite tests passing? (Returns a success / error)\r\n\r\n * `wp rewrite test status`\r\n\r\n    Get the status of the rewrite tests (Returns as Passing / Failing string)\r\n\r\nTwo notes:\r\n\r\n * This branches from the `test-coverage` branch.\r\n * The wonky table layout due to the `%` symbol in the summary command is a [known issue in WP-CLI](https://github.com/wp-cli/wp-cli/issues/1736).\r\n\r\nSome screenshots of results:\r\n\r\n`wp rewrite test list`\r\n![wp rewrite test list](https://cloud.githubusercontent.com/assets/208434/6948671/37004798-d8a7-11e4-8946-6c593806b491.png)\r\n\r\n`wp rewrite test run`\r\n![wp rewrite test run](https://cloud.githubusercontent.com/assets/208434/6948670/36ff0748-d8a7-11e4-95c6-c206adb95eac.png)\r\n\r\n`wp rewrite test coverage`\r\n![wp rewrite test coverage](https://cloud.githubusercontent.com/assets/208434/6948668/36fddc06-d8a7-11e4-8cbb-605205b330b3.png)\r\n\r\n`wp rewrite test summary`\r\n![wp rewrite test summary](https://cloud.githubusercontent.com/assets/208434/6948669/36fe0bfe-d8a7-11e4-9a5f-3ebcdc8bc1fd.png)","created_at":"2015-04-01T18:50:44Z","updated_at":"2015-04-01T18:50:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/9/commits","review_comments_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/9/comments","review_comment_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues/9/comments","statuses_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/statuses/203e11b89f6143403767190bd0cd5faafc8db043","head":{"label":"johnbillion:wp-cli","ref":"wp-cli","sha":"203e11b89f6143403767190bd0cd5faafc8db043","user":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars.githubusercontent.com/u/208434?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"repo":{"id":22181856,"name":"rewrite-testing","full_name":"johnbillion/rewrite-testing","owner":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars.githubusercontent.com/u/208434?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnbillion/rewrite-testing","description":"A WordPress plugin to unit test your rewrite rules","fork":true,"url":"https://api.github.com/repos/johnbillion/rewrite-testing","forks_url":"https://api.github.com/repos/johnbillion/rewrite-testing/forks","keys_url":"https://api.github.com/repos/johnbillion/rewrite-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnbillion/rewrite-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnbillion/rewrite-testing/teams","hooks_url":"https://api.github.com/repos/johnbillion/rewrite-testing/hooks","issue_events_url":"https://api.github.com/repos/johnbillion/rewrite-testing/issues/events{/number}","events_url":"https://api.github.com/repos/johnbillion/rewrite-testing/events","assignees_url":"https://api.github.com/repos/johnbillion/rewrite-testing/assignees{/user}","branches_url":"https://api.github.com/repos/johnbillion/rewrite-testing/branches{/branch}","tags_url":"https://api.github.com/repos/johnbillion/rewrite-testing/tags","blobs_url":"https://api.github.com/repos/johnbillion/rewrite-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnbillion/rewrite-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnbillion/rewrite-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnbillion/rewrite-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnbillion/rewrite-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/johnbillion/rewrite-testing/languages","stargazers_url":"https://api.github.com/repos/johnbillion/rewrite-testing/stargazers","contributors_url":"https://api.github.com/repos/johnbillion/rewrite-testing/contributors","subscribers_url":"https://api.github.com/repos/johnbillion/rewrite-testing/subscribers","subscription_url":"https://api.github.com/repos/johnbillion/rewrite-testing/subscription","commits_url":"https://api.github.com/repos/johnbillion/rewrite-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnbillion/rewrite-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnbillion/rewrite-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnbillion/rewrite-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnbillion/rewrite-testing/contents/{+path}","compare_url":"https://api.github.com/repos/johnbillion/rewrite-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnbillion/rewrite-testing/merges","archive_url":"https://api.github.com/repos/johnbillion/rewrite-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnbillion/rewrite-testing/downloads","issues_url":"https://api.github.com/repos/johnbillion/rewrite-testing/issues{/number}","pulls_url":"https://api.github.com/repos/johnbillion/rewrite-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/johnbillion/rewrite-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/johnbillion/rewrite-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnbillion/rewrite-testing/labels{/name}","releases_url":"https://api.github.com/repos/johnbillion/rewrite-testing/releases{/id}","created_at":"2014-07-23T22:17:12Z","updated_at":"2014-08-12T14:44:16Z","pushed_at":"2015-04-01T18:32:31Z","git_url":"git://github.com/johnbillion/rewrite-testing.git","ssh_url":"git@github.com:johnbillion/rewrite-testing.git","clone_url":"https://github.com/johnbillion/rewrite-testing.git","svn_url":"https://github.com/johnbillion/rewrite-testing","homepage":null,"size":191,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alleyinteractive:master","ref":"master","sha":"1987b41eab9c4e7b3688d93648ef4634a7ce9ccc","user":{"login":"alleyinteractive","id":1733454,"avatar_url":"https://avatars.githubusercontent.com/u/1733454?v=3","gravatar_id":"","url":"https://api.github.com/users/alleyinteractive","html_url":"https://github.com/alleyinteractive","followers_url":"https://api.github.com/users/alleyinteractive/followers","following_url":"https://api.github.com/users/alleyinteractive/following{/other_user}","gists_url":"https://api.github.com/users/alleyinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/alleyinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alleyinteractive/subscriptions","organizations_url":"https://api.github.com/users/alleyinteractive/orgs","repos_url":"https://api.github.com/users/alleyinteractive/repos","events_url":"https://api.github.com/users/alleyinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/alleyinteractive/received_events","type":"Organization","site_admin":false},"repo":{"id":19518576,"name":"rewrite-testing","full_name":"alleyinteractive/rewrite-testing","owner":{"login":"alleyinteractive","id":1733454,"avatar_url":"https://avatars.githubusercontent.com/u/1733454?v=3","gravatar_id":"","url":"https://api.github.com/users/alleyinteractive","html_url":"https://github.com/alleyinteractive","followers_url":"https://api.github.com/users/alleyinteractive/followers","following_url":"https://api.github.com/users/alleyinteractive/following{/other_user}","gists_url":"https://api.github.com/users/alleyinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/alleyinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alleyinteractive/subscriptions","organizations_url":"https://api.github.com/users/alleyinteractive/orgs","repos_url":"https://api.github.com/users/alleyinteractive/repos","events_url":"https://api.github.com/users/alleyinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/alleyinteractive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alleyinteractive/rewrite-testing","description":"A WordPress plugin to unit test your rewrite rules","fork":false,"url":"https://api.github.com/repos/alleyinteractive/rewrite-testing","forks_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/forks","keys_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/teams","hooks_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/hooks","issue_events_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues/events{/number}","events_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/events","assignees_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/assignees{/user}","branches_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/branches{/branch}","tags_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/tags","blobs_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/languages","stargazers_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/stargazers","contributors_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/contributors","subscribers_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/subscribers","subscription_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/subscription","commits_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/contents/{+path}","compare_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/merges","archive_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/downloads","issues_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues{/number}","pulls_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/labels{/name}","releases_url":"https://api.github.com/repos/alleyinteractive/rewrite-testing/releases{/id}","created_at":"2014-05-07T02:36:52Z","updated_at":"2015-02-18T18:10:24Z","pushed_at":"2015-04-01T18:50:44Z","git_url":"git://github.com/alleyinteractive/rewrite-testing.git","ssh_url":"git@github.com:alleyinteractive/rewrite-testing.git","clone_url":"https://github.com/alleyinteractive/rewrite-testing.git","svn_url":"https://github.com/alleyinteractive/rewrite-testing","homepage":null,"size":274,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/9"},"html":{"href":"https://github.com/alleyinteractive/rewrite-testing/pull/9"},"issue":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues/9"},"comments":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/alleyinteractive/rewrite-testing/statuses/203e11b89f6143403767190bd0cd5faafc8db043"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":488,"deletions":1,"changed_files":3}}