{"action":"created","comment":{"url":"https://api.github.com/repos/ajaymathur/build-stats/pulls/comments/220766675","pull_request_review_id":159251209,"id":220766675,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDc2NjY3NQ==","diff_hunk":"@@ -0,0 +1,8 @@\n+const { getBuildDir } = require('../utils/builds');\n+\n+async function cache({ cwd, host, user, repo }) {\n+  const cacheDir = await getBuildDir(cwd, host, user, repo);\n+  console.log(cacheDir);","path":"lib/commands/cache.js","position":5,"original_position":5,"commit_id":"f1bfa4e879bf0a4297fb8304eb10d60f2c1361b8","original_commit_id":"f1bfa4e879bf0a4297fb8304eb10d60f2c1361b8","user":{"login":"ajaymathur","id":9667784,"node_id":"MDQ6VXNlcjk2Njc3ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9667784?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaymathur","html_url":"https://github.com/ajaymathur","followers_url":"https://api.github.com/users/ajaymathur/followers","following_url":"https://api.github.com/users/ajaymathur/following{/other_user}","gists_url":"https://api.github.com/users/ajaymathur/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaymathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaymathur/subscriptions","organizations_url":"https://api.github.com/users/ajaymathur/orgs","repos_url":"https://api.github.com/users/ajaymathur/repos","events_url":"https://api.github.com/users/ajaymathur/events{/privacy}","received_events_url":"https://api.github.com/users/ajaymathur/received_events","type":"User","site_admin":false},"body":"We should also return `cacheDir`","created_at":"2018-09-27T00:55:35Z","updated_at":"2018-09-27T00:58:58Z","html_url":"https://github.com/ajaymathur/build-stats/pull/17#discussion_r220766675","pull_request_url":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ajaymathur/build-stats/pulls/comments/220766675"},"html":{"href":"https://github.com/ajaymathur/build-stats/pull/17#discussion_r220766675"},"pull_request":{"href":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17","id":218191921,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MTkxOTIx","html_url":"https://github.com/ajaymathur/build-stats/pull/17","diff_url":"https://github.com/ajaymathur/build-stats/pull/17.diff","patch_url":"https://github.com/ajaymathur/build-stats/pull/17.patch","issue_url":"https://api.github.com/repos/ajaymathur/build-stats/issues/17","number":17,"state":"open","locked":false,"title":"Adds cache command and replaces ensureDir with mkdirp","user":{"login":"lukebatchelor","id":18694878,"node_id":"MDQ6VXNlcjE4Njk0ODc4","avatar_url":"https://avatars2.githubusercontent.com/u/18694878?v=4","gravatar_id":"","url":"https://api.github.com/users/lukebatchelor","html_url":"https://github.com/lukebatchelor","followers_url":"https://api.github.com/users/lukebatchelor/followers","following_url":"https://api.github.com/users/lukebatchelor/following{/other_user}","gists_url":"https://api.github.com/users/lukebatchelor/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebatchelor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebatchelor/subscriptions","organizations_url":"https://api.github.com/users/lukebatchelor/orgs","repos_url":"https://api.github.com/users/lukebatchelor/repos","events_url":"https://api.github.com/users/lukebatchelor/events{/privacy}","received_events_url":"https://api.github.com/users/lukebatchelor/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-26T05:20:47Z","updated_at":"2018-09-27T00:58:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d06392b3877ba4cdd463b3605316e5841bc693c9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17/commits","review_comments_url":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17/comments","review_comment_url":"https://api.github.com/repos/ajaymathur/build-stats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ajaymathur/build-stats/issues/17/comments","statuses_url":"https://api.github.com/repos/ajaymathur/build-stats/statuses/f1bfa4e879bf0a4297fb8304eb10d60f2c1361b8","head":{"label":"ajaymathur:lbatch/add-cache-command","ref":"lbatch/add-cache-command","sha":"f1bfa4e879bf0a4297fb8304eb10d60f2c1361b8","user":{"login":"ajaymathur","id":9667784,"node_id":"MDQ6VXNlcjk2Njc3ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9667784?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaymathur","html_url":"https://github.com/ajaymathur","followers_url":"https://api.github.com/users/ajaymathur/followers","following_url":"https://api.github.com/users/ajaymathur/following{/other_user}","gists_url":"https://api.github.com/users/ajaymathur/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaymathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaymathur/subscriptions","organizations_url":"https://api.github.com/users/ajaymathur/orgs","repos_url":"https://api.github.com/users/ajaymathur/repos","events_url":"https://api.github.com/users/ajaymathur/events{/privacy}","received_events_url":"https://api.github.com/users/ajaymathur/received_events","type":"User","site_admin":false},"repo":{"id":116221650,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYyMjE2NTA=","name":"build-stats","full_name":"ajaymathur/build-stats","private":false,"owner":{"login":"ajaymathur","id":9667784,"node_id":"MDQ6VXNlcjk2Njc3ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9667784?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaymathur","html_url":"https://github.com/ajaymathur","followers_url":"https://api.github.com/users/ajaymathur/followers","following_url":"https://api.github.com/users/ajaymathur/following{/other_user}","gists_url":"https://api.github.com/users/ajaymathur/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaymathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaymathur/subscriptions","organizations_url":"https://api.github.com/users/ajaymathur/orgs","repos_url":"https://api.github.com/users/ajaymathur/repos","events_url":"https://api.github.com/users/ajaymathur/events{/privacy}","received_events_url":"https://api.github.com/users/ajaymathur/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ajaymathur/build-stats","description":"🏆 get the build stats for pipelines 🏆","fork":false,"url":"https://api.github.com/repos/ajaymathur/build-stats","forks_url":"https://api.github.com/repos/ajaymathur/build-stats/forks","keys_url":"https://api.github.com/repos/ajaymathur/build-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajaymathur/build-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajaymathur/build-stats/teams","hooks_url":"https://api.github.com/repos/ajaymathur/build-stats/hooks","issue_events_url":"https://api.github.com/repos/ajaymathur/build-stats/issues/events{/number}","events_url":"https://api.github.com/repos/ajaymathur/build-stats/events","assignees_url":"https://api.github.com/repos/ajaymathur/build-stats/assignees{/user}","branches_url":"https://api.github.com/repos/ajaymathur/build-stats/branches{/branch}","tags_url":"https://api.github.com/repos/ajaymathur/build-stats/tags","blobs_url":"https://api.github.com/repos/ajaymathur/build-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajaymathur/build-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajaymathur/build-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajaymathur/build-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajaymathur/build-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/ajaymathur/build-stats/languages","stargazers_url":"https://api.github.com/repos/ajaymathur/build-stats/stargazers","contributors_url":"https://api.github.com/repos/ajaymathur/build-stats/contributors","subscribers_url":"https://api.github.com/repos/ajaymathur/build-stats/subscribers","subscription_url":"https://api.github.com/repos/ajaymathur/build-stats/subscription","commits_url":"https://api.github.com/repos/ajaymathur/build-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajaymathur/build-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajaymathur/build-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajaymathur/build-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajaymathur/build-stats/contents/{+path}","compare_url":"https://api.github.com/repos/ajaymathur/build-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajaymathur/build-stats/merges","archive_url":"https://api.github.com/repos/ajaymathur/build-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajaymathur/build-stats/downloads","issues_url":"https://api.github.com/repos/ajaymathur/build-stats/issues{/number}","pulls_url":"https://api.github.com/repos/ajaymathur/build-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/ajaymathur/build-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/ajaymathur/build-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajaymathur/build-stats/labels{/name}","releases_url":"https://api.github.com/repos/ajaymathur/build-stats/releases{/id}","deployments_url":"https://api.github.com/repos/ajaymathur/build-stats/deployments","created_at":"2018-01-04T06:07:46Z","updated_at":"2018-09-25T02:33:45Z","pushed_at":"2018-09-26T05:20:48Z","git_url":"git://github.com/ajaymathur/build-stats.git","ssh_url":"git@github.com:ajaymathur/build-stats.git","clone_url":"https://github.com/ajaymathur/build-stats.git","svn_url":"https://github.com/ajaymathur/build-stats","homepage":"","size":1721,"stargazers_count":54,"watchers_count":54,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":6,"open_issues":5,"watchers":54,"default_branch":"master"}},"base":{"label":"ajaymathur:master","ref":"master","sha":"7c1dd79f899b58b0c38cb031c370d4a02f4d293a","user":{"login":"ajaymathur","id":9667784,"node_id":"MDQ6VXNlcjk2Njc3ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9667784?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaymathur","html_url":"https://github.com/ajaymathur","followers_url":"https://api.github.com/users/ajaymathur/followers","following_url":"https://api.github.com/users/ajaymathur/following{/other_user}","gists_url":"https://api.github.com/users/ajaymathur/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaymathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaymathur/subscriptions","organizations_url":"https://api.github.com/users/ajaymathur/orgs","repos_url":"https://api.github.com/users/ajaymathur/repos","events_url":"https://api.github.com/users/ajaymathur/events{/privacy}","received_events_url":"https://api.github.com/users/ajaymathur/received_events","type":"User","site_admin":false},"repo":{"id":116221650,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYyMjE2NTA=","name":"build-stats","full_name":"ajaymathur/build-stats","private":false,"owner":{"login":"ajaymathur","id":9667784,"node_id":"MDQ6VXNlcjk2Njc3ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9667784?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaymathur","html_url":"https://github.com/ajaymathur","followers_url":"https://api.github.com/users/ajaymathur/followers","following_url":"https://api.github.com/users/ajaymathur/following{/other_user}","gists_url":"https://api.github.com/users/ajaymathur/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaymathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaymathur/subscriptions","organizations_url":"https://api.github.com/users/ajaymathur/orgs","repos_url":"https://api.github.com/users/ajaymathur/repos","events_url":"https://api.github.com/users/ajaymathur/events{/privacy}","received_events_url":"https://api.github.com/users/ajaymathur/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ajaymathur/build-stats","description":"🏆 get the build stats for pipelines 🏆","fork":false,"url":"https://api.github.com/repos/ajaymathur/build-stats","forks_url":"https://api.github.com/repos/ajaymathur/build-stats/forks","keys_url":"https://api.github.com/repos/ajaymathur/build-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajaymathur/build-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajaymathur/build-stats/teams","hooks_url":"https://api.github.com/repos/ajaymathur/build-stats/hooks","issue_events_url":"https://api.github.com/repos/ajaymathur/build-stats/issues/events{/number}","events_url":"https://api.github.com/repos/ajaymathur/build-stats/events","assignees_url":"https://api.github.com/repos/ajaymathur/build-stats/assignees{/user}","branches_url":"https://api.github.com/repos/ajaymathur/build-stats/branches{/branch}","tags_url":"https://api.github.com/repos/ajaymathur/build-stats/tags","blobs_url":"https://api.github.com/repos/ajaymathur/build-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajaymathur/build-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajaymathur/build-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajaymathur/build-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajaymathur/build-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/ajaymathur/build-stats/languages","stargazers_url":"https://api.github.com/repos/ajaymathur/build-stats/stargazers","contributors_url":"https://api.github.com/repos/ajaymathur/build-stats/contributors","subscribers_url":"https://api.github.com/repos/ajaymathur/build-stats/subscribers","subscription_url":"https://api.github.com/repos/ajaymathur/build-stats/subscription","commits_url":"https://api.github.com/repos/ajaymathur/build-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajaymathur/build-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajaymathur/build-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajaymathur/build-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajaymathur/build-stats/contents/{+path}","compare_url":"https://api.github.com/repos/ajaymathur/build-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajaymathur/build-stats/merges","archive_url":"https://api.github.com/repos/ajaymathur/build-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajaymathur/build-stats/downloads","issues_url":"https://api.github.com/repos/ajaymathur/build-stats/issues{/number}","pulls_url":"https://api.github.com/repos/ajaymathur/build-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/ajaymathur/build-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/ajaymathur/build-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajaymathur/build-stats/labels{/name}","releases_url":"https://api.github.com/repos/ajaymathur/build-stats/releases{/id}","deployments_url":"https://api.github.com/repos/ajaymathur/build-stats/deployments","created_at":"2018-01-04T06:07:46Z","updated_at":"2018-09-25T02:33:45Z","pushed_at":"2018-09-26T05:20:48Z","git_url":"git://github.com/ajaymathur/build-stats.git","ssh_url":"git@github.com:ajaymathur/build-stats.git","clone_url":"https://github.com/ajaymathur/build-stats.git","svn_url":"https://github.com/ajaymathur/build-stats","homepage":"","size":1721,"stargazers_count":54,"watchers_count":54,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":6,"open_issues":5,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17"},"html":{"href":"https://github.com/ajaymathur/build-stats/pull/17"},"issue":{"href":"https://api.github.com/repos/ajaymathur/build-stats/issues/17"},"comments":{"href":"https://api.github.com/repos/ajaymathur/build-stats/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/ajaymathur/build-stats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ajaymathur/build-stats/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/ajaymathur/build-stats/statuses/f1bfa4e879bf0a4297fb8304eb10d60f2c1361b8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ajaymathur"}}