{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular-cli/pulls/comments/67244374","id":67244374,"diff_hunk":"@@ -0,0 +1,34 @@\n+'use strict';\n+\n+import * as fs from 'fs';\n+\n+/**\n+ * Read a file and return a promise\n+ * @param path (path to file)\n+ * @return Promise with file content\n+ */\n+export function readWithPromise(path: string): Promise<any> {\n+    var content: string;\n+    return new Promise<any>((resolve, reject) => {\n+      fs.readFile(path, (err, data) => {\n+        if(err) reject(err);\n+        content = data.toString();\n+        resolve(content);\n+      });\n+    })\n+  }\n+\n+/**\n+ * Write to file and return a promise\n+ * @param path (path to file)\n+ * @return an empty Promise\n+ */\n+  export function writeWithPromise(path: string, content: string): Promise<any> {\n+      return new Promise<any>((resolve, reject) => {\n+        fs.writeFile(path, content, (err: any) => {\n+          if (err) reject(err);","path":"addon/ng2/utilities/fs-promise.ts","position":29,"original_position":29,"commit_id":"6b01ea5788af7add32d0645ebd1ebc12cf8dd282","original_commit_id":"6b01ea5788af7add32d0645ebd1ebc12cf8dd282","user":{"login":"alxhub","id":4175141,"avatar_url":"https://avatars.githubusercontent.com/u/4175141?v=3","gravatar_id":"","url":"https://api.github.com/users/alxhub","html_url":"https://github.com/alxhub","followers_url":"https://api.github.com/users/alxhub/followers","following_url":"https://api.github.com/users/alxhub/following{/other_user}","gists_url":"https://api.github.com/users/alxhub/gists{/gist_id}","starred_url":"https://api.github.com/users/alxhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxhub/subscriptions","organizations_url":"https://api.github.com/users/alxhub/orgs","repos_url":"https://api.github.com/users/alxhub/repos","events_url":"https://api.github.com/users/alxhub/events{/privacy}","received_events_url":"https://api.github.com/users/alxhub/received_events","type":"User","site_admin":false},"body":"Same comments as above.","created_at":"2016-06-15T20:58:22Z","updated_at":"2016-06-15T20:58:22Z","html_url":"https://github.com/angular/angular-cli/pull/1088#discussion_r67244374","pull_request_url":"https://api.github.com/repos/angular/angular-cli/pulls/1088","_links":{"self":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/comments/67244374"},"html":{"href":"https://github.com/angular/angular-cli/pull/1088#discussion_r67244374"},"pull_request":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1088"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular-cli/pulls/1088","id":73828269,"html_url":"https://github.com/angular/angular-cli/pull/1088","diff_url":"https://github.com/angular/angular-cli/pull/1088.diff","patch_url":"https://github.com/angular/angular-cli/pull/1088.patch","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1088","number":1088,"state":"open","locked":false,"title":"feat: add file system utilities for 'upgrade' process","user":{"login":"ashoktamang","id":8727746,"avatar_url":"https://avatars.githubusercontent.com/u/8727746?v=3","gravatar_id":"","url":"https://api.github.com/users/ashoktamang","html_url":"https://github.com/ashoktamang","followers_url":"https://api.github.com/users/ashoktamang/followers","following_url":"https://api.github.com/users/ashoktamang/following{/other_user}","gists_url":"https://api.github.com/users/ashoktamang/gists{/gist_id}","starred_url":"https://api.github.com/users/ashoktamang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashoktamang/subscriptions","organizations_url":"https://api.github.com/users/ashoktamang/orgs","repos_url":"https://api.github.com/users/ashoktamang/repos","events_url":"https://api.github.com/users/ashoktamang/events{/privacy}","received_events_url":"https://api.github.com/users/ashoktamang/received_events","type":"User","site_admin":false},"body":"'fs-promise.ts' is a utility file for asynchronous read/write operations\r\n'change.ts' implements some change interfaces as specified by the upgrade design doc linked below:\r\nhttps://github.com/hansl/angular-cli/blob/7ea3e78ff3d899d5277aac5dfeeece4056d0efe3/docs/design/upgrade.md","created_at":"2016-06-14T23:01:42Z","updated_at":"2016-06-15T20:58:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e281638f85a2b91f7887a2ecb0c795ccad124905","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular-cli/pulls/1088/commits","review_comments_url":"https://api.github.com/repos/angular/angular-cli/pulls/1088/comments","review_comment_url":"https://api.github.com/repos/angular/angular-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1088/comments","statuses_url":"https://api.github.com/repos/angular/angular-cli/statuses/6b01ea5788af7add32d0645ebd1ebc12cf8dd282","head":{"label":"ashoktamang:fs-utils","ref":"fs-utils","sha":"6b01ea5788af7add32d0645ebd1ebc12cf8dd282","user":{"login":"ashoktamang","id":8727746,"avatar_url":"https://avatars.githubusercontent.com/u/8727746?v=3","gravatar_id":"","url":"https://api.github.com/users/ashoktamang","html_url":"https://github.com/ashoktamang","followers_url":"https://api.github.com/users/ashoktamang/followers","following_url":"https://api.github.com/users/ashoktamang/following{/other_user}","gists_url":"https://api.github.com/users/ashoktamang/gists{/gist_id}","starred_url":"https://api.github.com/users/ashoktamang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashoktamang/subscriptions","organizations_url":"https://api.github.com/users/ashoktamang/orgs","repos_url":"https://api.github.com/users/ashoktamang/repos","events_url":"https://api.github.com/users/ashoktamang/events{/privacy}","received_events_url":"https://api.github.com/users/ashoktamang/received_events","type":"User","site_admin":false},"repo":{"id":60868499,"name":"angular-cli","full_name":"ashoktamang/angular-cli","owner":{"login":"ashoktamang","id":8727746,"avatar_url":"https://avatars.githubusercontent.com/u/8727746?v=3","gravatar_id":"","url":"https://api.github.com/users/ashoktamang","html_url":"https://github.com/ashoktamang","followers_url":"https://api.github.com/users/ashoktamang/followers","following_url":"https://api.github.com/users/ashoktamang/following{/other_user}","gists_url":"https://api.github.com/users/ashoktamang/gists{/gist_id}","starred_url":"https://api.github.com/users/ashoktamang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashoktamang/subscriptions","organizations_url":"https://api.github.com/users/ashoktamang/orgs","repos_url":"https://api.github.com/users/ashoktamang/repos","events_url":"https://api.github.com/users/ashoktamang/events{/privacy}","received_events_url":"https://api.github.com/users/ashoktamang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashoktamang/angular-cli","description":"CLI tool for Angular2","fork":true,"url":"https://api.github.com/repos/ashoktamang/angular-cli","forks_url":"https://api.github.com/repos/ashoktamang/angular-cli/forks","keys_url":"https://api.github.com/repos/ashoktamang/angular-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashoktamang/angular-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashoktamang/angular-cli/teams","hooks_url":"https://api.github.com/repos/ashoktamang/angular-cli/hooks","issue_events_url":"https://api.github.com/repos/ashoktamang/angular-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ashoktamang/angular-cli/events","assignees_url":"https://api.github.com/repos/ashoktamang/angular-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ashoktamang/angular-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ashoktamang/angular-cli/tags","blobs_url":"https://api.github.com/repos/ashoktamang/angular-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashoktamang/angular-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashoktamang/angular-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashoktamang/angular-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashoktamang/angular-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ashoktamang/angular-cli/languages","stargazers_url":"https://api.github.com/repos/ashoktamang/angular-cli/stargazers","contributors_url":"https://api.github.com/repos/ashoktamang/angular-cli/contributors","subscribers_url":"https://api.github.com/repos/ashoktamang/angular-cli/subscribers","subscription_url":"https://api.github.com/repos/ashoktamang/angular-cli/subscription","commits_url":"https://api.github.com/repos/ashoktamang/angular-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashoktamang/angular-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashoktamang/angular-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashoktamang/angular-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashoktamang/angular-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ashoktamang/angular-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashoktamang/angular-cli/merges","archive_url":"https://api.github.com/repos/ashoktamang/angular-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashoktamang/angular-cli/downloads","issues_url":"https://api.github.com/repos/ashoktamang/angular-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ashoktamang/angular-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ashoktamang/angular-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ashoktamang/angular-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashoktamang/angular-cli/labels{/name}","releases_url":"https://api.github.com/repos/ashoktamang/angular-cli/releases{/id}","deployments_url":"https://api.github.com/repos/ashoktamang/angular-cli/deployments","created_at":"2016-06-10T18:23:07Z","updated_at":"2016-06-10T18:23:08Z","pushed_at":"2016-06-14T23:58:51Z","git_url":"git://github.com/ashoktamang/angular-cli.git","ssh_url":"git@github.com:ashoktamang/angular-cli.git","clone_url":"https://github.com/ashoktamang/angular-cli.git","svn_url":"https://github.com/ashoktamang/angular-cli","homepage":"","size":939,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"f871bf36dcb9fc55a16a1a0ebb31ed707c398a71","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":36891867,"name":"angular-cli","full_name":"angular/angular-cli","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular-cli","description":"CLI tool for Angular2","fork":false,"url":"https://api.github.com/repos/angular/angular-cli","forks_url":"https://api.github.com/repos/angular/angular-cli/forks","keys_url":"https://api.github.com/repos/angular/angular-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular-cli/teams","hooks_url":"https://api.github.com/repos/angular/angular-cli/hooks","issue_events_url":"https://api.github.com/repos/angular/angular-cli/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular-cli/events","assignees_url":"https://api.github.com/repos/angular/angular-cli/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular-cli/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular-cli/tags","blobs_url":"https://api.github.com/repos/angular/angular-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular-cli/languages","stargazers_url":"https://api.github.com/repos/angular/angular-cli/stargazers","contributors_url":"https://api.github.com/repos/angular/angular-cli/contributors","subscribers_url":"https://api.github.com/repos/angular/angular-cli/subscribers","subscription_url":"https://api.github.com/repos/angular/angular-cli/subscription","commits_url":"https://api.github.com/repos/angular/angular-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular-cli/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular-cli/merges","archive_url":"https://api.github.com/repos/angular/angular-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular-cli/downloads","issues_url":"https://api.github.com/repos/angular/angular-cli/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular-cli/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular-cli/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angular-cli/deployments","created_at":"2015-06-04T19:49:37Z","updated_at":"2016-06-15T19:51:56Z","pushed_at":"2016-06-15T20:56:32Z","git_url":"git://github.com/angular/angular-cli.git","ssh_url":"git@github.com:angular/angular-cli.git","clone_url":"https://github.com/angular/angular-cli.git","svn_url":"https://github.com/angular/angular-cli","homepage":"","size":1475,"stargazers_count":2086,"watchers_count":2086,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":289,"mirror_url":null,"open_issues_count":161,"forks":289,"open_issues":161,"watchers":2086,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1088"},"html":{"href":"https://github.com/angular/angular-cli/pull/1088"},"issue":{"href":"https://api.github.com/repos/angular/angular-cli/issues/1088"},"comments":{"href":"https://api.github.com/repos/angular/angular-cli/issues/1088/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1088/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1088/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular-cli/statuses/6b01ea5788af7add32d0645ebd1ebc12cf8dd282"}}}}
{"actor":{"display_login":"alxhub"}}