{"action":"opened","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5771","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5771/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5771/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5771/events","html_url":"https://github.com/composer/composer/issues/5771","id":181773947,"number":5771,"title":"Composer config adds to wrong \"extra\" block if defined in custom package","user":{"login":"kirkmadera","id":1686495,"avatar_url":"https://avatars.githubusercontent.com/u/1686495?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkmadera","html_url":"https://github.com/kirkmadera","followers_url":"https://api.github.com/users/kirkmadera/followers","following_url":"https://api.github.com/users/kirkmadera/following{/other_user}","gists_url":"https://api.github.com/users/kirkmadera/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkmadera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkmadera/subscriptions","organizations_url":"https://api.github.com/users/kirkmadera/orgs","repos_url":"https://api.github.com/users/kirkmadera/repos","events_url":"https://api.github.com/users/kirkmadera/events{/privacy}","received_events_url":"https://api.github.com/users/kirkmadera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T21:43:51Z","updated_at":"2016-10-07T21:43:51Z","closed_at":null,"body":"I am running composer 1.2.1.\r\n\r\nMy `composer.json`:\r\n<details>\r\n<summary>CLICK TO EXPAND</summary>\r\n```json\r\n{\r\n    \"minimum-stability\": \"dev\",\r\n    \"prefer-stable\": true,\r\n    \"repositories\": [\r\n        {\r\n            \"type\": \"package\",\r\n            \"package\": {\r\n                \"name\": \"connect20/dotmailermagento\",\r\n                \"type\": \"magento-module\",\r\n                \"license\": \"\",\r\n                \"description\": \"Sophisticated email marketing with dotmailer. RFM analysis, lost baskets, product recommendations and more.\",\r\n                \"authors\": [\r\n                    {\r\n                        \"name\": \"\",\r\n                        \"email\": \"\"\r\n                    }\r\n                ],\r\n                \"version\": \"6.0.0\",\r\n                \"dist\": {\r\n                    \"type\": \"tar\",\r\n                    \"url\": \"https://connect20.magentocommerce.com/community/dotmailermagento/6.0.0/dotmailermagento-6.0.0.tgz\"\r\n                },\r\n                \"extra\": {\r\n                    \"package-xml\": \"package.xml\"\r\n                }\r\n            }\r\n        }\r\n    ],\r\n    \"require\": {\r\n        \"magento-hackathon/magento-composer-installer\": \"^3.0.7\",\r\n        \"connect20/dotmailermagento\": \"6.0.*\"\r\n    },\r\n    \"extra\": {\r\n        \"magento-root-dir\": \"htdocs\",\r\n        \"magento-deploystrategy\": \"symlink\",\r\n        \"auto-append-gitignore\": true\r\n    }\r\n}\r\n```\r\n</details>\r\n\r\nWhen I run this command:\r\n```\r\ncomposer config extra.magento-force true\r\n```\r\n\r\nThe \"magento-force\" setting is added to the dotmailer package extra section. It should instead, add to the top level \"extra\" section. I am guessing this is finding the first instance of the string maybe?"}}
{"actor":{"display_login":"kirkmadera"}}