{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/62383969","id":62383969,"diff_hunk":"@@ -10,170 +10,151 @@ import Dialog from 'components/dialog';\n import AddPackagePresets from './add-package-presets';\n import { translate as __ } from 'lib/mixins/i18n';\n \n-class AddPackageDialog extends React.Component {\n+const getDialogButtons = ( mode, savePackage, packageData ) => {\n+\treturn [\n+\t\t<FormLabel className=\"share-package-option\">\n+\t\t\t<FormCheckbox checked={ true } readOnly={ true } />\n+\t\t\t<span>Save package to use in other shipping methods</span>\n+\t\t</FormLabel>,\n+\t\t<FormButton onClick={ () => savePackage( packageData ) }>{ ( 'add' === mode ) ? __( 'Add package' ) : __( 'Apply changes' ) }</FormButton>,\n+\t];\n+};\n \n-\tconstructor() {\n-\t\tsuper();\n-\t\tthis.updateFormTextField = this.updateFormTextField.bind( this );\n+const renderOuterDimensionsToggle = ( showOuterDimensions, packageData, toggleOuterDimensions ) => {\n+\tif ( ! showOuterDimensions && ! packageData.outer_dimensions ) {\n+\t\treturn (\n+\t\t\t<a\n+\t\t\t\thref=\"#\"\n+\t\t\t\tclassName=\"form-setting-explanation\"\n+\t\t\t\tonClick={ ( evt ) => {\n+\t\t\t\t\tevt.preventDefault();\n+\t\t\t\t\ttoggleOuterDimensions();\n+\t\t\t\t} }>\n+\t\t\t\tDefine exterior dimensions\n+\t\t\t</a>\n+\t\t);\n \t}\n+};\n \n-\tgetDialogButtons() {\n-\t\tconst {\n-\t\t\tmode,\n-\t\t\tsavePackage,\n-\t\t\tpackageData,\n-\t\t} = this.props;\n-\t\treturn [\n-\t\t\t<FormLabel className=\"share-package-option\">\n-\t\t\t\t<FormCheckbox checked={ true } readOnly={ true } />\n-\t\t\t\t<span>Save package to use in other shipping methods</span>\n-\t\t\t</FormLabel>,\n-\t\t\t<FormButton onClick={ () => savePackage( packageData ) }>{ ( 'add' === mode ) ? __( 'Add package' ) : __( 'Apply changes' ) }</FormButton>,\n-\t\t];\n-\t}\n+const updateFormTextField = ( event, updatePackagesField ) => {\n+\tconst {\n+\t\tname,\n+\t\tvalue,\n+\t} = event.target;\n+\tupdatePackagesField( { [name]: value } );\n+};\n \n-\trenderOuterDimensionsToggle() {\n-\t\tconst {\n-\t\t\tshowOuterDimensions,\n-\t\t\tpackageData,\n-\t\t\ttoggleOuterDimensions,\n-\t\t} = this.props;\n+const renderOuterDimensions = ( showOuterDimensions, packageData, value, updatePackagesField ) => {\n+\treturn ( showOuterDimensions || packageData.outer_dimensions ) ? (\n+\t\t<FormFieldset>\n+\t\t\t<FormLabel>Outer Dimensions (L x W x H)</FormLabel>\n+\t\t\t<FormTextInput\n+\t\t\t\tname=\"outer_dimensions\"\n+\t\t\t\tplaceholder=\"100.25 x 25.25 x 5.75\"\n+\t\t\t\tvalue={ value }\n+\t\t\t\tonChange={ ( event ) => updateFormTextField( event, updatePackagesField ) }\n+\t\t\t/>\n+\t\t</FormFieldset>\n+\t) : null;\n+};\n \n-\t\tif ( ! showOuterDimensions && ! packageData.outer_dimensions ) {\n-\t\t\treturn (\n-\t\t\t\t<a\n-\t\t\t\t\thref=\"#\"\n-\t\t\t\t\tclassName=\"form-setting-explanation\"\n-\t\t\t\t\tonClick={ ( evt ) => {\n-\t\t\t\t\t\tevt.preventDefault();\n-\t\t\t\t\t\ttoggleOuterDimensions();\n-\t\t\t\t\t} }>\n-\t\t\t\t\tDefine exterior dimensions\n-\t\t\t\t</a>\n-\t\t\t);\n-\t\t}\n-\t}\n+const usePresetValues = ( preset, updatePackagesField ) => {\n+\tupdatePackagesField( {\n+\t\tindex: null,\n+\t\t...preset,\n+\t} );\n+};\n+\n+const useDefaultField = ( value, updatePackagesField ) => {\n+\tupdatePackagesField( {\n+\t\tindex: null,\n+\t\tis_letter: 'envelope' === value ? true : false,\n+\t} );\n+};\n+\n+const AddPackageDialog = ( props ) => {\n+\tconst {\n+\t\tdismissModal,\n+\t\tmode,\n+\t\tpresets,\n+\t\tweightUnit,\n+\t\tpackageData,\n+\t\tshowOuterDimensions,\n+\t\ttoggleOuterDimensions,\n+\t\tsavePackage,\n+\t\tupdatePackagesField,\n+\t} = props;\n \n-\trenderOuterDimensions( value ) {\n-\t\tconst {\n-\t\t\tshowOuterDimensions,\n-\t\t\tpackageData,\n-\t\t} = this.props;\n+\tconst {\n+\t\tname,\n+\t\tinner_dimensions,\n+\t\touter_dimensions,\n+\t\tbox_weight,\n+\t\tmax_weight,\n+\t} = packageData;\n \n-\t\treturn ( showOuterDimensions || packageData.outer_dimensions ) ? (\n+\treturn (\n+\t\t<Dialog\n+\t\t\tisVisible={ true }\n+\t\t\tadditionalClassNames=\"wcc-modal wcc-shipping-add-edit-package-dialog\"\n+\t\t\tonClose={ dismissModal }\n+\t\t\tbuttons={ getDialogButtons( mode, savePackage, packageData ) }>\n+\t\t\t<FormSectionHeading>{ ( 'edit' === mode ) ? __( 'Edit package' ) : __( 'Add a package' ) }</FormSectionHeading>\n+\t\t\t{ ( 'add' === mode ) ? (\n+\t\t\t\t<AddPackagePresets\n+\t\t\t\t\tpresets={ presets }\n+\t\t\t\t\tonSelectDefault={ ( value ) => useDefaultField( value, updatePackagesField ) }\n+\t\t\t\t\tonSelectPreset={ ( idx ) => usePresetValues( presets.boxes[idx], updatePackagesField ) }\n+\t\t\t\t/>\n+\t\t\t) : null }\n \t\t\t<FormFieldset>\n-\t\t\t\t<FormLabel>Outer Dimensions (L x W x H)</FormLabel>\n+\t\t\t\t<FormLabel htmlFor=\"name\">Package name</FormLabel>","path":"client/components/shipping/packages/add-package.js","position":147,"original_position":147,"commit_id":"244155fb6bfc51e41cf0c8c4d63c213cd9d77487","original_commit_id":"244155fb6bfc51e41cf0c8c4d63c213cd9d77487","user":{"login":"allendav","id":1595739,"avatar_url":"https://avatars.githubusercontent.com/u/1595739?v=3","gravatar_id":"","url":"https://api.github.com/users/allendav","html_url":"https://github.com/allendav","followers_url":"https://api.github.com/users/allendav/followers","following_url":"https://api.github.com/users/allendav/following{/other_user}","gists_url":"https://api.github.com/users/allendav/gists{/gist_id}","starred_url":"https://api.github.com/users/allendav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allendav/subscriptions","organizations_url":"https://api.github.com/users/allendav/orgs","repos_url":"https://api.github.com/users/allendav/repos","events_url":"https://api.github.com/users/allendav/events{/privacy}","received_events_url":"https://api.github.com/users/allendav/received_events","type":"User","site_admin":false},"body":"Localization","created_at":"2016-05-06T20:07:56Z","updated_at":"2016-05-06T20:07:56Z","html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/298#discussion_r62383969","pull_request_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298","_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/62383969"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/298#discussion_r62383969"},"pull_request":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298","id":69174433,"html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/298","diff_url":"https://github.com/Automattic/woocommerce-connect-client/pull/298.diff","patch_url":"https://github.com/Automattic/woocommerce-connect-client/pull/298.patch","issue_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/298","number":298,"state":"open","locked":false,"title":"Update/make modal stateless","user":{"login":"nabsul","id":11143071,"avatar_url":"https://avatars.githubusercontent.com/u/11143071?v=3","gravatar_id":"","url":"https://api.github.com/users/nabsul","html_url":"https://github.com/nabsul","followers_url":"https://api.github.com/users/nabsul/followers","following_url":"https://api.github.com/users/nabsul/following{/other_user}","gists_url":"https://api.github.com/users/nabsul/gists{/gist_id}","starred_url":"https://api.github.com/users/nabsul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabsul/subscriptions","organizations_url":"https://api.github.com/users/nabsul/orgs","repos_url":"https://api.github.com/users/nabsul/repos","events_url":"https://api.github.com/users/nabsul/events{/privacy}","received_events_url":"https://api.github.com/users/nabsul/received_events","type":"User","site_admin":false},"body":"This makes the add-package sub component completely stateless so that it follows the pattern of most other components.\r\n\r\nAlso found some props that need to be added to the PropTypes.\r\n\r\n@jeffstieler @jkudish @allendav ","created_at":"2016-05-06T16:17:02Z","updated_at":"2016-05-06T20:07:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a586a5405117c8c45bbf26a26e8f174ce035df65","assignee":{"login":"nabsul","id":11143071,"avatar_url":"https://avatars.githubusercontent.com/u/11143071?v=3","gravatar_id":"","url":"https://api.github.com/users/nabsul","html_url":"https://github.com/nabsul","followers_url":"https://api.github.com/users/nabsul/followers","following_url":"https://api.github.com/users/nabsul/following{/other_user}","gists_url":"https://api.github.com/users/nabsul/gists{/gist_id}","starred_url":"https://api.github.com/users/nabsul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabsul/subscriptions","organizations_url":"https://api.github.com/users/nabsul/orgs","repos_url":"https://api.github.com/users/nabsul/repos","events_url":"https://api.github.com/users/nabsul/events{/privacy}","received_events_url":"https://api.github.com/users/nabsul/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298/commits","review_comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298/comments","review_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/298/comments","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/244155fb6bfc51e41cf0c8c4d63c213cd9d77487","head":{"label":"Automattic:update/make_modal_stateless","ref":"update/make_modal_stateless","sha":"244155fb6bfc51e41cf0c8c4d63c213cd9d77487","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":50946955,"name":"woocommerce-connect-client","full_name":"Automattic/woocommerce-connect-client","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/woocommerce-connect-client","description":"WooCommerce Connect is a feature plugin, currently in Alpha, that integrates the WooCommerce Connect SaaS into WooCommerce (2.6 beta), Alpha includes real time USPS shipping rates and introduces our React based UI. This plugin will eventually be merged into WooCommerce core.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client","forks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2016-05-06T11:07:09Z","pushed_at":"2016-05-06T19:51:36Z","git_url":"git://github.com/Automattic/woocommerce-connect-client.git","ssh_url":"git@github.com:Automattic/woocommerce-connect-client.git","clone_url":"https://github.com/Automattic/woocommerce-connect-client.git","svn_url":"https://github.com/Automattic/woocommerce-connect-client","homepage":"","size":710,"stargazers_count":15,"watchers_count":15,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":54,"forks":1,"open_issues":54,"watchers":15,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"760c870be91493b109b9f6f7774c386737382f71","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":50946955,"name":"woocommerce-connect-client","full_name":"Automattic/woocommerce-connect-client","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/woocommerce-connect-client","description":"WooCommerce Connect is a feature plugin, currently in Alpha, that integrates the WooCommerce Connect SaaS into WooCommerce (2.6 beta), Alpha includes real time USPS shipping rates and introduces our React based UI. This plugin will eventually be merged into WooCommerce core.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client","forks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2016-05-06T11:07:09Z","pushed_at":"2016-05-06T19:51:36Z","git_url":"git://github.com/Automattic/woocommerce-connect-client.git","ssh_url":"git@github.com:Automattic/woocommerce-connect-client.git","clone_url":"https://github.com/Automattic/woocommerce-connect-client.git","svn_url":"https://github.com/Automattic/woocommerce-connect-client","homepage":"","size":710,"stargazers_count":15,"watchers_count":15,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":54,"forks":1,"open_issues":54,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/298"},"issue":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/298"},"comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/298/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/298/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/244155fb6bfc51e41cf0c8c4d63c213cd9d77487"}}}}