{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/65954691","id":65954691,"diff_hunk":"@@ -113,45 +67,95 @@ const AddPackageDialog = ( props ) => {\n \t\tis_user_defined,\n \t} = packageData;\n \n+\tconst fieldClassName = is_user_defined ? '' : 'flat-rate-package__inner-dimensions__read-only';\n+\tconst isOuterDimensionsVisible = showOuterDimensions || outer_dimensions;\n+\tconst exampleDimensions = [100.25, 25, 5.75].map( ( val ) => val.toLocaleString() ).join( ' x ' );\n+\n+\tconst onSave = () => {\n+\t\tconst editName = 'number' === typeof packageData.index ? packages[packageData.index].name : null;\n+\t\tconst boxNames = difference( packages.map( ( boxPackage ) => boxPackage.name ), [editName] );\n+\t\tconst filteredPackageData = Object.assign( {}, packageData, {\n+\t\t\tinner_dimensions: inputFilters.dimensions( packageData.inner_dimensions ),\n+\t\t\touter_dimensions: inputFilters.dimensions( packageData.outer_dimensions ),\n+\t\t\tbox_weight: inputFilters.number( packageData.box_weight ),\n+\t\t\tmax_weight: inputFilters.number( packageData.max_weight ),\n+\t\t} );\n+\n+\t\tconst errors = checkInputs( filteredPackageData, boxNames, schema.items );\n+\t\tif ( errors.any ) {\n+\t\t\tupdatePackagesField( filteredPackageData );\n+\t\t\tsetModalErrors( errors );\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tsavePackage( filteredPackageData );\n+\t};\n+\n+\tconst updateTextField = ( event ) => {\n+\t\tconst key = event.target.name;\n+\t\tconst value = event.target.value;\n+\t\tsetModalErrors( omit( modalErrors, key ) );\n+\t\tupdatePackagesField( { [key]: value } );\n+\t};\n+\n+\tconst fieldInfo = ( field, nonEmptyText ) => {\n+\t\tconst altText = nonEmptyText || __( 'Invalid value' );\n+\t\tconst text = '' === trim( packageData[field] ) ? __( 'This field is required' ) : altText;\n+\t\treturn modalErrors[field] ? <FormInputValidation isError text={ text } /> : '';\n+\t};\n+\n \treturn (\n \t\t<Dialog\n \t\t\tisVisible={ showModal }\n \t\t\tadditionalClassNames=\"wcc-modal wcc-shipping-add-edit-package-dialog\"\n \t\t\tonClose={ dismissModal }\n-\t\t\tbuttons={ getDialogButtons( mode, dismissModal, 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\tselectedPreset={ selectedPreset }\n-\t\t\t\t\tsetSelectedPreset={ setSelectedPreset }\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\tbuttons={ getDialogButtons( mode, dismissModal, onSave ) }>\n+\t\t\t<FormSectionHeading>\n+\t\t\t\t{ ( 'edit' === mode ) ? __( 'Edit package' ) : __( 'Add a package' ) }\n+\t\t\t</FormSectionHeading>\n+\t\t\t{ ( 'add' === mode ) ? <AddPackagePresets { ...props } /> : null }\n \t\t\t<FormFieldset>\n \t\t\t\t<FormLabel htmlFor=\"name\">{ __( 'Package name' ) }</FormLabel>\n \t\t\t\t<FormTextInput\n \t\t\t\t\tid=\"name\"\n \t\t\t\t\tname=\"name\"\n \t\t\t\t\tplaceholder={ __( 'The customer will see this during checkout' ) }\n \t\t\t\t\tvalue={ name }\n-\t\t\t\t\tonChange={ ( event ) => updateFormTextField( event, updatePackagesField ) }\n+\t\t\t\t\tonChange={ updateTextField }\n+\t\t\t\t\tisError={ modalErrors.name }\n \t\t\t\t/>\n+\t\t\t\t{ fieldInfo( 'name', __( 'This field must be unique' ) ) }\n \t\t\t</FormFieldset>\n \t\t\t<FormFieldset>\n \t\t\t\t<FormLabel>{ sprintf( __( 'Inner Dimensions (L x W x H) %s' ), dimensionUnit ) }</FormLabel>\n \t\t\t\t<FormTextInput\n \t\t\t\t\tname=\"inner_dimensions\"\n-\t\t\t\t\tplaceholder={ exampleDimensions( 100, 25, 5.5 ) }\n+\t\t\t\t\tplaceholder={ exampleDimensions }\n \t\t\t\t\tvalue={ inner_dimensions }\n-\t\t\t\t\tclassName={ is_user_defined ? '' : 'flat-rate-package__inner-dimensions__read-only' }\n-\t\t\t\t\tonChange={ ( event ) => updateFormTextField( event, updatePackagesField ) }\n+\t\t\t\t\tclassName={ fieldClassName }\n+\t\t\t\t\tonChange={ updateTextField }\n \t\t\t\t\tdisabled={ ! is_user_defined }\n+\t\t\t\t\tisError={ modalErrors.inner_dimensions }\n \t\t\t\t/>\n-\t\t\t\t{ renderOuterDimensionsToggle( showOuterDimensions, packageData, toggleOuterDimensions ) }\n+\t\t\t\t{ fieldInfo( 'inner_dimensions' ) }\n+\t\t\t\t{ ! isOuterDimensionsVisible ? <OuterDimensionsToggle { ...{ toggleOuterDimensions } }/> : '' }\n \t\t\t</FormFieldset>\n-\t\t\t{ renderOuterDimensions( showOuterDimensions, dimensionUnit, packageData, outer_dimensions, updatePackagesField, is_user_defined ) }\n+\t\t\t{ isOuterDimensionsVisible\n+\t\t\t\t? ( <FormFieldset>\n+\t\t\t\t\t\t<FormLabel>{ sprintf( __( 'Outer Dimensions (L x W x H) %s' ), dimensionUnit ) }</FormLabel>\n+\t\t\t\t\t\t<FormTextInput\n+\t\t\t\t\t\t\tname=\"outer_dimensions\"\n+\t\t\t\t\t\t\tplaceholder={ exampleDimensions }\n+\t\t\t\t\t\t\tvalue={ outer_dimensions }\n+\t\t\t\t\t\t\tclassName={ fieldClassName }\n+\t\t\t\t\t\t\tonChange={ updateTextField }\n+\t\t\t\t\t\t\tdisabled={ ! is_user_defined }\n+\t\t\t\t\t\t\tisError={ modalErrors.outer_dimensions }\n+\t\t\t\t\t\t/>\n+\t\t\t\t\t\t{ fieldInfo( 'outer_dimensions' ) }\n+\t\t\t\t\t</FormFieldset> )\n+\t\t\t\t: ''","path":"client/components/shipping/packages/add-package.js","position":235,"original_position":235,"commit_id":"3cbad6ff0227868c28cffd4c9486a0549f9ada9c","original_commit_id":"3cbad6ff0227868c28cffd4c9486a0549f9ada9c","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":"Why empty string and not `null` like we typically do?","created_at":"2016-06-06T19:41:19Z","updated_at":"2016-06-06T19:41:19Z","html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/364#discussion_r65954691","pull_request_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364","_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/65954691"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/364#discussion_r65954691"},"pull_request":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364","id":71484758,"html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/364","diff_url":"https://github.com/Automattic/woocommerce-connect-client/pull/364.diff","patch_url":"https://github.com/Automattic/woocommerce-connect-client/pull/364.patch","issue_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/364","number":364,"state":"open","locked":false,"title":"Add validation inside the add/edit packages Modal","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":"I've added validation to the add/edit packages modal. It does the following:\r\n1) Check if name field is empty \r\n2) Check if box name already exists in the list of boxes\r\n3) requires inner dimensions and checks the format\r\n4) if outer dimensions are provided, checks the format\r\n5) makes sure box and max weights are numbers and not empty\r\n6) Auto-correct spacing around \"x\" in the dimensions definitions\r\n\r\nTo Test:\r\n\r\n1) Open USPS or Canada Post settings\r\n2) Make sure you have a few boxes entered\r\n3) Try to add a new box\r\n4) Make sure it follows all the rules above\r\n5) Try editing an existing box\r\n6) Make sure it follows the rules above\r\n7) Make sure you're able to save data after making changes\r\n8) Experiment with variations of spacing around the \"x\" in the dimensions. It should be auto-corrected.\r\n\r\n@kellychoffman @jeffstieler @allendav @jkudish\r\n\r\nCloses #297 \r\nCloses #306 \r\nCloses #324  ","created_at":"2016-05-26T00:39:10Z","updated_at":"2016-06-06T19:41:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e3d1e21cad1c5f538ecce5f3f19df0e78aef90e","assignee":{"login":"kellychoffman","id":5835847,"avatar_url":"https://avatars.githubusercontent.com/u/5835847?v=3","gravatar_id":"","url":"https://api.github.com/users/kellychoffman","html_url":"https://github.com/kellychoffman","followers_url":"https://api.github.com/users/kellychoffman/followers","following_url":"https://api.github.com/users/kellychoffman/following{/other_user}","gists_url":"https://api.github.com/users/kellychoffman/gists{/gist_id}","starred_url":"https://api.github.com/users/kellychoffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellychoffman/subscriptions","organizations_url":"https://api.github.com/users/kellychoffman/orgs","repos_url":"https://api.github.com/users/kellychoffman/repos","events_url":"https://api.github.com/users/kellychoffman/events{/privacy}","received_events_url":"https://api.github.com/users/kellychoffman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364/commits","review_comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364/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/364/comments","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/3cbad6ff0227868c28cffd4c9486a0549f9ada9c","head":{"label":"Automattic:add/packages_modal_validation","ref":"add/packages_modal_validation","sha":"3cbad6ff0227868c28cffd4c9486a0549f9ada9c","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-06-03T08:20:00Z","pushed_at":"2016-06-06T18:23:28Z","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":919,"stargazers_count":25,"watchers_count":25,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":48,"forks":1,"open_issues":48,"watchers":25,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"8a177e250cd004c3cca5456b0803dd40e2ab36fc","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-06-03T08:20:00Z","pushed_at":"2016-06-06T18:23:28Z","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":919,"stargazers_count":25,"watchers_count":25,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":48,"forks":1,"open_issues":48,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/364"},"issue":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/364"},"comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/364/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/364/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/364/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/3cbad6ff0227868c28cffd4c9486a0549f9ada9c"}}}}
{"actor":{"display_login":"allendav"}}