{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/6426","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/6426/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/6426/comments","events_url":"https://api.github.com/repos/composer/composer/issues/6426/events","html_url":"https://github.com/composer/composer/issues/6426","id":229637335,"number":6426,"title":"Look “up” for composer.json if one doesn’t appear in the current folder","user":{"login":"rachellawson","id":807248,"avatar_url":"https://avatars3.githubusercontent.com/u/807248?v=3","gravatar_id":"","url":"https://api.github.com/users/rachellawson","html_url":"https://github.com/rachellawson","followers_url":"https://api.github.com/users/rachellawson/followers","following_url":"https://api.github.com/users/rachellawson/following{/other_user}","gists_url":"https://api.github.com/users/rachellawson/gists{/gist_id}","starred_url":"https://api.github.com/users/rachellawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachellawson/subscriptions","organizations_url":"https://api.github.com/users/rachellawson/orgs","repos_url":"https://api.github.com/users/rachellawson/repos","events_url":"https://api.github.com/users/rachellawson/events{/privacy}","received_events_url":"https://api.github.com/users/rachellawson/received_events","type":"User","site_admin":false},"labels":[{"id":237341,"url":"https://api.github.com/repos/composer/composer/labels/Feature","name":"Feature","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/18","html_url":"https://github.com/composer/composer/milestone/18","labels_url":"https://api.github.com/repos/composer/composer/milestones/18/labels","id":2368168,"number":18,"title":"1.5","description":"","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars2.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2017-03-07T06:32:21Z","updated_at":"2017-05-19T08:57:49Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2017-05-18T11:24:16Z","updated_at":"2017-05-19T09:07:41Z","closed_at":null,"body":"When I run this command:\r\n\r\n```\r\ncd some/sub/folder\r\ncomposer require xxx/yyy\r\n```\r\n\r\nAnd I expected the dependency to be added to the project’s composer dependencies.\r\n\r\nBut, I actually got a new, empty, composer.json file in the current folder.\r\n\r\nIt seems to me that we could have composer look to see if there is a composer.json file in the current folder and, if not, “look upwards” to see if one can be found. If it is, and the user confirms, it should add the dependency there.\r\n\r\nEssentially, this should be the behaviour for all composer commands except `composer init`, I think"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/302650548","html_url":"https://github.com/composer/composer/issues/6426#issuecomment-302650548","issue_url":"https://api.github.com/repos/composer/composer/issues/6426","id":302650548,"user":{"login":"jvasseur","id":849295,"avatar_url":"https://avatars2.githubusercontent.com/u/849295?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasseur","html_url":"https://github.com/jvasseur","followers_url":"https://api.github.com/users/jvasseur/followers","following_url":"https://api.github.com/users/jvasseur/following{/other_user}","gists_url":"https://api.github.com/users/jvasseur/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasseur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasseur/subscriptions","organizations_url":"https://api.github.com/users/jvasseur/orgs","repos_url":"https://api.github.com/users/jvasseur/repos","events_url":"https://api.github.com/users/jvasseur/events{/privacy}","received_events_url":"https://api.github.com/users/jvasseur/received_events","type":"User","site_admin":false},"created_at":"2017-05-19T09:07:41Z","updated_at":"2017-05-19T09:07:41Z","body":"I'm not sure what to think here. The current behavior is not intuitive but I relied on it a few times where I didn't care about creating a valid `composer.json` and just wanted to quickly add some dependencies to a new project."}}
{"actor":{"display_login":"jvasseur"}}