{"action":"created","issue":{"url":"https://api.github.com/repos/terkelg/prompts/issues/18","repository_url":"https://api.github.com/repos/terkelg/prompts","labels_url":"https://api.github.com/repos/terkelg/prompts/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/terkelg/prompts/issues/18/comments","events_url":"https://api.github.com/repos/terkelg/prompts/issues/18/events","html_url":"https://github.com/terkelg/prompts/issues/18","id":301165295,"number":18,"title":"Await is only valid in async function","user":{"login":"SCKelemen","id":4325375,"avatar_url":"https://avatars1.githubusercontent.com/u/4325375?v=4","gravatar_id":"","url":"https://api.github.com/users/SCKelemen","html_url":"https://github.com/SCKelemen","followers_url":"https://api.github.com/users/SCKelemen/followers","following_url":"https://api.github.com/users/SCKelemen/following{/other_user}","gists_url":"https://api.github.com/users/SCKelemen/gists{/gist_id}","starred_url":"https://api.github.com/users/SCKelemen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCKelemen/subscriptions","organizations_url":"https://api.github.com/users/SCKelemen/orgs","repos_url":"https://api.github.com/users/SCKelemen/repos","events_url":"https://api.github.com/users/SCKelemen/events{/privacy}","received_events_url":"https://api.github.com/users/SCKelemen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-28T20:09:54Z","updated_at":"2018-03-01T08:15:03Z","closed_at":"2018-02-28T20:22:38Z","author_association":"CONTRIBUTOR","body":"This is probably some configuration mistake, but when I run the example code, I get the following error:\r\n![image](https://user-images.githubusercontent.com/4325375/36810628-4159fd54-1c99-11e8-9309-2a7b4e7d3362.png)\r\n\r\nCode: \r\n```js\r\nconst prompt = require('prompts');\r\n\r\nlet questions = [\r\n    {\r\n        type: 'text',\r\n        name: 'username',\r\n        message: 'What is your GitHub username?'\r\n    },\r\n    {\r\n        type: 'number',\r\n        name: 'age',\r\n        message: 'How old are you?'\r\n    },\r\n    {\r\n        type: 'text',\r\n        name: 'about',\r\n        message: 'Tell somethign about yourself',\r\n        initial: 'Why should I?'\r\n    }\r\n];\r\n\r\nlet response = await prompts(questions);\r\n```"},"comment":{"url":"https://api.github.com/repos/terkelg/prompts/issues/comments/369510721","html_url":"https://github.com/terkelg/prompts/issues/18#issuecomment-369510721","issue_url":"https://api.github.com/repos/terkelg/prompts/issues/18","id":369510721,"user":{"login":"olstenlarck","id":5038030,"avatar_url":"https://avatars3.githubusercontent.com/u/5038030?v=4","gravatar_id":"","url":"https://api.github.com/users/olstenlarck","html_url":"https://github.com/olstenlarck","followers_url":"https://api.github.com/users/olstenlarck/followers","following_url":"https://api.github.com/users/olstenlarck/following{/other_user}","gists_url":"https://api.github.com/users/olstenlarck/gists{/gist_id}","starred_url":"https://api.github.com/users/olstenlarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olstenlarck/subscriptions","organizations_url":"https://api.github.com/users/olstenlarck/orgs","repos_url":"https://api.github.com/users/olstenlarck/repos","events_url":"https://api.github.com/users/olstenlarck/events{/privacy}","received_events_url":"https://api.github.com/users/olstenlarck/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T08:15:03Z","updated_at":"2018-03-01T08:15:03Z","author_association":"NONE","body":"Uh oh, okey. Thanks for the link. :)"}}
{"actor":{"display_login":"olstenlarck"}}