{"action":"created","comment":{"url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/comments/210854561","pull_request_review_id":147157387,"id":210854561,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDg1NDU2MQ==","diff_hunk":"@@ -71,79 +70,167 @@ class TargetRuleRepository implements TargetRuleRepositoryInterface\n      */\n     private $targetRuleIndex;\n \n+    /**\n+     * @var \\Magento\\TargetRule\\Model\\Rule\n+     */\n+    private $targetRuleClass;\n+\n     /**\n      * Product Visibility Model\n      * @var Visibility $visibility\n      */\n     private $visibility;\n \n+    /**\n+     * @var TargetRuleProductsFactory\n+     */\n+    private $targetRuleProductsFactory;\n+\n+    /**\n+     * @var $targetRuleProducts \\Acquia\\CommerceManager\\Model\\TargetRuleProducts\n+     */\n+    public $relatedProducts;\n+\n     /**\n      * Constructor\n      *\n+     * @param TargetRuleProductsFactory $targetRuleProductsFactory\n      * @param ModuleListInterface $moduleList\n+     * @param ProductRepositoryInterface $productRepository\n+     * @param CollectionFactory $productCollectionFactory\n+     * @param Visibility $visibility\n      */\n     public function __construct(\n+        TargetRuleProductsFactory $targetRuleProductsFactory,\n         ModuleListInterface $moduleList,\n         ProductRepositoryInterface $productRepository,\n         CollectionFactory $productCollectionFactory,\n         Visibility $visibility\n     ) {\n+        $this->targetRuleProductsFactory = $targetRuleProductsFactory;\n         $this->moduleList = $moduleList;\n         $this->productRepository = $productRepository;\n         $this->productCollectionFactory = $productCollectionFactory;\n         $this->visibility = $visibility;\n     }\n \n+\n     /**\n+     * getProductsByType\n+     *\n+     * Returns lists of product relations by type and product sku.\n+     *\n+     * Public method here allows others to plugin around this method *but*\n+     * please add your custom relation types under extension_attributes\n+     * if you want them to be processed by ACM Commerce Connector so the\n+     * returned data object might look like this:\n+     * {\n+     *     \"crosssell\": [\n+     *         \"sku1\",\n+     *         \"sku2\"\n+     *     ],\n+     *     \"related\": [\n+     *         \"sku3\",\n+     *         \"sku4\"\n+     *     ],\n+     *     \"upsell\": [],\n+     *     \"extension_attributes\": {\n+     *         \"popular_together\": [\n+     *             \"sku5\",\n+     *             \"sku6\"\n+     *         ],\n+     *         \"similar_colors\": [\n+     *             \"sku3x\",\n+     *             \"sku4x\"\n+     *         ]\n+     *     }\n+     * }\n+     *\n      * {@inheritDoc}\n      *\n      * @param string $sku Product SKU\n-     * @param string $type Link Type: ['related', 'upsell', 'crosssell', 'all']\n+     * @param string $type Link Type: ['related', 'upsell', 'crosssell', 'extension_attributes', 'all']\n      *\n      * @return \\Acquia\\CommerceManager\\Api\\Data\\TargetRuleProductsInterface $products\n      */\n-    public function getProductsByType($sku, $type)\n+    public function getRelatedProductsByType($sku, $type)\n     {\n-        $result = [];\n+        return $this->_getRelatedProductsByType($sku, $type);\n+    }\n \n-        if (!$this->targetModuleEnabled()) {\n-            return (new TargetRuleProducts());\n-        }\n+    /**\n+     * {@inheritDoc}\n+     *\n+     * @param string $sku Product SKU\n+     * @param string $type Link Type: ['related', 'upsell', 'crosssell', 'extension', 'all']\n+     *\n+     * @return \\Acquia\\CommerceManager\\Api\\Data\\TargetRuleProductsInterface $products\n+     */\n+    protected function _getRelatedProductsByType($sku, $type)\n+    {\n+        $this->relatedProducts = $this->targetRuleProductsFactory->create();\n+        $this->relatedProducts->setSku($sku);\n+        $this->relatedProducts->setType($type);\n \n-        $ruleClass = 'Magento\\TargetRule\\Model\\Rule';\n-        $types = [\n-            'related' => constant($ruleClass . '::RELATED_PRODUCTS'),\n-            'upsell' => constant($ruleClass . '::UP_SELLS'),\n-            'crosssell' => constant($ruleClass . '::CROSS_SELLS'),\n-        ];\n+        // Initialise with empty arrays (a convention of the ACM Commerce Connector)\n+        $this->relatedProducts->setCrosssell([]);\n+        $this->relatedProducts->setUpsell([]);\n+        $this->relatedProducts->setRelated([]);\n \n-        if (!isset($types[$type]) && ($type !== self::ALL_TYPES)) {\n-            throw new \\InvalidArgumentException(sprintf(\n-                'Invalid relation type %s.',\n-                $type\n-            ));\n+        if (!$this->targetModuleEnabled()) {\n+            return $this->relatedProducts;\n         }\n \n-        $getTypes = ($type === self::ALL_TYPES) ? array_keys($types) : [$type];\n+        $ruleClass = $this->getTargetRuleClass();\n \n-        $product = $this->productRepository->get($sku);\n-        $excludeIds = [$product->getId()];\n+        $types = [\n+            $this->relatedProducts::CROSS_SELL => $ruleClass::CROSS_SELLS,\n+            $this->relatedProducts::UP_SELL => $ruleClass::UP_SELLS,\n+            $this->relatedProducts::RELATED => $ruleClass::RELATED_PRODUCTS,\n+        ];\n \n-        foreach ($getTypes as $type) {\n-            $products = $this->getRuleProducts($types[$type], $product);\n-            $typeProducts = [];\n-            foreach ($products as $typeProduct) {\n-                $typeProducts[] = $typeProduct->getSku();\n+        // Only fetch relation types if we recognize the type.\n+        if (isset($types[$type]) || ($type == self::ALL_TYPES)) {\n+            $getTypes = [$type];\n+            if ($type === self::ALL_TYPES)","path":"Model/TargetRuleRepository.php","position":162,"original_position":162,"commit_id":"f9866797300a7da360ba72794d37172eb4736ad7","original_commit_id":"f9866797300a7da360ba72794d37172eb4736ad7","user":{"login":"sdelbosc","id":4236694,"node_id":"MDQ6VXNlcjQyMzY2OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4236694?v=4","gravatar_id":"","url":"https://api.github.com/users/sdelbosc","html_url":"https://github.com/sdelbosc","followers_url":"https://api.github.com/users/sdelbosc/followers","following_url":"https://api.github.com/users/sdelbosc/following{/other_user}","gists_url":"https://api.github.com/users/sdelbosc/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelbosc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelbosc/subscriptions","organizations_url":"https://api.github.com/users/sdelbosc/orgs","repos_url":"https://api.github.com/users/sdelbosc/repos","events_url":"https://api.github.com/users/sdelbosc/events{/privacy}","received_events_url":"https://api.github.com/users/sdelbosc/received_events","type":"User","site_admin":false},"body":"I am not sure I get the purpose of the 'all' type, when do you plan to use this?","created_at":"2018-08-17T09:29:38Z","updated_at":"2018-08-17T09:29:38Z","html_url":"https://github.com/acquia/commerce-manager-magento/pull/48#discussion_r210854561","pull_request_url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/comments/210854561"},"html":{"href":"https://github.com/acquia/commerce-manager-magento/pull/48#discussion_r210854561"},"pull_request":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48","id":208986260,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4OTg2MjYw","html_url":"https://github.com/acquia/commerce-manager-magento/pull/48","diff_url":"https://github.com/acquia/commerce-manager-magento/pull/48.diff","patch_url":"https://github.com/acquia/commerce-manager-magento/pull/48.patch","issue_url":"https://api.github.com/repos/acquia/commerce-manager-magento/issues/48","number":48,"state":"open","locked":false,"title":"Make getRelatedProducts extensible","user":{"login":"malachy-mcconnell","id":6051548,"node_id":"MDQ6VXNlcjYwNTE1NDg=","avatar_url":"https://avatars1.githubusercontent.com/u/6051548?v=4","gravatar_id":"","url":"https://api.github.com/users/malachy-mcconnell","html_url":"https://github.com/malachy-mcconnell","followers_url":"https://api.github.com/users/malachy-mcconnell/followers","following_url":"https://api.github.com/users/malachy-mcconnell/following{/other_user}","gists_url":"https://api.github.com/users/malachy-mcconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/malachy-mcconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malachy-mcconnell/subscriptions","organizations_url":"https://api.github.com/users/malachy-mcconnell/orgs","repos_url":"https://api.github.com/users/malachy-mcconnell/repos","events_url":"https://api.github.com/users/malachy-mcconnell/events{/privacy}","received_events_url":"https://api.github.com/users/malachy-mcconnell/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-16T21:12:47Z","updated_at":"2018-08-17T09:29:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b1fa6f78bc1e15d99ee9c694d8df943d1b38d3e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48/commits","review_comments_url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48/comments","review_comment_url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acquia/commerce-manager-magento/issues/48/comments","statuses_url":"https://api.github.com/repos/acquia/commerce-manager-magento/statuses/f9866797300a7da360ba72794d37172eb4736ad7","head":{"label":"malachy-mcconnell:dev-1","ref":"dev-1","sha":"f9866797300a7da360ba72794d37172eb4736ad7","user":{"login":"malachy-mcconnell","id":6051548,"node_id":"MDQ6VXNlcjYwNTE1NDg=","avatar_url":"https://avatars1.githubusercontent.com/u/6051548?v=4","gravatar_id":"","url":"https://api.github.com/users/malachy-mcconnell","html_url":"https://github.com/malachy-mcconnell","followers_url":"https://api.github.com/users/malachy-mcconnell/followers","following_url":"https://api.github.com/users/malachy-mcconnell/following{/other_user}","gists_url":"https://api.github.com/users/malachy-mcconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/malachy-mcconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malachy-mcconnell/subscriptions","organizations_url":"https://api.github.com/users/malachy-mcconnell/orgs","repos_url":"https://api.github.com/users/malachy-mcconnell/repos","events_url":"https://api.github.com/users/malachy-mcconnell/events{/privacy}","received_events_url":"https://api.github.com/users/malachy-mcconnell/received_events","type":"User","site_admin":false},"repo":{"id":130099924,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwOTk5MjQ=","name":"commerce-manager-magento","full_name":"malachy-mcconnell/commerce-manager-magento","owner":{"login":"malachy-mcconnell","id":6051548,"node_id":"MDQ6VXNlcjYwNTE1NDg=","avatar_url":"https://avatars1.githubusercontent.com/u/6051548?v=4","gravatar_id":"","url":"https://api.github.com/users/malachy-mcconnell","html_url":"https://github.com/malachy-mcconnell","followers_url":"https://api.github.com/users/malachy-mcconnell/followers","following_url":"https://api.github.com/users/malachy-mcconnell/following{/other_user}","gists_url":"https://api.github.com/users/malachy-mcconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/malachy-mcconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malachy-mcconnell/subscriptions","organizations_url":"https://api.github.com/users/malachy-mcconnell/orgs","repos_url":"https://api.github.com/users/malachy-mcconnell/repos","events_url":"https://api.github.com/users/malachy-mcconnell/events{/privacy}","received_events_url":"https://api.github.com/users/malachy-mcconnell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malachy-mcconnell/commerce-manager-magento","description":"A Magento 2.x module which connects Magento eCommerce stores to Acquia's Commerce Connector Service so that site builders can easily and rapidly integrate and build out digital commerce experiences in Drupal.","fork":true,"url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento","forks_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/forks","keys_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/teams","hooks_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/hooks","issue_events_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/issues/events{/number}","events_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/events","assignees_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/assignees{/user}","branches_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/branches{/branch}","tags_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/tags","blobs_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/git/refs{/sha}","trees_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/statuses/{sha}","languages_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/languages","stargazers_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/stargazers","contributors_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/contributors","subscribers_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/subscribers","subscription_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/subscription","commits_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/commits{/sha}","git_commits_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/git/commits{/sha}","comments_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/comments{/number}","issue_comment_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/issues/comments{/number}","contents_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/contents/{+path}","compare_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/merges","archive_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/downloads","issues_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/issues{/number}","pulls_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/pulls{/number}","milestones_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/milestones{/number}","notifications_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/labels{/name}","releases_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/releases{/id}","deployments_url":"https://api.github.com/repos/malachy-mcconnell/commerce-manager-magento/deployments","created_at":"2018-04-18T17:40:59Z","updated_at":"2018-08-07T18:28:57Z","pushed_at":"2018-08-16T21:10:58Z","git_url":"git://github.com/malachy-mcconnell/commerce-manager-magento.git","ssh_url":"git@github.com:malachy-mcconnell/commerce-manager-magento.git","clone_url":"https://github.com/malachy-mcconnell/commerce-manager-magento.git","svn_url":"https://github.com/malachy-mcconnell/commerce-manager-magento","homepage":"","size":149,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"osl-3.0","name":"Open Software License 3.0","spdx_id":"OSL-3.0","url":"https://api.github.com/licenses/osl-3.0","node_id":"MDc6TGljZW5zZTE2"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"acquia:master","ref":"master","sha":"3bcc25a58347ece57dba89f02deb7d1b9094e596","user":{"login":"acquia","id":514789,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNDc4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/514789?v=4","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"repo":{"id":129421921,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk0MjE5MjE=","name":"commerce-manager-magento","full_name":"acquia/commerce-manager-magento","owner":{"login":"acquia","id":514789,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNDc4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/514789?v=4","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquia/commerce-manager-magento","description":"A Magento 2.x module which connects Magento eCommerce stores to Acquia's Commerce Connector Service so that site builders can easily and rapidly integrate and build out digital commerce experiences in Drupal.","fork":false,"url":"https://api.github.com/repos/acquia/commerce-manager-magento","forks_url":"https://api.github.com/repos/acquia/commerce-manager-magento/forks","keys_url":"https://api.github.com/repos/acquia/commerce-manager-magento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquia/commerce-manager-magento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquia/commerce-manager-magento/teams","hooks_url":"https://api.github.com/repos/acquia/commerce-manager-magento/hooks","issue_events_url":"https://api.github.com/repos/acquia/commerce-manager-magento/issues/events{/number}","events_url":"https://api.github.com/repos/acquia/commerce-manager-magento/events","assignees_url":"https://api.github.com/repos/acquia/commerce-manager-magento/assignees{/user}","branches_url":"https://api.github.com/repos/acquia/commerce-manager-magento/branches{/branch}","tags_url":"https://api.github.com/repos/acquia/commerce-manager-magento/tags","blobs_url":"https://api.github.com/repos/acquia/commerce-manager-magento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquia/commerce-manager-magento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquia/commerce-manager-magento/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquia/commerce-manager-magento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquia/commerce-manager-magento/statuses/{sha}","languages_url":"https://api.github.com/repos/acquia/commerce-manager-magento/languages","stargazers_url":"https://api.github.com/repos/acquia/commerce-manager-magento/stargazers","contributors_url":"https://api.github.com/repos/acquia/commerce-manager-magento/contributors","subscribers_url":"https://api.github.com/repos/acquia/commerce-manager-magento/subscribers","subscription_url":"https://api.github.com/repos/acquia/commerce-manager-magento/subscription","commits_url":"https://api.github.com/repos/acquia/commerce-manager-magento/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquia/commerce-manager-magento/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquia/commerce-manager-magento/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquia/commerce-manager-magento/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquia/commerce-manager-magento/contents/{+path}","compare_url":"https://api.github.com/repos/acquia/commerce-manager-magento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquia/commerce-manager-magento/merges","archive_url":"https://api.github.com/repos/acquia/commerce-manager-magento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquia/commerce-manager-magento/downloads","issues_url":"https://api.github.com/repos/acquia/commerce-manager-magento/issues{/number}","pulls_url":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls{/number}","milestones_url":"https://api.github.com/repos/acquia/commerce-manager-magento/milestones{/number}","notifications_url":"https://api.github.com/repos/acquia/commerce-manager-magento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquia/commerce-manager-magento/labels{/name}","releases_url":"https://api.github.com/repos/acquia/commerce-manager-magento/releases{/id}","deployments_url":"https://api.github.com/repos/acquia/commerce-manager-magento/deployments","created_at":"2018-04-13T15:37:11Z","updated_at":"2018-08-13T14:33:18Z","pushed_at":"2018-08-16T21:12:47Z","git_url":"git://github.com/acquia/commerce-manager-magento.git","ssh_url":"git@github.com:acquia/commerce-manager-magento.git","clone_url":"https://github.com/acquia/commerce-manager-magento.git","svn_url":"https://github.com/acquia/commerce-manager-magento","homepage":"","size":154,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"osl-3.0","name":"Open Software License 3.0","spdx_id":"OSL-3.0","url":"https://api.github.com/licenses/osl-3.0","node_id":"MDc6TGljZW5zZTE2"},"forks":6,"open_issues":10,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48"},"html":{"href":"https://github.com/acquia/commerce-manager-magento/pull/48"},"issue":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/issues/48"},"comments":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/acquia/commerce-manager-magento/statuses/f9866797300a7da360ba72794d37172eb4736ad7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sdelbosc"}}