GitHub PullRequestReviewCommentEvent at 2014-11-30 22:36:43
Repository: wp-cli
Actor: danielbachhuber
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments/21064189","id":21064189,"diff_hunk":"@@ -0,0 +1,86 @@\n+Feature: Manage post term\n+\n+  Scenario: Postterm CRUD\n+    Given a WP install\n+\n+    When I run `wp post term add 1 category foo`\n+    Then STDOUT should be:\n+      \"\"\"\n+      Success: Added term.\n+      \"\"\"\n+\n+    When I run `wp post term list 1 category --fields=name,slug,taxonomy`\n+    Then STDOUT should be a table containing rows:\n+      | name | slug | taxonomy |\n+      | foo  | foo  | category |\n+\n+    When I run `wp post term add 1 category bar`\n+    Then STDOUT should be:\n+      \"\"\"\n+      Success: Added term.\n+      \"\"\"\n+\n+    When I run `wp post term list 1 category --fields=name,slug,taxonomy`\n+    Then STDOUT should be a table containing rows:\n+      | name | slug | taxonomy |\n+      | foo  | foo  | category |\n+      | bar  | bar  | category |\n+\n+    When I run `wp post term set 1 category new`\n+    Then STDOUT should be:\n+      \"\"\"\n+      Success: Set terms.\n+      \"\"\"\n+\n+    When I run `wp post term list 1 category --fields=name,slug,taxonomy`\n+    Then STDOUT should be a table containing rows:\n+      | name | slug | taxonomy |\n+      | new  | new  | category |\n+\n+    When I run `wp post term remove 1 category new`\n+    Then STDOUT should be:\n+      \"\"\"\n+      Success: Deleted term.\n+      \"\"\"\n+\n+  Scenario: Multiple post term\n+    Given a WP install\n+\n+    When I run `wp post term add 1 category apple`\n+    And I run `wp post term add 1 category apple`\n+    Then STDOUT should be:\n+      \"\"\"\n+      Success: Added term.\n+      \"\"\"\n+\n+    When I run `wp post term set 1 category 'apple1, apple2'`\n+    Then STDOUT should be:\n+      \"\"\"\n+      Success: Set terms.\n+      \"\"\"\n+\n+    When I run `wp post term list 1 category --fields=name,slug,taxonomy`\n+    Then STDOUT should be a table containing rows:\n+      | name   | slug   | taxonomy |\n+      | apple1 | apple1 | category |\n+      | apple2 | apple2 | category |\n+\n+  Scenario: Invalid Post ID\n+    Given a WP install\n+\n+    When I try `wp post term add 99999 category boo`\n+    Then the return code should be 1\n+    And STDERR should be:\n+      \"\"\"\n+      Error: Could not find the post with ID 99999.\n+\t  \"\"\"","path":"features/post-term.feature","position":76,"original_position":76,"commit_id":"1098d4070e31f5d9dd2b28750fcef8ec0913df5d","original_commit_id":"1098d4070e31f5d9dd2b28750fcef8ec0913df5d","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"body":"Formatting.","created_at":"2014-11-30T22:36:43Z","updated_at":"2014-11-30T22:36:43Z","html_url":"https://github.com/wp-cli/wp-cli/pull/1528#discussion_r21064189","pull_request_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528","_links":{"self":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments/21064189"},"html":{"href":"https://github.com/wp-cli/wp-cli/pull/1528#discussion_r21064189"},"pull_request":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528"}}},"pull_request":{"url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528","id":25240596,"html_url":"https://github.com/wp-cli/wp-cli/pull/1528","diff_url":"https://github.com/wp-cli/wp-cli/pull/1528.diff","patch_url":"https://github.com/wp-cli/wp-cli/pull/1528.patch","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1528","number":1528,"state":"open","locked":false,"title":"Added a CommandWithTerm Class (Version 2)","user":{"login":"spacedmonkey","id":237508,"avatar_url":"https://avatars.githubusercontent.com/u/237508?v=3","gravatar_id":"","url":"https://api.github.com/users/spacedmonkey","html_url":"https://github.com/spacedmonkey","followers_url":"https://api.github.com/users/spacedmonkey/followers","following_url":"https://api.github.com/users/spacedmonkey/following{/other_user}","gists_url":"https://api.github.com/users/spacedmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/spacedmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacedmonkey/subscriptions","organizations_url":"https://api.github.com/users/spacedmonkey/orgs","repos_url":"https://api.github.com/users/spacedmonkey/repos","events_url":"https://api.github.com/users/spacedmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/spacedmonkey/received_events","type":"User","site_admin":false},"body":"Added new subcommands wp user term and wp post term. \r\n\r\nCreated a new pull request to follow contribution guide lines. \r\n\r\nRelated #1474 ","created_at":"2014-11-30T22:17:47Z","updated_at":"2014-11-30T22:36:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7306080eaf1415ea21ea6b8e92ec829505768997","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528/commits","review_comments_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528/comments","review_comment_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1528/comments","statuses_url":"https://api.github.com/repos/wp-cli/wp-cli/statuses/1098d4070e31f5d9dd2b28750fcef8ec0913df5d","head":{"label":"spacedmonkey:commandwithterms","ref":"commandwithterms","sha":"1098d4070e31f5d9dd2b28750fcef8ec0913df5d","user":{"login":"spacedmonkey","id":237508,"avatar_url":"https://avatars.githubusercontent.com/u/237508?v=3","gravatar_id":"","url":"https://api.github.com/users/spacedmonkey","html_url":"https://github.com/spacedmonkey","followers_url":"https://api.github.com/users/spacedmonkey/followers","following_url":"https://api.github.com/users/spacedmonkey/following{/other_user}","gists_url":"https://api.github.com/users/spacedmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/spacedmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacedmonkey/subscriptions","organizations_url":"https://api.github.com/users/spacedmonkey/orgs","repos_url":"https://api.github.com/users/spacedmonkey/repos","events_url":"https://api.github.com/users/spacedmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/spacedmonkey/received_events","type":"User","site_admin":false},"repo":{"id":27349786,"name":"wp-cli","full_name":"spacedmonkey/wp-cli","owner":{"login":"spacedmonkey","id":237508,"avatar_url":"https://avatars.githubusercontent.com/u/237508?v=3","gravatar_id":"","url":"https://api.github.com/users/spacedmonkey","html_url":"https://github.com/spacedmonkey","followers_url":"https://api.github.com/users/spacedmonkey/followers","following_url":"https://api.github.com/users/spacedmonkey/following{/other_user}","gists_url":"https://api.github.com/users/spacedmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/spacedmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacedmonkey/subscriptions","organizations_url":"https://api.github.com/users/spacedmonkey/orgs","repos_url":"https://api.github.com/users/spacedmonkey/repos","events_url":"https://api.github.com/users/spacedmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/spacedmonkey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spacedmonkey/wp-cli","description":"A command line interface for WordPress","fork":true,"url":"https://api.github.com/repos/spacedmonkey/wp-cli","forks_url":"https://api.github.com/repos/spacedmonkey/wp-cli/forks","keys_url":"https://api.github.com/repos/spacedmonkey/wp-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spacedmonkey/wp-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spacedmonkey/wp-cli/teams","hooks_url":"https://api.github.com/repos/spacedmonkey/wp-cli/hooks","issue_events_url":"https://api.github.com/repos/spacedmonkey/wp-cli/issues/events{/number}","events_url":"https://api.github.com/repos/spacedmonkey/wp-cli/events","assignees_url":"https://api.github.com/repos/spacedmonkey/wp-cli/assignees{/user}","branches_url":"https://api.github.com/repos/spacedmonkey/wp-cli/branches{/branch}","tags_url":"https://api.github.com/repos/spacedmonkey/wp-cli/tags","blobs_url":"https://api.github.com/repos/spacedmonkey/wp-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spacedmonkey/wp-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spacedmonkey/wp-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/spacedmonkey/wp-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spacedmonkey/wp-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/spacedmonkey/wp-cli/languages","stargazers_url":"https://api.github.com/repos/spacedmonkey/wp-cli/stargazers","contributors_url":"https://api.github.com/repos/spacedmonkey/wp-cli/contributors","subscribers_url":"https://api.github.com/repos/spacedmonkey/wp-cli/subscribers","subscription_url":"https://api.github.com/repos/spacedmonkey/wp-cli/subscription","commits_url":"https://api.github.com/repos/spacedmonkey/wp-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/spacedmonkey/wp-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/spacedmonkey/wp-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/spacedmonkey/wp-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/spacedmonkey/wp-cli/contents/{+path}","compare_url":"https://api.github.com/repos/spacedmonkey/wp-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spacedmonkey/wp-cli/merges","archive_url":"https://api.github.com/repos/spacedmonkey/wp-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spacedmonkey/wp-cli/downloads","issues_url":"https://api.github.com/repos/spacedmonkey/wp-cli/issues{/number}","pulls_url":"https://api.github.com/repos/spacedmonkey/wp-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/spacedmonkey/wp-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/spacedmonkey/wp-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spacedmonkey/wp-cli/labels{/name}","releases_url":"https://api.github.com/repos/spacedmonkey/wp-cli/releases{/id}","created_at":"2014-11-30T20:57:31Z","updated_at":"2014-11-30T20:57:32Z","pushed_at":"2014-11-30T22:12:37Z","git_url":"git://github.com/spacedmonkey/wp-cli.git","ssh_url":"git@github.com:spacedmonkey/wp-cli.git","clone_url":"https://github.com/spacedmonkey/wp-cli.git","svn_url":"https://github.com/spacedmonkey/wp-cli","homepage":"http://wp-cli.org/","size":26276,"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":"wp-cli:master","ref":"master","sha":"f4ae961afc89e113b1bfad3a7f7807b0d7206137","user":{"login":"wp-cli","id":1570774,"avatar_url":"https://avatars.githubusercontent.com/u/1570774?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-cli","html_url":"https://github.com/wp-cli","followers_url":"https://api.github.com/users/wp-cli/followers","following_url":"https://api.github.com/users/wp-cli/following{/other_user}","gists_url":"https://api.github.com/users/wp-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-cli/subscriptions","organizations_url":"https://api.github.com/users/wp-cli/orgs","repos_url":"https://api.github.com/users/wp-cli/repos","events_url":"https://api.github.com/users/wp-cli/events{/privacy}","received_events_url":"https://api.github.com/users/wp-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":2360755,"name":"wp-cli","full_name":"wp-cli/wp-cli","owner":{"login":"wp-cli","id":1570774,"avatar_url":"https://avatars.githubusercontent.com/u/1570774?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-cli","html_url":"https://github.com/wp-cli","followers_url":"https://api.github.com/users/wp-cli/followers","following_url":"https://api.github.com/users/wp-cli/following{/other_user}","gists_url":"https://api.github.com/users/wp-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-cli/subscriptions","organizations_url":"https://api.github.com/users/wp-cli/orgs","repos_url":"https://api.github.com/users/wp-cli/repos","events_url":"https://api.github.com/users/wp-cli/events{/privacy}","received_events_url":"https://api.github.com/users/wp-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wp-cli/wp-cli","description":"A command line interface for WordPress","fork":false,"url":"https://api.github.com/repos/wp-cli/wp-cli","forks_url":"https://api.github.com/repos/wp-cli/wp-cli/forks","keys_url":"https://api.github.com/repos/wp-cli/wp-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-cli/wp-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-cli/wp-cli/teams","hooks_url":"https://api.github.com/repos/wp-cli/wp-cli/hooks","issue_events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/events{/number}","events_url":"https://api.github.com/repos/wp-cli/wp-cli/events","assignees_url":"https://api.github.com/repos/wp-cli/wp-cli/assignees{/user}","branches_url":"https://api.github.com/repos/wp-cli/wp-cli/branches{/branch}","tags_url":"https://api.github.com/repos/wp-cli/wp-cli/tags","blobs_url":"https://api.github.com/repos/wp-cli/wp-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-cli/wp-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-cli/wp-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-cli/wp-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-cli/wp-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-cli/wp-cli/languages","stargazers_url":"https://api.github.com/repos/wp-cli/wp-cli/stargazers","contributors_url":"https://api.github.com/repos/wp-cli/wp-cli/contributors","subscribers_url":"https://api.github.com/repos/wp-cli/wp-cli/subscribers","subscription_url":"https://api.github.com/repos/wp-cli/wp-cli/subscription","commits_url":"https://api.github.com/repos/wp-cli/wp-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-cli/wp-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/wp-cli/wp-cli/contents/{+path}","compare_url":"https://api.github.com/repos/wp-cli/wp-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-cli/wp-cli/merges","archive_url":"https://api.github.com/repos/wp-cli/wp-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-cli/wp-cli/downloads","issues_url":"https://api.github.com/repos/wp-cli/wp-cli/issues{/number}","pulls_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-cli/wp-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-cli/wp-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/labels{/name}","releases_url":"https://api.github.com/repos/wp-cli/wp-cli/releases{/id}","created_at":"2011-09-10T12:51:59Z","updated_at":"2014-11-30T15:20:32Z","pushed_at":"2014-11-28T19:14:53Z","git_url":"git://github.com/wp-cli/wp-cli.git","ssh_url":"git@github.com:wp-cli/wp-cli.git","clone_url":"https://github.com/wp-cli/wp-cli.git","svn_url":"https://github.com/wp-cli/wp-cli","homepage":"http://wp-cli.org/","size":26276,"stargazers_count":1723,"watchers_count":1723,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":362,"mirror_url":null,"open_issues_count":134,"forks":362,"open_issues":134,"watchers":1723,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528"},"html":{"href":"https://github.com/wp-cli/wp-cli/pull/1528"},"issue":{"href":"https://api.github.com/repos/wp-cli/wp-cli/issues/1528"},"comments":{"href":"https://api.github.com/repos/wp-cli/wp-cli/issues/1528/comments"},"review_comments":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528/comments"},"review_comment":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1528/commits"},"statuses":{"href":"https://api.github.com/repos/wp-cli/wp-cli/statuses/1098d4070e31f5d9dd2b28750fcef8ec0913df5d"}}}}