{"action":"created","comment":{"url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/comments/134864366","pull_request_review_id":58207997,"id":134864366,"diff_hunk":"@@ -0,0 +1,122 @@\n+<?php\n+\n+namespace WSUWP\\CLI\\Site;\n+use WP_CLI;\n+\n+/**\n+ * WP-CLI command for managing WSUWP sites\n+ *\n+ * @package WSUWP\\CLI\\Site;\n+ */\n+class Command {\n+\t/**\n+\t * Create a new site.\n+\t *\n+\t * ## OPTIONS\n+\t *\n+\t * <site-url>\n+\t * : The domain and path of the new site.\n+\t *\n+\t * <wsu-nid>\n+\t * : The network ID of the first admin for the site.\n+\t *\n+\t * <site-name>\n+\t * : The name of the site.\n+\t *\n+\t * <network-id>\n+\t * : The ID of the network the site should be created under.\n+\t *\n+\t * [--porcelain]\n+\t * : Output just the new user id.","path":"commands/wsuwp-cli-site.php","position":30,"original_position":30,"commit_id":"1b5197174dbff0252498f7b73808008454161bbb","original_commit_id":"1b5197174dbff0252498f7b73808008454161bbb","user":{"login":"philcable","id":6403569,"avatar_url":"https://avatars2.githubusercontent.com/u/6403569?v=4","gravatar_id":"","url":"https://api.github.com/users/philcable","html_url":"https://github.com/philcable","followers_url":"https://api.github.com/users/philcable/followers","following_url":"https://api.github.com/users/philcable/following{/other_user}","gists_url":"https://api.github.com/users/philcable/gists{/gist_id}","starred_url":"https://api.github.com/users/philcable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philcable/subscriptions","organizations_url":"https://api.github.com/users/philcable/orgs","repos_url":"https://api.github.com/users/philcable/repos","events_url":"https://api.github.com/users/philcable/events{/privacy}","received_events_url":"https://api.github.com/users/philcable/received_events","type":"User","site_admin":false},"body":"s/user/site :)","created_at":"2017-08-23T20:38:49Z","updated_at":"2017-08-23T21:03:54Z","html_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI/pull/3#discussion_r134864366","pull_request_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/comments/134864366"},"html":{"href":"https://github.com/washingtonstateuniversity/WSUWP-CLI/pull/3#discussion_r134864366"},"pull_request":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3","id":137300453,"html_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI/pull/3","diff_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI/pull/3.diff","patch_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI/pull/3.patch","issue_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/3","number":3,"state":"open","locked":false,"title":"[PR] Implement `wp wsuwp site create` command","user":{"login":"jeremyfelt","id":286171,"avatar_url":"https://avatars1.githubusercontent.com/u/286171?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremyfelt","html_url":"https://github.com/jeremyfelt","followers_url":"https://api.github.com/users/jeremyfelt/followers","following_url":"https://api.github.com/users/jeremyfelt/following{/other_user}","gists_url":"https://api.github.com/users/jeremyfelt/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyfelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyfelt/subscriptions","organizations_url":"https://api.github.com/users/jeremyfelt/orgs","repos_url":"https://api.github.com/users/jeremyfelt/repos","events_url":"https://api.github.com/users/jeremyfelt/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyfelt/received_events","type":"User","site_admin":false},"body":"This allows us to create sites via WP-CLI that match the custom new site screen we've built for WSUWP.\r\n\r\n`wp wsuwp site create web.wsu.edu/sub-site jeremy.felt@wsu.edu \"Web Sub Site\" 3` creates a new site with the web.wsu.edu/sub-site URL on network ID 3.","created_at":"2017-08-23T19:36:54Z","updated_at":"2017-08-23T21:03:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13dc1f93e9562950bcd64e9bf585df6f6394bcec","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3/commits","review_comments_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3/comments","review_comment_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/3/comments","statuses_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/statuses/1b5197174dbff0252498f7b73808008454161bbb","head":{"label":"washingtonstateuniversity:implement-sites","ref":"implement-sites","sha":"1b5197174dbff0252498f7b73808008454161bbb","user":{"login":"washingtonstateuniversity","id":5225228,"avatar_url":"https://avatars1.githubusercontent.com/u/5225228?v=4","gravatar_id":"","url":"https://api.github.com/users/washingtonstateuniversity","html_url":"https://github.com/washingtonstateuniversity","followers_url":"https://api.github.com/users/washingtonstateuniversity/followers","following_url":"https://api.github.com/users/washingtonstateuniversity/following{/other_user}","gists_url":"https://api.github.com/users/washingtonstateuniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/washingtonstateuniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washingtonstateuniversity/subscriptions","organizations_url":"https://api.github.com/users/washingtonstateuniversity/orgs","repos_url":"https://api.github.com/users/washingtonstateuniversity/repos","events_url":"https://api.github.com/users/washingtonstateuniversity/events{/privacy}","received_events_url":"https://api.github.com/users/washingtonstateuniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":76893986,"name":"WSUWP-CLI","full_name":"washingtonstateuniversity/WSUWP-CLI","owner":{"login":"washingtonstateuniversity","id":5225228,"avatar_url":"https://avatars1.githubusercontent.com/u/5225228?v=4","gravatar_id":"","url":"https://api.github.com/users/washingtonstateuniversity","html_url":"https://github.com/washingtonstateuniversity","followers_url":"https://api.github.com/users/washingtonstateuniversity/followers","following_url":"https://api.github.com/users/washingtonstateuniversity/following{/other_user}","gists_url":"https://api.github.com/users/washingtonstateuniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/washingtonstateuniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washingtonstateuniversity/subscriptions","organizations_url":"https://api.github.com/users/washingtonstateuniversity/orgs","repos_url":"https://api.github.com/users/washingtonstateuniversity/repos","events_url":"https://api.github.com/users/washingtonstateuniversity/events{/privacy}","received_events_url":"https://api.github.com/users/washingtonstateuniversity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI","description":"WP-CLI commands for the WSUWP Platform","fork":false,"url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI","forks_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/forks","keys_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/teams","hooks_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/hooks","issue_events_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/events{/number}","events_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/events","assignees_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/assignees{/user}","branches_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/branches{/branch}","tags_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/tags","blobs_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/refs{/sha}","trees_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/statuses/{sha}","languages_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/languages","stargazers_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/stargazers","contributors_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/contributors","subscribers_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/subscribers","subscription_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/subscription","commits_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/commits{/sha}","git_commits_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/commits{/sha}","comments_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/comments{/number}","issue_comment_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/comments{/number}","contents_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/contents/{+path}","compare_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/merges","archive_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/downloads","issues_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues{/number}","pulls_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls{/number}","milestones_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/milestones{/number}","notifications_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/labels{/name}","releases_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/releases{/id}","deployments_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/deployments","created_at":"2016-12-19T20:15:00Z","updated_at":"2017-08-22T20:45:20Z","pushed_at":"2017-08-23T19:36:55Z","git_url":"git://github.com/washingtonstateuniversity/WSUWP-CLI.git","ssh_url":"git@github.com:washingtonstateuniversity/WSUWP-CLI.git","clone_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI.git","svn_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"washingtonstateuniversity:master","ref":"master","sha":"d1d3f8b512d9dbfbbaff44ffcd4826a9c244c632","user":{"login":"washingtonstateuniversity","id":5225228,"avatar_url":"https://avatars1.githubusercontent.com/u/5225228?v=4","gravatar_id":"","url":"https://api.github.com/users/washingtonstateuniversity","html_url":"https://github.com/washingtonstateuniversity","followers_url":"https://api.github.com/users/washingtonstateuniversity/followers","following_url":"https://api.github.com/users/washingtonstateuniversity/following{/other_user}","gists_url":"https://api.github.com/users/washingtonstateuniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/washingtonstateuniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washingtonstateuniversity/subscriptions","organizations_url":"https://api.github.com/users/washingtonstateuniversity/orgs","repos_url":"https://api.github.com/users/washingtonstateuniversity/repos","events_url":"https://api.github.com/users/washingtonstateuniversity/events{/privacy}","received_events_url":"https://api.github.com/users/washingtonstateuniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":76893986,"name":"WSUWP-CLI","full_name":"washingtonstateuniversity/WSUWP-CLI","owner":{"login":"washingtonstateuniversity","id":5225228,"avatar_url":"https://avatars1.githubusercontent.com/u/5225228?v=4","gravatar_id":"","url":"https://api.github.com/users/washingtonstateuniversity","html_url":"https://github.com/washingtonstateuniversity","followers_url":"https://api.github.com/users/washingtonstateuniversity/followers","following_url":"https://api.github.com/users/washingtonstateuniversity/following{/other_user}","gists_url":"https://api.github.com/users/washingtonstateuniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/washingtonstateuniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washingtonstateuniversity/subscriptions","organizations_url":"https://api.github.com/users/washingtonstateuniversity/orgs","repos_url":"https://api.github.com/users/washingtonstateuniversity/repos","events_url":"https://api.github.com/users/washingtonstateuniversity/events{/privacy}","received_events_url":"https://api.github.com/users/washingtonstateuniversity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI","description":"WP-CLI commands for the WSUWP Platform","fork":false,"url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI","forks_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/forks","keys_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/teams","hooks_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/hooks","issue_events_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/events{/number}","events_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/events","assignees_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/assignees{/user}","branches_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/branches{/branch}","tags_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/tags","blobs_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/refs{/sha}","trees_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/statuses/{sha}","languages_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/languages","stargazers_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/stargazers","contributors_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/contributors","subscribers_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/subscribers","subscription_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/subscription","commits_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/commits{/sha}","git_commits_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/git/commits{/sha}","comments_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/comments{/number}","issue_comment_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/comments{/number}","contents_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/contents/{+path}","compare_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/merges","archive_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/downloads","issues_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues{/number}","pulls_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls{/number}","milestones_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/milestones{/number}","notifications_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/labels{/name}","releases_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/releases{/id}","deployments_url":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/deployments","created_at":"2016-12-19T20:15:00Z","updated_at":"2017-08-22T20:45:20Z","pushed_at":"2017-08-23T19:36:55Z","git_url":"git://github.com/washingtonstateuniversity/WSUWP-CLI.git","ssh_url":"git@github.com:washingtonstateuniversity/WSUWP-CLI.git","clone_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI.git","svn_url":"https://github.com/washingtonstateuniversity/WSUWP-CLI","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3"},"html":{"href":"https://github.com/washingtonstateuniversity/WSUWP-CLI/pull/3"},"issue":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/3"},"comments":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/washingtonstateuniversity/WSUWP-CLI/statuses/1b5197174dbff0252498f7b73808008454161bbb"}}}}
{"actor":{"display_login":"philcable"}}