{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/yeoman-generator-list/issues/52","repository_url":"https://api.github.com/repos/yeoman/yeoman-generator-list","labels_url":"https://api.github.com/repos/yeoman/yeoman-generator-list/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/yeoman-generator-list/issues/52/comments","events_url":"https://api.github.com/repos/yeoman/yeoman-generator-list/issues/52/events","html_url":"https://github.com/yeoman/yeoman-generator-list/pull/52","id":191257787,"number":52,"title":"Use npms.io to fetch data + use Github to store list through Travis-CI","user":{"login":"zckrs","id":3020368,"avatar_url":"https://avatars.githubusercontent.com/u/3020368?v=3","gravatar_id":"","url":"https://api.github.com/users/zckrs","html_url":"https://github.com/zckrs","followers_url":"https://api.github.com/users/zckrs/followers","following_url":"https://api.github.com/users/zckrs/following{/other_user}","gists_url":"https://api.github.com/users/zckrs/gists{/gist_id}","starred_url":"https://api.github.com/users/zckrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zckrs/subscriptions","organizations_url":"https://api.github.com/users/zckrs/orgs","repos_url":"https://api.github.com/users/zckrs/repos","events_url":"https://api.github.com/users/zckrs/events{/privacy}","received_events_url":"https://api.github.com/users/zckrs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-11-23T12:26:53Z","updated_at":"2016-11-28T21:07:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yeoman/yeoman-generator-list/pulls/52","html_url":"https://github.com/yeoman/yeoman-generator-list/pull/52","diff_url":"https://github.com/yeoman/yeoman-generator-list/pull/52.diff","patch_url":"https://github.com/yeoman/yeoman-generator-list/pull/52.patch"},"body":"This PR groups the previously commit about use npms.io to fetch data (https://github.com/yeoman/yeoman-generator-list/commit/c928917db0267288f08c0bc065cf0a3f83fe7320) and adds a feature to store list of generators as JSON on Github to avoid dependency with a tiers server (https://github.com/yeoman/yeoman-generator-list/commit/9a08537502051dbeaa8bbbd19d8e05a27496878d).\r\n\r\n## Changes\r\n\r\n### yeoman-generator-list\r\nEach build on Travis-CI for yeoman-generator-list will execute query on npms.io to store some informations about the generators.\r\nIf build succeed ([and others conditions](https://github.com/yeoman/yeoman-generator-list/pull/52/files#diff-354f30a63fb0907d4ad57269548329e3R18)) we push a commit with the JSON list on a orphan branch of yeoman-generator-list (named `cache-generators-list`)\r\n\r\n### yeoman.github.io ([PR](https://github.com/yeoman/yeoman.github.io/pull/696))\r\nWe would like get the latest version of list ([example](https://raw.githubusercontent.com/zckrs/yeoman-generator-list/cache-generators-list/cache.json)).\r\n\r\nTo accomplished:\r\n* we use [Github API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository) to get the latest SHA commit\r\n* to avoid the rate limit by Github (60req/hour) we store in localstorage the SHA with a updatedDate\r\n* we use [RawGit](http://rawgit.com/) with this SHA to serve file through MaxCDN and set proper headers\r\n\r\n### How to update the list\r\n* Each succeed build on master branch will create and push a new fresh list\r\n* We can contact Travis-CI to enable and configure a daily [Cron Job](https://docs.travis-ci.com/user/cron-jobs/)\r\n* In complementary we can trigger a new build by Travis-CI API `curl -s -X POST  -H \"Travis-API-Version: 3\" -H \"Authorization: token secret_token_here\" -H \"Content-Type: application/json\" -d '{\"request\":{\"branch\":\"master\"}}' https://api.travis-ci.org/repo/yeoman%2Fyeoman-generator-list/requests` (rate limit: 10req/hour)\r\n\r\n\r\n***\r\n* [Example of Travis build](https://travis-ci.org/zckrs/yeoman-generator-list/builds/177921596)\r\n* [Example of orphan branch](https://github.com/zckrs/yeoman-generator-list/commits/cache-generators-list)\r\n* [Final url of list](https://cdn.rawgit.com/zckrs/yeoman-generator-list/31855623798a2dd53a0b8a96aab737d945d4ad13/cache.json)"},"comment":{"url":"https://api.github.com/repos/yeoman/yeoman-generator-list/issues/comments/263394389","html_url":"https://github.com/yeoman/yeoman-generator-list/pull/52#issuecomment-263394389","issue_url":"https://api.github.com/repos/yeoman/yeoman-generator-list/issues/52","id":263394389,"user":{"login":"mischah","id":441011,"avatar_url":"https://avatars.githubusercontent.com/u/441011?v=3","gravatar_id":"","url":"https://api.github.com/users/mischah","html_url":"https://github.com/mischah","followers_url":"https://api.github.com/users/mischah/followers","following_url":"https://api.github.com/users/mischah/following{/other_user}","gists_url":"https://api.github.com/users/mischah/gists{/gist_id}","starred_url":"https://api.github.com/users/mischah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischah/subscriptions","organizations_url":"https://api.github.com/users/mischah/orgs","repos_url":"https://api.github.com/users/mischah/repos","events_url":"https://api.github.com/users/mischah/events{/privacy}","received_events_url":"https://api.github.com/users/mischah/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T21:07:07Z","updated_at":"2016-11-28T21:07:07Z","body":"Like I’ve described over here:\r\nhttps://github.com/yeoman/generator/pull/971/files#diff-354f30a63fb0907d4ad57269548329e3R31"}}
{"actor":{"display_login":"mischah"}}