{"action":"created","comment":{"url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/comments/184332191","pull_request_review_id":115504027,"id":184332191,"diff_hunk":"@@ -0,0 +1,116 @@\n+require('dotenv').load()\n+const axios = require('axios')\n+const moment = require('moment')\n+const merge = require('lodash/fp/merge')\n+const table = require('markdown-table')\n+const delay = require('delay')\n+\n+const {getRows, headers} = require('./Rows')\n+\n+const data = require('../webpage/src/data.json')\n+\n+let rows","path":"ReadmeSrc/Readme.js","position":12,"original_position":12,"commit_id":"a13aa1c25279e98b46be005dff945ee011496acb","original_commit_id":"a13aa1c25279e98b46be005dff945ee011496acb","user":{"login":"stereobooster","id":179534,"avatar_url":"https://avatars2.githubusercontent.com/u/179534?v=4","gravatar_id":"","url":"https://api.github.com/users/stereobooster","html_url":"https://github.com/stereobooster","followers_url":"https://api.github.com/users/stereobooster/followers","following_url":"https://api.github.com/users/stereobooster/following{/other_user}","gists_url":"https://api.github.com/users/stereobooster/gists{/gist_id}","starred_url":"https://api.github.com/users/stereobooster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereobooster/subscriptions","organizations_url":"https://api.github.com/users/stereobooster/orgs","repos_url":"https://api.github.com/users/stereobooster/repos","events_url":"https://api.github.com/users/stereobooster/events{/privacy}","received_events_url":"https://api.github.com/users/stereobooster/received_events","type":"User","site_admin":false},"body":"I understand this is one-time-run script and this is not critical, but i prefer to avoid global state. It is hard to read this code. You can encapsulate `let rows` inside function which is using it and latter returns it.","created_at":"2018-04-26T09:50:51Z","updated_at":"2018-04-26T09:50:51Z","html_url":"https://github.com/MicheleBertoli/css-in-js/pull/87#discussion_r184332191","pull_request_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/comments/184332191"},"html":{"href":"https://github.com/MicheleBertoli/css-in-js/pull/87#discussion_r184332191"},"pull_request":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87","id":183687095,"html_url":"https://github.com/MicheleBertoli/css-in-js/pull/87","diff_url":"https://github.com/MicheleBertoli/css-in-js/pull/87.diff","patch_url":"https://github.com/MicheleBertoli/css-in-js/pull/87.patch","issue_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues/87","number":87,"state":"open","locked":false,"title":"Implement Mmarkdown ☕️","user":{"login":"albinotonnina","id":37283,"avatar_url":"https://avatars2.githubusercontent.com/u/37283?v=4","gravatar_id":"","url":"https://api.github.com/users/albinotonnina","html_url":"https://github.com/albinotonnina","followers_url":"https://api.github.com/users/albinotonnina/followers","following_url":"https://api.github.com/users/albinotonnina/following{/other_user}","gists_url":"https://api.github.com/users/albinotonnina/gists{/gist_id}","starred_url":"https://api.github.com/users/albinotonnina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albinotonnina/subscriptions","organizations_url":"https://api.github.com/users/albinotonnina/orgs","repos_url":"https://api.github.com/users/albinotonnina/repos","events_url":"https://api.github.com/users/albinotonnina/events{/privacy}","received_events_url":"https://api.github.com/users/albinotonnina/received_events","type":"User","site_admin":false},"body":"Hello Michele!\r\nI wanted to try [mmarkdown](https://github.com/albinotonnina/mmarkdown) for the first time here, since it's this project that gave me the idea.\r\n\r\nYou can see my version of the new Readme [here](https://github.com/albinotonnina/css-in-js/tree/mmarkdown)\r\n\r\n### What I did:\r\n* mmarkdown! 😄 [code here](https://github.com/albinotonnina/css-in-js/tree/mmarkdown/ReadmeSrc). I call a githup API and `make` the markdown.\r\n\r\n* moved files: Since the Readme got longer, and since I linked the demo folder under each package, I thought that removing some scrolling for the users by moving the demo packages in a subfolder was a good idea :)\r\n\r\n* added a link to mmarkdown in the readme 😅\r\n\r\n### What I'm adding\r\nStars, last npm version, repo description, open issues, forks, author data, license, creation date, archived state.\r\nEach package in the table links to a package 'card' down in the file\r\n\r\n### What is not that right\r\nI created a data.json file with the features you produced. Realized only later that you already have one and use it for both the web app (which again I noticed too late) and the readme file.\r\nWhat I propose to solve this is to generate a json file from my new code and have that for the webapp.\r\n\r\nAlso, I used a trick to save on ajax calls to the github APIs.\r\nI created a new github user and I just starred every repo in the project. Then I call a user's `/starred` API to get the list and the data. This is a bit smelly. ","created_at":"2018-04-24T10:16:36Z","updated_at":"2018-04-26T09:50:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7018060fcb8f342ad4a2a636917e387137c65c1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87/commits","review_comments_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87/comments","review_comment_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues/87/comments","statuses_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/statuses/a13aa1c25279e98b46be005dff945ee011496acb","head":{"label":"albinotonnina:mmarkdown","ref":"mmarkdown","sha":"a13aa1c25279e98b46be005dff945ee011496acb","user":{"login":"albinotonnina","id":37283,"avatar_url":"https://avatars2.githubusercontent.com/u/37283?v=4","gravatar_id":"","url":"https://api.github.com/users/albinotonnina","html_url":"https://github.com/albinotonnina","followers_url":"https://api.github.com/users/albinotonnina/followers","following_url":"https://api.github.com/users/albinotonnina/following{/other_user}","gists_url":"https://api.github.com/users/albinotonnina/gists{/gist_id}","starred_url":"https://api.github.com/users/albinotonnina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albinotonnina/subscriptions","organizations_url":"https://api.github.com/users/albinotonnina/orgs","repos_url":"https://api.github.com/users/albinotonnina/repos","events_url":"https://api.github.com/users/albinotonnina/events{/privacy}","received_events_url":"https://api.github.com/users/albinotonnina/received_events","type":"User","site_admin":false},"repo":{"id":130753929,"name":"css-in-js","full_name":"albinotonnina/css-in-js","owner":{"login":"albinotonnina","id":37283,"avatar_url":"https://avatars2.githubusercontent.com/u/37283?v=4","gravatar_id":"","url":"https://api.github.com/users/albinotonnina","html_url":"https://github.com/albinotonnina","followers_url":"https://api.github.com/users/albinotonnina/followers","following_url":"https://api.github.com/users/albinotonnina/following{/other_user}","gists_url":"https://api.github.com/users/albinotonnina/gists{/gist_id}","starred_url":"https://api.github.com/users/albinotonnina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albinotonnina/subscriptions","organizations_url":"https://api.github.com/users/albinotonnina/orgs","repos_url":"https://api.github.com/users/albinotonnina/repos","events_url":"https://api.github.com/users/albinotonnina/events{/privacy}","received_events_url":"https://api.github.com/users/albinotonnina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albinotonnina/css-in-js","description":"React: CSS in JS techniques comparison","fork":true,"url":"https://api.github.com/repos/albinotonnina/css-in-js","forks_url":"https://api.github.com/repos/albinotonnina/css-in-js/forks","keys_url":"https://api.github.com/repos/albinotonnina/css-in-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albinotonnina/css-in-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albinotonnina/css-in-js/teams","hooks_url":"https://api.github.com/repos/albinotonnina/css-in-js/hooks","issue_events_url":"https://api.github.com/repos/albinotonnina/css-in-js/issues/events{/number}","events_url":"https://api.github.com/repos/albinotonnina/css-in-js/events","assignees_url":"https://api.github.com/repos/albinotonnina/css-in-js/assignees{/user}","branches_url":"https://api.github.com/repos/albinotonnina/css-in-js/branches{/branch}","tags_url":"https://api.github.com/repos/albinotonnina/css-in-js/tags","blobs_url":"https://api.github.com/repos/albinotonnina/css-in-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albinotonnina/css-in-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albinotonnina/css-in-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/albinotonnina/css-in-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albinotonnina/css-in-js/statuses/{sha}","languages_url":"https://api.github.com/repos/albinotonnina/css-in-js/languages","stargazers_url":"https://api.github.com/repos/albinotonnina/css-in-js/stargazers","contributors_url":"https://api.github.com/repos/albinotonnina/css-in-js/contributors","subscribers_url":"https://api.github.com/repos/albinotonnina/css-in-js/subscribers","subscription_url":"https://api.github.com/repos/albinotonnina/css-in-js/subscription","commits_url":"https://api.github.com/repos/albinotonnina/css-in-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/albinotonnina/css-in-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/albinotonnina/css-in-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/albinotonnina/css-in-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/albinotonnina/css-in-js/contents/{+path}","compare_url":"https://api.github.com/repos/albinotonnina/css-in-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albinotonnina/css-in-js/merges","archive_url":"https://api.github.com/repos/albinotonnina/css-in-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albinotonnina/css-in-js/downloads","issues_url":"https://api.github.com/repos/albinotonnina/css-in-js/issues{/number}","pulls_url":"https://api.github.com/repos/albinotonnina/css-in-js/pulls{/number}","milestones_url":"https://api.github.com/repos/albinotonnina/css-in-js/milestones{/number}","notifications_url":"https://api.github.com/repos/albinotonnina/css-in-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albinotonnina/css-in-js/labels{/name}","releases_url":"https://api.github.com/repos/albinotonnina/css-in-js/releases{/id}","deployments_url":"https://api.github.com/repos/albinotonnina/css-in-js/deployments","created_at":"2018-04-23T20:38:36Z","updated_at":"2018-04-23T20:38:38Z","pushed_at":"2018-04-26T09:18:31Z","git_url":"git://github.com/albinotonnina/css-in-js.git","ssh_url":"git@github.com:albinotonnina/css-in-js.git","clone_url":"https://github.com/albinotonnina/css-in-js.git","svn_url":"https://github.com/albinotonnina/css-in-js","homepage":"http://michelebertoli.github.io/css-in-js/","size":541,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MicheleBertoli:master","ref":"master","sha":"ef489586a7ca84f9b31b9692cdc9b64b755fb8ba","user":{"login":"MicheleBertoli","id":1308971,"avatar_url":"https://avatars2.githubusercontent.com/u/1308971?v=4","gravatar_id":"","url":"https://api.github.com/users/MicheleBertoli","html_url":"https://github.com/MicheleBertoli","followers_url":"https://api.github.com/users/MicheleBertoli/followers","following_url":"https://api.github.com/users/MicheleBertoli/following{/other_user}","gists_url":"https://api.github.com/users/MicheleBertoli/gists{/gist_id}","starred_url":"https://api.github.com/users/MicheleBertoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicheleBertoli/subscriptions","organizations_url":"https://api.github.com/users/MicheleBertoli/orgs","repos_url":"https://api.github.com/users/MicheleBertoli/repos","events_url":"https://api.github.com/users/MicheleBertoli/events{/privacy}","received_events_url":"https://api.github.com/users/MicheleBertoli/received_events","type":"User","site_admin":false},"repo":{"id":36229979,"name":"css-in-js","full_name":"MicheleBertoli/css-in-js","owner":{"login":"MicheleBertoli","id":1308971,"avatar_url":"https://avatars2.githubusercontent.com/u/1308971?v=4","gravatar_id":"","url":"https://api.github.com/users/MicheleBertoli","html_url":"https://github.com/MicheleBertoli","followers_url":"https://api.github.com/users/MicheleBertoli/followers","following_url":"https://api.github.com/users/MicheleBertoli/following{/other_user}","gists_url":"https://api.github.com/users/MicheleBertoli/gists{/gist_id}","starred_url":"https://api.github.com/users/MicheleBertoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicheleBertoli/subscriptions","organizations_url":"https://api.github.com/users/MicheleBertoli/orgs","repos_url":"https://api.github.com/users/MicheleBertoli/repos","events_url":"https://api.github.com/users/MicheleBertoli/events{/privacy}","received_events_url":"https://api.github.com/users/MicheleBertoli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MicheleBertoli/css-in-js","description":"React: CSS in JS techniques comparison","fork":false,"url":"https://api.github.com/repos/MicheleBertoli/css-in-js","forks_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/forks","keys_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/teams","hooks_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/hooks","issue_events_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues/events{/number}","events_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/events","assignees_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/assignees{/user}","branches_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/branches{/branch}","tags_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/tags","blobs_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/statuses/{sha}","languages_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/languages","stargazers_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/stargazers","contributors_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/contributors","subscribers_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/subscribers","subscription_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/subscription","commits_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/contents/{+path}","compare_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/merges","archive_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/downloads","issues_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues{/number}","pulls_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls{/number}","milestones_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/milestones{/number}","notifications_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/labels{/name}","releases_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/releases{/id}","deployments_url":"https://api.github.com/repos/MicheleBertoli/css-in-js/deployments","created_at":"2015-05-25T12:26:34Z","updated_at":"2018-04-26T02:08:59Z","pushed_at":"2018-04-26T09:18:33Z","git_url":"git://github.com/MicheleBertoli/css-in-js.git","ssh_url":"git@github.com:MicheleBertoli/css-in-js.git","clone_url":"https://github.com/MicheleBertoli/css-in-js.git","svn_url":"https://github.com/MicheleBertoli/css-in-js","homepage":"http://michelebertoli.github.io/css-in-js/","size":529,"stargazers_count":3231,"watchers_count":3231,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":156,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":156,"open_issues":4,"watchers":3231,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87"},"html":{"href":"https://github.com/MicheleBertoli/css-in-js/pull/87"},"issue":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues/87"},"comments":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/MicheleBertoli/css-in-js/statuses/a13aa1c25279e98b46be005dff945ee011496acb"}},"author_association":"NONE"}}
{"actor":{"display_login":"stereobooster"}}