{"action":"created","issue":{"url":"https://api.github.com/repos/groupon/gofer/issues/10","labels_url":"https://api.github.com/repos/groupon/gofer/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/groupon/gofer/issues/10/comments","events_url":"https://api.github.com/repos/groupon/gofer/issues/10/events","html_url":"https://github.com/groupon/gofer/pull/10","id":47624969,"number":10,"title":"[WIP / RFC] Basic promise API support","user":{"login":"jkrems","id":567540,"avatar_url":"https://avatars.githubusercontent.com/u/567540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkrems","html_url":"https://github.com/jkrems","followers_url":"https://api.github.com/users/jkrems/followers","following_url":"https://api.github.com/users/jkrems/following{/other_user}","gists_url":"https://api.github.com/users/jkrems/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrems/subscriptions","organizations_url":"https://api.github.com/users/jkrems/orgs","repos_url":"https://api.github.com/users/jkrems/repos","events_url":"https://api.github.com/users/jkrems/events{/privacy}","received_events_url":"https://api.github.com/users/jkrems/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-03T18:09:39Z","updated_at":"2015-03-03T23:30:18Z","closed_at":"2015-03-03T23:30:18Z","pull_request":{"url":"https://api.github.com/repos/groupon/gofer/pulls/10","html_url":"https://github.com/groupon/gofer/pull/10","diff_url":"https://github.com/groupon/gofer/pull/10.diff","patch_url":"https://github.com/groupon/gofer/pull/10.patch"},"body":"Allows for things like:\r\n\r\n```js\r\ngithub.emoji().then(function(emoji) { console.log(emoji); });\r\n\r\nPromise.all([\r\n  github.emoji()\r\n  github.repo('groupon/gofer').contents()\r\n]).spread(function(emoji, rootContents) {\r\n  // fun with emoji and the root contents of gofer\r\n});\r\n\r\nasync function evenMoreFun() {\r\n  const emoji = github.emoji();\r\n  const rootContents = github.repo('groupon/gofer').contents();\r\n\r\n  if ((await rootContents).some(entry => entry.name === 'README.md')) {\r\n    try {\r\n      console.log(await emoji);\r\n    } catch (fetchError) {\r\n      // oooh yeah\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/groupon/gofer/issues/comments/77062823","html_url":"https://github.com/groupon/gofer/pull/10#issuecomment-77062823","issue_url":"https://api.github.com/repos/groupon/gofer/issues/10","id":77062823,"user":{"login":"jkrems","id":567540,"avatar_url":"https://avatars.githubusercontent.com/u/567540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkrems","html_url":"https://github.com/jkrems","followers_url":"https://api.github.com/users/jkrems/followers","following_url":"https://api.github.com/users/jkrems/following{/other_user}","gists_url":"https://api.github.com/users/jkrems/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrems/subscriptions","organizations_url":"https://api.github.com/users/jkrems/orgs","repos_url":"https://api.github.com/users/jkrems/repos","events_url":"https://api.github.com/users/jkrems/events{/privacy}","received_events_url":"https://api.github.com/users/jkrems/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T23:30:18Z","updated_at":"2015-03-03T23:30:18Z","body":"Closing in favor of #27 which is way simpler."}}