{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/comments/122510732","pull_request_review_id":44638384,"id":122510732,"diff_hunk":"@@ -83,5 +97,300 @@ public function register_add_service_to_zone_pointer( $pointers ) {\n \t\t\t);\n \t\t\treturn $pointers;\n \t\t}\n+\n+\t\tpublic function get_jetpack_install_status() {\n+\t\t\t// check if Jetpack is activated\n+\t\t\tif ( ! class_exists( 'Jetpack_Data' ) ) {\n+\t\t\t\t// not activated, check if installed\n+\t\t\t\tif ( 0 === validate_plugin( 'jetpack/jetpack.php' ) ) {\n+\t\t\t\t\treturn self::JETPACK_INSTALLED;\n+\t\t\t\t}\n+\t\t\t\treturn self::JETPACK_UNINSTALLED;\n+\t\t\t} else if ( defined( 'JETPACK_DEV_DEBUG' ) && true === JETPACK_DEV_DEBUG ) {\n+\t\t\t\t// installed, activated, and dev mode on\n+\t\t\t\treturn self::JETPACK_DEV;\n+\t\t\t}\n+\n+\t\t\t// installed, activated, dev mode off\n+\t\t\t// check if connected\n+\t\t\t$user_token = Jetpack_Data::get_access_token( JETPACK_MASTER_USER );\n+\t\t\tif ( isset( $user_token->external_user_id ) ) { // always an int\n+\t\t\t\treturn self::JETPACK_CONNECTED;\n+\t\t\t}\n+\n+\t\t\treturn self::JETPACK_ACTIVATED;\n+\t\t}\n+\n+\t\tpublic function should_display_nux_notice_on_screen( $screen ) {\n+\t\t\tif ( // Display if on any of these admin pages.\n+\t\t\t\t( // Products list.\n+\t\t\t\t\t'product' === $screen->post_type\n+\t\t\t\t\t&& 'edit' === $screen->base\n+\t\t\t\t)\n+\t\t\t\t|| ( // Orders list.\n+\t\t\t\t\t'shop_order' === $screen->post_type\n+\t\t\t\t\t&& 'edit' === $screen->base\n+\t\t\t\t\t)\n+\t\t\t\t|| ( // Edit order page.\n+\t\t\t\t\t'shop_order' === $screen->post_type\n+\t\t\t\t\t&& 'post' === $screen->base\n+\t\t\t\t\t)\n+\t\t\t\t|| ( // WooCommerce settings.\n+\t\t\t\t\t'woocommerce_page_wc-settings' === $screen->base\n+\t\t\t\t\t)\n+\t\t\t\t|| ( // WooCommerce featured extension page\n+\t\t\t\t\t'woocommerce_page_wc-addons' === $screen->base\n+\t\t\t\t\t&& isset( $_GET['section'] ) && 'featured' === $_GET['section']\n+\t\t\t\t\t)\n+\t\t\t\t|| ( // WooCommerce shipping extension page\n+\t\t\t\t\t'woocommerce_page_wc-addons' === $screen->base\n+\t\t\t\t\t&& isset( $_GET['section'] ) && 'shipping_methods' === $_GET['section']\n+\t\t\t\t\t)\n+\t\t\t\t|| 'plugins' === $screen->base\n+\t\t\t) {\n+\t\t\t\treturn true;\n+\t\t\t}\n+\t\t\treturn false;\n+\t\t}\n+\n+\t\tpublic function should_display_nux_notice_for_current_store_locale() {\n+\t\t\t$base_location = wc_get_base_location();\n+\t\t\t$country = isset( $base_location['country'] )\n+\t\t\t\t? $base_location['country']\n+\t\t\t\t: '';\n+\t\t\t// Do not display for non-US, non-CA stores.\n+\t\t\tif ( 'CA' === $country || 'US' === $country ) {\n+\t\t\t\treturn true;\n+\t\t\t}\n+\t\t\treturn false;\n+\t\t}\n+\n+\t\tpublic function get_jetpack_redirect_url() {\n+\t\t\t$full_path = add_query_arg( array() );\n+\t\t\t// Remove [...]/wp-admin so we can use admin_url().\n+\t\t\t$new_index = strpos( $full_path, '/wp-admin' ) + strlen( '/wp-admin' );\n+\t\t\t$path = substr( $full_path, $new_index );\n+\t\t\treturn admin_url( $path );\n+\t\t}\n+\n+\t\tpublic function set_up_nux_notices() {\n+\t\t\tif ( ! current_user_can( 'manage_woocommerce' )\n+\t\t\t\t|| ! current_user_can( 'install_plugins' )\n+\t\t\t\t|| ! current_user_can( 'activate_plugins' )\n+\t\t\t) {\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\tif ( ! $this->should_display_nux_notice_for_current_store_locale() ) {\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t$jetpack_install_status = $this->get_jetpack_install_status();\n+\n+\t\t\tswitch ( $jetpack_install_status ) {\n+\t\t\t\tcase self::JETPACK_UNINSTALLED:\n+\t\t\t\tcase self::JETPACK_INSTALLED:\n+\t\t\t\tcase self::JETPACK_ACTIVATED:\n+\t\t\t\t\t$ajax_data = array(\n+\t\t\t\t\t\t'nonce'                  => wp_create_nonce( 'wcs_nux_notice' ),\n+\t\t\t\t\t\t'initial_install_status' => $jetpack_install_status,\n+\t\t\t\t\t\t'redirect_url'           => $this->get_jetpack_redirect_url(),\n+\t\t\t\t\t\t'translations'           => array(\n+\t\t\t\t\t\t\t'activating'   => __( 'Activating...', 'woocommerce-services' ),\n+\t\t\t\t\t\t\t'connecting'   => __( 'Connecting...', 'woocommerce-services' ),\n+\t\t\t\t\t\t\t'installError' => __( 'There was an error installing Jetpack. Please try installing it manually.', 'woocommerce-services' ),\n+\t\t\t\t\t\t\t'defaultError' => __( 'Something went wrong. Please try connecting to Jetpack manually, or contact support on the WordPress.org forums.', 'woocommerce-services' ),\n+\t\t\t\t\t\t),\n+\t\t\t\t\t);\n+\t\t\t\t\twp_enqueue_script( 'wc_connect_banner' );\n+\t\t\t\t\twp_localize_script( 'wc_connect_banner', 'wcs_nux_notice', $ajax_data );\n+\t\t\t\t\tadd_action( 'wp_ajax_woocommerce_services_activate_jetpack',\n+\t\t\t\t\t\tarray( $this, 'ajax_activate_jetpack' )\n+\t\t\t\t\t);\n+\t\t\t\t\tadd_action( 'wp_ajax_woocommerce_services_get_jetpack_connect_url',\n+\t\t\t\t\t\tarray( $this, 'ajax_get_jetpack_connect_url' )\n+\t\t\t\t\t);\n+\t\t\t\t\twp_enqueue_style( 'wc_connect_banner' );\n+\t\t\t\t\tadd_action( 'admin_notices', array( $this, 'show_banner_before_connection' ), 9 );\n+\t\t\t\t\tbreak;\n+\t\t\t\tcase self::JETPACK_CONNECTED:\n+\t\t\t\t\t// Has the after-connection notice been dismissed already?\n+\t\t\t\t\tif ( WC_Connect_Options::get_option( self::SUCCESS_BANNER_IS_DISMISSED ) ) {\n+\t\t\t\t\t\tbreak;\n+\t\t\t\t\t}\n+\t\t\t\t\twp_enqueue_style( 'wc_connect_banner' );\n+\t\t\t\t\tadd_action( 'admin_notices', array( $this, 'show_banner_after_connection' ) );\n+\t\t\t\t\tbreak;\n+\t\t\t}\n+\t\t}\n+\n+\t\tpublic function show_banner_before_connection() {\n+\t\t\tif ( ! $this->should_display_nux_notice_on_screen( get_current_screen() ) ) {\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t// Remove Jetpack's connect banners since we're showing our own.\n+\t\t\tif ( class_exists( 'Jetpack_Connection_Banner' ) ) {\n+\t\t\t\t$jetpackBannerInstance = Jetpack_Connection_Banner::init();\n+\t\t\t\tremove_action( 'admin_notices', array( $jetpackBannerInstance, 'render_banner' ) );\n+\t\t\t\tremove_action( 'admin_notices', array( $jetpackBannerInstance, 'render_connect_prompt_full_screen' ) );\n+\t\t\t}\n+\n+\t\t\t// Make sure to show the after-connection success message even after Jetpack disconnect.\n+\t\t\tWC_Connect_Options::delete_option( self::SUCCESS_BANNER_IS_DISMISSED );\n+\n+\t\t\t$jetpack_status = $this->get_jetpack_install_status();\n+\n+\t\t\t$button_text = __( 'CONNECT >', 'woocommerce-services' );\n+\n+\t\t\t$image_url = plugins_url( 'images/nux-printer-laptop-illustration.png', dirname( __FILE__ ) );\n+\n+\t\t\tswitch ( $jetpack_status ) {\n+\t\t\t\tcase self::JETPACK_UNINSTALLED:\n+\t\t\t\t\t$button_text = __( 'Install Jetpack and CONNECT >', 'woocommerce-services' );\n+\t\t\t\t\tbreak;\n+\t\t\t\tcase self::JETPACK_INSTALLED:\n+\t\t\t\t\t$button_text = __( 'Activate Jetpack and CONNECT >', 'woocommerce-services' );\n+\t\t\t\t\tbreak;\n+\t\t\t}\n+\n+\t\t\t$default_content = array(\n+\t\t\t\t'title'           => __( 'Connect your store to activate WooCommerce Shipping', 'woocommerce-services' ),\n+\t\t\t\t'description'     => __( \"WooCommerce Shipping is almost ready to go! Once you connect your store you'll be able to access discounted rates and printing services for USPS and Canada Post from your dashboard (fewer trips to the post office, winning).\", 'woocommerce-services' ),\n+\t\t\t\t'button_text'     => $button_text,\n+\t\t\t\t'image_url'       => $image_url,\n+\t\t\t\t'should_show_jp'  => true,\n+\t\t\t);\n+\n+\t\t\t$base_location = wc_get_base_location();\n+\t\t\t$country = isset( $base_location['country'] )\n+\t\t\t\t? $base_location['country']\n+\t\t\t\t: '';\n+\t\t\tswitch ( $country ) {\n+\t\t\t\tcase 'CA':\n+\t\t\t\t\t$localized_content = array(\n+\t\t\t\t\t\t'description'     => __( \"WooCommerce Shipping is almost ready to go! Once you connect your store you'll be able to show your customers live shipping rates when they check out.\", 'woocommerce-services' ),\n+\t\t\t\t\t);\n+\t\t\t\t\tbreak;\n+\t\t\t}\n+\n+\t\t\t$this->show_nux_banner( wp_parse_args( $localized_content = null, $default_content ) );","path":"classes/class-wc-connect-nux.php","position":202,"original_position":202,"commit_id":"3a7686e06596333fcef2121f7264a1e24c50a5b6","original_commit_id":"3a7686e06596333fcef2121f7264a1e24c50a5b6","user":{"login":"v18","id":11487924,"avatar_url":"https://avatars3.githubusercontent.com/u/11487924?v=3","gravatar_id":"","url":"https://api.github.com/users/v18","html_url":"https://github.com/v18","followers_url":"https://api.github.com/users/v18/followers","following_url":"https://api.github.com/users/v18/following{/other_user}","gists_url":"https://api.github.com/users/v18/gists{/gist_id}","starred_url":"https://api.github.com/users/v18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v18/subscriptions","organizations_url":"https://api.github.com/users/v18/orgs","repos_url":"https://api.github.com/users/v18/repos","events_url":"https://api.github.com/users/v18/events{/privacy}","received_events_url":"https://api.github.com/users/v18/received_events","type":"User","site_admin":false},"body":"I wouldn't want to do that since there are different defaults for `show_banner_after_connection()` and `show_banner_before_connection()`, but they both use `show_nux_banner()`.","created_at":"2017-06-16T18:55:47Z","updated_at":"2017-06-16T18:55:47Z","html_url":"https://github.com/Automattic/woocommerce-services/pull/1031#discussion_r122510732","pull_request_url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031","_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/comments/122510732"},"html":{"href":"https://github.com/Automattic/woocommerce-services/pull/1031#discussion_r122510732"},"pull_request":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031","id":124190524,"html_url":"https://github.com/Automattic/woocommerce-services/pull/1031","diff_url":"https://github.com/Automattic/woocommerce-services/pull/1031.diff","patch_url":"https://github.com/Automattic/woocommerce-services/pull/1031.patch","issue_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1031","number":1031,"state":"open","locked":false,"title":"Add NUX banners","user":{"login":"v18","id":11487924,"avatar_url":"https://avatars3.githubusercontent.com/u/11487924?v=3","gravatar_id":"","url":"https://api.github.com/users/v18","html_url":"https://github.com/v18","followers_url":"https://api.github.com/users/v18/followers","following_url":"https://api.github.com/users/v18/following{/other_user}","gists_url":"https://api.github.com/users/v18/gists{/gist_id}","starred_url":"https://api.github.com/users/v18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v18/subscriptions","organizations_url":"https://api.github.com/users/v18/orgs","repos_url":"https://api.github.com/users/v18/repos","events_url":"https://api.github.com/users/v18/events{/privacy}","received_events_url":"https://api.github.com/users/v18/received_events","type":"User","site_admin":false},"body":"# Changes in this PR\r\n1. A new function, `set_up_nux_notices()`, to show banners is hooked into `admin_init` in `WC_Connect_Loader->init()`\r\n2. `set_up_nux_notices()` checks for Jetpack status and user capabilities and either adds a banner using `admin_notice` before or after a Jetpack connection is established\r\n3. Each notice may show different content based on:\r\n- new store owner vs existing (based on # of orders)\r\n- Jetpack status\r\n4. All Jetpack actions are done using js - install, activate, connect\r\n\r\nVideo of flow:\r\n\r\nhttps://cloudup.com/cxrZz773unw\r\n\r\ncc @olaolusoga \r\n\r\n# Changes not in this PR (coming soon to a PR near you!)\r\n- removing the older TOS and JP connect notices\r\n- button action/link after connection is done\r\n- removing the JP notice on the plugins page\r\n- styles\r\n","created_at":"2017-06-06T13:28:43Z","updated_at":"2017-06-16T18:55:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f75a181e7fbb5db48db55e282ed3a1e4d8d7ad15","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031/commits","review_comments_url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031/comments","review_comment_url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1031/comments","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-services/statuses/3a7686e06596333fcef2121f7264a1e24c50a5b6","head":{"label":"Automattic:add/nux-jitm","ref":"add/nux-jitm","sha":"3a7686e06596333fcef2121f7264a1e24c50a5b6","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.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-services","full_name":"Automattic/woocommerce-services","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.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-services","description":"WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (2.6), and currently includes real time USPS and Canada Post shipping rates and the ability to purchase and print USPS shipping labels.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-services","forks_url":"https://api.github.com/repos/Automattic/woocommerce-services/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-services/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-services/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-services/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-services/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-services/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-services/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-services/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-services/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-services/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-services/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-services/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-services/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-services/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-services/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-services/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-services/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-services/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-services/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-services/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2017-06-13T19:43:53Z","pushed_at":"2017-06-16T18:07:52Z","git_url":"git://github.com/Automattic/woocommerce-services.git","ssh_url":"git@github.com:Automattic/woocommerce-services.git","clone_url":"https://github.com/Automattic/woocommerce-services.git","svn_url":"https://github.com/Automattic/woocommerce-services","homepage":"","size":3927,"stargazers_count":44,"watchers_count":44,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":150,"forks":3,"open_issues":150,"watchers":44,"default_branch":"master"}},"base":{"label":"Automattic:q2-nux","ref":"q2-nux","sha":"b98ab1c14a2e93505f9448189107526551c21521","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.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-services","full_name":"Automattic/woocommerce-services","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.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-services","description":"WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (2.6), and currently includes real time USPS and Canada Post shipping rates and the ability to purchase and print USPS shipping labels.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-services","forks_url":"https://api.github.com/repos/Automattic/woocommerce-services/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-services/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-services/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-services/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-services/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-services/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-services/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-services/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-services/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-services/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-services/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-services/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-services/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-services/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-services/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-services/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-services/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-services/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-services/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-services/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-services/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2017-06-13T19:43:53Z","pushed_at":"2017-06-16T18:07:52Z","git_url":"git://github.com/Automattic/woocommerce-services.git","ssh_url":"git@github.com:Automattic/woocommerce-services.git","clone_url":"https://github.com/Automattic/woocommerce-services.git","svn_url":"https://github.com/Automattic/woocommerce-services","homepage":"","size":3927,"stargazers_count":44,"watchers_count":44,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":150,"forks":3,"open_issues":150,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031"},"html":{"href":"https://github.com/Automattic/woocommerce-services/pull/1031"},"issue":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1031"},"comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1031/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/pulls/1031/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/woocommerce-services/statuses/3a7686e06596333fcef2121f7264a1e24c50a5b6"}}}}
{"actor":{"display_login":"v18"}}