{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/72842864","id":72842864,"diff_hunk":"@@ -1,69 +1,84 @@\n /**\n  * External dependencies\n  */\n-import React, { PropTypes } from 'react';\n-import PureRenderMixin from 'react-pure-render/mixin';\n-import AccordionSection from 'components/accordion/section';\n+import React, { PropTypes, Component } from 'react';\n+import { localize } from 'i18n-calypso';\n+import { connect } from 'react-redux';\n+\n /**\n  * Internal dependencies\n  */\n import PostSelector from 'my-sites/post-selector';\n-import postActions from 'lib/posts/actions';\n import FormLabel from 'components/forms/form-label';\n import FormToggle from 'components/forms/form-toggle/compact';\n+import AccordionSection from 'components/accordion/section';\n+import { getSelectedSiteId } from 'state/ui/selectors';\n+import { getEditorPostId } from 'state/ui/editor/selectors';\n+import { getEditedPostValue } from 'state/posts/selectors';\n+import { editPost } from 'state/posts/actions';\n+import { getPostType } from 'state/post-types/selectors';\n \n-export default React.createClass( {\n-\tdisplayName: 'EditorPageParent',\n-\n-\tmixins: [ PureRenderMixin ],\n-\n-\tpropTypes: {\n+class EditorPageParent extends Component {\n+\tstatic propTypes = {\n \t\tsiteId: PropTypes.number,\n-\t\tparent: PropTypes.number,\n-\t\tpostId: PropTypes.number\n-\t},\n+\t\tpostId: PropTypes.number,\n+\t\tparentId: PropTypes.number,\n+\t\tpostType: PropTypes.string,\n+\t\ttranslate: PropTypes.func,\n+\t\tlabels: PropTypes.object\n+\t};\n+\n+\tconstructor( props ) {\n+\t\tsuper( props );\n+\t\tthis.boundUpdatePageParent = this.updatePageParent.bind( this );\n+\t}\n \n \tupdatePageParent( item ) {\n+\t\tconst { siteId, postId } = this.props;\n \t\tconst parentId = item && item.ID ? item.ID : null;\n-\t\t// TODO: REDUX - remove flux actions when whole post-editor is reduxified\n-\t\tpostActions.edit( {\n-\t\t\tparent: parentId\n-\t\t} );\n-\t},\n-\n-\tgetEmptyMessage() {\n-\t\tif ( this.props.postId ) {\n-\t\t\treturn this.translate( 'You have no other pages yet.' );\n-\t\t}\n-\n-\t\treturn this.translate( 'You have no pages yet.' );\n-\t},\n+\t\tthis.props.editPost( { parent: parentId }, siteId, postId );\n+\t}\n \n \trender() {\n+\t\tconst { parentId, translate, postId, siteId, postType, labels } = this.props;\n \t\treturn (\n \t\t\t<AccordionSection className=\"editor-page-parent\">\n \t\t\t\t<FormLabel>\n-\t\t\t\t\t<span className=\"editor-page-parent__label-text\">{ this.translate( 'Parent Page' ) }</span>\n+\t\t\t\t\t<span className=\"editor-page-parent__label-text\">{ labels.parent || translate( 'Parent Page' ) }</span>\n \t\t\t\t</FormLabel>\n \t\t\t\t<FormLabel className=\"editor-page-parent__top-level\">\n \t\t\t\t\t<span className=\"editor-page-parent__top-level-label\">\n-\t\t\t\t\t\t{ this.translate( 'Top level page', { context: 'Editor: Page being edited is top level i.e. has no parent' } ) }\n+\t\t\t\t\t\t{ translate( 'Top level', { context: 'Editor: Page being edited is top level i.e. has no parent' } ) }\n \t\t\t\t\t</span>\n \t\t\t\t\t<FormToggle\n-\t\t\t\t\t\tchecked={ ! this.props.parent }\n-\t\t\t\t\t\tonChange={ this.updatePageParent }\n-\t\t\t\t\t\taria-label={ this.translate( 'Toggle to set page as top level' ) }\n+\t\t\t\t\t\tchecked={ ! parentId }\n+\t\t\t\t\t\tonChange={ this.boundUpdatePageParent }\n+\t\t\t\t\t\taria-label={ translate( 'Toggle to set as top level' ) }\n \t\t\t\t\t/>\n \t\t\t\t</FormLabel>\n \t\t\t\t<PostSelector\n-\t\t\t\t\ttype=\"page\"\n-\t\t\t\t\tsiteId={ this.props.siteId }\n-\t\t\t\t\tonChange={ this.updatePageParent }\n-\t\t\t\t\tselected={ this.props.parent }\n-\t\t\t\t\texcludeTree={ this.props.postId }\n-\t\t\t\t\temptyMessage={ this.getEmptyMessage() }\n+\t\t\t\t\ttype={ postType }\n+\t\t\t\t\tsiteId={ siteId }\n+\t\t\t\t\tonChange={ this.boundUpdatePageParent }\n+\t\t\t\t\tselected={ parentId }\n+\t\t\t\t\texcludeTree={ postId }\n+\t\t\t\t\temptyMessage={ labels.not_found || translate( 'You have no other pages yet.' ) }\n \t\t\t\t/>\n \t\t\t</AccordionSection>\n \t\t);\n \t}\n-} );\n+}\n+\n+export default connect(\n+\t( state ) => {\n+\t\tconst siteId = getSelectedSiteId( state );\n+\t\tconst postId = getEditorPostId( state );\n+\t\tconst postType = getEditedPostValue( state, siteId, postId, 'type' );\n+\t\tconst parent = getEditedPostValue( state, siteId, postId, 'parent' ) || 0;\n+\t\tconst parentId = parent.ID ? parent.ID : parent;","path":"client/post-editor/editor-page-parent/index.jsx","position":116,"original_position":116,"commit_id":"6724edd15a2e26e9f092fa8a2837dd1f8e9ac272","original_commit_id":"6724edd15a2e26e9f092fa8a2837dd1f8e9ac272","user":{"login":"aduth","id":1779930,"avatar_url":"https://avatars.githubusercontent.com/u/1779930?v=3","gravatar_id":"","url":"https://api.github.com/users/aduth","html_url":"https://github.com/aduth","followers_url":"https://api.github.com/users/aduth/followers","following_url":"https://api.github.com/users/aduth/following{/other_user}","gists_url":"https://api.github.com/users/aduth/gists{/gist_id}","starred_url":"https://api.github.com/users/aduth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduth/subscriptions","organizations_url":"https://api.github.com/users/aduth/orgs","repos_url":"https://api.github.com/users/aduth/repos","events_url":"https://api.github.com/users/aduth/events{/privacy}","received_events_url":"https://api.github.com/users/aduth/received_events","type":"User","site_admin":false},"body":"Using `get` you could avoid the fallback `|| 0` on the previous line. For whatever reason, my eye always overlooks those end-of-line fallbacks.\r\n\r\n```js\r\nconst parent = getEditedPostValue( state, siteId, postId, 'parent' );\r\nconst parentId = get( parent, 'ID', 0 );\r\n```","created_at":"2016-07-29T18:50:38Z","updated_at":"2016-07-29T18:50:38Z","html_url":"https://github.com/Automattic/wp-calypso/pull/7168#discussion_r72842864","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/72842864"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/7168#discussion_r72842864"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168","id":79393797,"html_url":"https://github.com/Automattic/wp-calypso/pull/7168","diff_url":"https://github.com/Automattic/wp-calypso/pull/7168.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/7168.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7168","number":7168,"state":"open","locked":false,"title":"Editor: make EditorPageParent usable for non-page post types.","user":{"login":"timmyc","id":22080,"avatar_url":"https://avatars.githubusercontent.com/u/22080?v=3","gravatar_id":"","url":"https://api.github.com/users/timmyc","html_url":"https://github.com/timmyc","followers_url":"https://api.github.com/users/timmyc/followers","following_url":"https://api.github.com/users/timmyc/following{/other_user}","gists_url":"https://api.github.com/users/timmyc/gists{/gist_id}","starred_url":"https://api.github.com/users/timmyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmyc/subscriptions","organizations_url":"https://api.github.com/users/timmyc/orgs","repos_url":"https://api.github.com/users/timmyc/repos","events_url":"https://api.github.com/users/timmyc/events{/privacy}","received_events_url":"https://api.github.com/users/timmyc/received_events","type":"User","site_admin":false},"body":"@gibrown reported an issue with his own CPT where he was unable to use the \"Page Parent\" selector to select a parent page of the same post type.  The issue was `<EditorPageParent />` was hard coded to use the `type` of page.  This branch removes all the `type` specific logic from `<EditorPageParent />` so it can be used properly with CPT's that are hierarchical.\r\n\r\nWhile updating the component, I also converted the logic to update the posts edit state tree instead of the `post-edit-store` - and converted it to a `connect`ed component.\r\n\r\n__Before__\r\n<img width=\"266\" alt=\"new_gallery_ _haiku2_ _wordpress_com\" src=\"https://cloud.githubusercontent.com/assets/22080/17257109/601d3bd0-5575-11e6-9c67-1b276d6ba8d8.png\">\r\n\r\n__After__\r\n<img width=\"255\" alt=\"new_gallery_ _haiku2_ _wordpress_com\" src=\"https://cloud.githubusercontent.com/assets/22080/17257133/7e4f61dc-5575-11e6-8525-5d8127017ad4.png\">\r\n\r\n__Testing__\r\nIn order to properly test you will need a Jetpack site with a hierarchical CPT that is api query-able.  You can find at 15358-pb and install it on your own site.\r\n\r\n- Open up a new hierarchical post type in the editor\r\n- Expand the attributes accordion\r\n- Verify the proper label shows up for the parent section - note it defaults to \"Parent Page\" if the post type does not define the `parent` label\r\n- Verify the items in the post selector are for the same post type, not pages\r\n- Interact with the parent selector: search ( if if is shown ), and select different parents.  Update the post and ensure your changes are persisted\r\n- Perform the same steps above but with a Page, and validate that no regressions have occurred.\r\n\r\n__Known Issues__\r\nThere is still a bug where after you initially publish a new Page or hierarchical CPT, that item shows up as an option in the parent selector.  This is a legacy issue that exists in pages right now on `master` and should be fixed in a follow-up branch.\r\n\r\n\r\nTest live: https://calypso.live/?branch=fix/editor/cpt-parent-selector","created_at":"2016-07-29T17:22:37Z","updated_at":"2016-07-29T18:50:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c600a432e44a5d48f48c2f027182380a7e2dedfc","assignee":{"login":"timmyc","id":22080,"avatar_url":"https://avatars.githubusercontent.com/u/22080?v=3","gravatar_id":"","url":"https://api.github.com/users/timmyc","html_url":"https://github.com/timmyc","followers_url":"https://api.github.com/users/timmyc/followers","following_url":"https://api.github.com/users/timmyc/following{/other_user}","gists_url":"https://api.github.com/users/timmyc/gists{/gist_id}","starred_url":"https://api.github.com/users/timmyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmyc/subscriptions","organizations_url":"https://api.github.com/users/timmyc/orgs","repos_url":"https://api.github.com/users/timmyc/repos","events_url":"https://api.github.com/users/timmyc/events{/privacy}","received_events_url":"https://api.github.com/users/timmyc/received_events","type":"User","site_admin":false},"assignees":[{"login":"timmyc","id":22080,"avatar_url":"https://avatars.githubusercontent.com/u/22080?v=3","gravatar_id":"","url":"https://api.github.com/users/timmyc","html_url":"https://github.com/timmyc","followers_url":"https://api.github.com/users/timmyc/followers","following_url":"https://api.github.com/users/timmyc/following{/other_user}","gists_url":"https://api.github.com/users/timmyc/gists{/gist_id}","starred_url":"https://api.github.com/users/timmyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmyc/subscriptions","organizations_url":"https://api.github.com/users/timmyc/orgs","repos_url":"https://api.github.com/users/timmyc/repos","events_url":"https://api.github.com/users/timmyc/events{/privacy}","received_events_url":"https://api.github.com/users/timmyc/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7168/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/6724edd15a2e26e9f092fa8a2837dd1f8e9ac272","head":{"label":"Automattic:fix/editor/cpt-parent-selector","ref":"fix/editor/cpt-parent-selector","sha":"6724edd15a2e26e9f092fa8a2837dd1f8e9ac272","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2016-07-29T07:01:04Z","pushed_at":"2016-07-29T18:44:14Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":83106,"stargazers_count":7631,"watchers_count":7631,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":953,"mirror_url":null,"open_issues_count":1397,"forks":953,"open_issues":1397,"watchers":7631,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"c759480b233f0ff61a79ee2e4cbaed3de511559d","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2016-07-29T07:01:04Z","pushed_at":"2016-07-29T18:44:14Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":83106,"stargazers_count":7631,"watchers_count":7631,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":953,"mirror_url":null,"open_issues_count":1397,"forks":953,"open_issues":1397,"watchers":7631,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/7168"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/7168"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/7168/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7168/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/6724edd15a2e26e9f092fa8a2837dd1f8e9ac272"}}}}
{"actor":{"display_login":"aduth"}}