{"action":"created","issue":{"url":"https://api.github.com/repos/SamVerschueren/listr/issues/13","repository_url":"https://api.github.com/repos/SamVerschueren/listr","labels_url":"https://api.github.com/repos/SamVerschueren/listr/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/SamVerschueren/listr/issues/13/comments","events_url":"https://api.github.com/repos/SamVerschueren/listr/issues/13/events","html_url":"https://github.com/SamVerschueren/listr/issues/13","id":165767381,"number":13,"title":"Weird output","user":{"login":"YurySolovyov","id":2168518,"avatar_url":"https://avatars.githubusercontent.com/u/2168518?v=3","gravatar_id":"","url":"https://api.github.com/users/YurySolovyov","html_url":"https://github.com/YurySolovyov","followers_url":"https://api.github.com/users/YurySolovyov/followers","following_url":"https://api.github.com/users/YurySolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YurySolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YurySolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YurySolovyov/subscriptions","organizations_url":"https://api.github.com/users/YurySolovyov/orgs","repos_url":"https://api.github.com/users/YurySolovyov/repos","events_url":"https://api.github.com/users/YurySolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YurySolovyov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T11:32:13Z","updated_at":"2016-07-15T11:33:35Z","closed_at":null,"body":"running\r\n```js\r\nconst Listr = require('listr');\r\n\r\nconst tasks = new Listr([\r\n  {\r\n    title: 'Task1',\r\n    task: function() {\r\n      return new Promise(function(resolve) {\r\n        setTimeout(resolve, 1000);\r\n      });\r\n    }\r\n  },\r\n  {\r\n    title: 'Task Two',\r\n    task: function() {\r\n      return new Promise(function(resolve) {\r\n        setTimeout(resolve, 700);\r\n      });\r\n    }\r\n  },\r\n  {\r\n    title: 'Task Next',\r\n    task: function() {\r\n      return new Promise(function(resolve) {\r\n        setTimeout(resolve, 700);\r\n      }).then(function() {\r\n        return new Promise(function(resolve) {\r\n          console.log('running ...');\r\n          setTimeout(resolve, 700);\r\n        });\r\n      });\r\n    }\r\n  }\r\n]);\r\n\r\ntasks.run();\r\n```\r\n\r\noutputs:\r\n```\r\nnode index\r\n\r\n ✔ Task1\r\n ✔ Task1\r\n ✔ Task Two\r\n ✔ Task Next\r\n```\r\n\r\neven though Task1 is set only once. Also, `running ...` does not gets printed at all"},"comment":{"url":"https://api.github.com/repos/SamVerschueren/listr/issues/comments/232929420","html_url":"https://github.com/SamVerschueren/listr/issues/13#issuecomment-232929420","issue_url":"https://api.github.com/repos/SamVerschueren/listr/issues/13","id":232929420,"user":{"login":"SamVerschueren","id":1913805,"avatar_url":"https://avatars.githubusercontent.com/u/1913805?v=3","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T11:33:35Z","updated_at":"2016-07-15T11:33:35Z","body":"Might be related with #7 "}}
{"actor":{"display_login":"SamVerschueren"}}