{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/generator/issues/1087","repository_url":"https://api.github.com/repos/yeoman/generator","labels_url":"https://api.github.com/repos/yeoman/generator/issues/1087/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator/issues/1087/comments","events_url":"https://api.github.com/repos/yeoman/generator/issues/1087/events","html_url":"https://github.com/yeoman/generator/issues/1087","id":346343777,"node_id":"MDU6SXNzdWUzNDYzNDM3Nzc=","number":1087,"title":"passing an object to the `prompt` method","user":{"login":"aleclarson","id":1925840,"node_id":"MDQ6VXNlcjE5MjU4NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1925840?v=4","gravatar_id":"","url":"https://api.github.com/users/aleclarson","html_url":"https://github.com/aleclarson","followers_url":"https://api.github.com/users/aleclarson/followers","following_url":"https://api.github.com/users/aleclarson/following{/other_user}","gists_url":"https://api.github.com/users/aleclarson/gists{/gist_id}","starred_url":"https://api.github.com/users/aleclarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleclarson/subscriptions","organizations_url":"https://api.github.com/users/aleclarson/orgs","repos_url":"https://api.github.com/users/aleclarson/repos","events_url":"https://api.github.com/users/aleclarson/events{/privacy}","received_events_url":"https://api.github.com/users/aleclarson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T20:22:27Z","updated_at":"2018-08-01T15:18:53Z","closed_at":"2018-08-01T15:18:53Z","author_association":"NONE","body":"When an object is passed to `prompt`, why doesn't the returned promise resolve with the value, instead of wrapping it in an object? If the value was **not** wrapped, the `name` field wouldn't be necessary."},"comment":{"url":"https://api.github.com/repos/yeoman/generator/issues/comments/409612437","html_url":"https://github.com/yeoman/generator/issues/1087#issuecomment-409612437","issue_url":"https://api.github.com/repos/yeoman/generator/issues/1087","id":409612437,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTYxMjQzNw==","user":{"login":"SBoudrias","id":923865,"node_id":"MDQ6VXNlcjkyMzg2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/923865?v=4","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T15:18:52Z","updated_at":"2018-08-01T15:18:52Z","author_association":"MEMBER","body":"This would've made sense - but now it's a little too late to make the change on Yeoman side as a lot of generators have been created already.\r\n\r\nFWIW, I'm working on a refactor of Inquirer which is actually gonna do this properly. https://github.com/SBoudrias/Inquirer.js/issues/692 - Help is welcomed by the way!\r\n\r\nI'll close this ticket as we're not planning to change the prompt API."}}
{"actor":{"display_login":"SBoudrias"}}