{"action":"created","comment":{"url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/comments/234714917","pull_request_review_id":176416025,"id":234714917,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDcxNDkxNw==","diff_hunk":"@@ -31,6 +31,8 @@ export class IpfsStorage {\n    */\n   public async read (hash: string): Promise<Buffer> {\n     const files = await this.node.files.get(hash);\n+    // Store the fetched content in local repo. Re-pinning already exisitng object doesnt create a duplicate.\n+    await this.node.pin.add(hash);","path":"src/lib/IpfsStorage.ts","position":5,"original_position":5,"commit_id":"0676d827d94d3c412fb486ebdb84734c553a94e6","original_commit_id":"0676d827d94d3c412fb486ebdb84734c553a94e6","user":{"login":"thehenrytsai","id":17891086,"node_id":"MDQ6VXNlcjE3ODkxMDg2","avatar_url":"https://avatars0.githubusercontent.com/u/17891086?v=4","gravatar_id":"","url":"https://api.github.com/users/thehenrytsai","html_url":"https://github.com/thehenrytsai","followers_url":"https://api.github.com/users/thehenrytsai/followers","following_url":"https://api.github.com/users/thehenrytsai/following{/other_user}","gists_url":"https://api.github.com/users/thehenrytsai/gists{/gist_id}","starred_url":"https://api.github.com/users/thehenrytsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehenrytsai/subscriptions","organizations_url":"https://api.github.com/users/thehenrytsai/orgs","repos_url":"https://api.github.com/users/thehenrytsai/repos","events_url":"https://api.github.com/users/thehenrytsai/events{/privacy}","received_events_url":"https://api.github.com/users/thehenrytsai/received_events","type":"User","site_admin":false},"body":"Add a comment stating that pin.add requires the content to be in temp cache and files.get puts content in temp cache.","created_at":"2018-11-19T17:38:32Z","updated_at":"2018-11-19T17:38:32Z","html_url":"https://github.com/decentralized-identity/sidetree-ipfs/pull/9#discussion_r234714917","pull_request_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/comments/234714917"},"html":{"href":"https://github.com/decentralized-identity/sidetree-ipfs/pull/9#discussion_r234714917"},"pull_request":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9"}},"in_reply_to_id":234048298},"pull_request":{"url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9","id":229160550,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MTYwNTUw","html_url":"https://github.com/decentralized-identity/sidetree-ipfs/pull/9","diff_url":"https://github.com/decentralized-identity/sidetree-ipfs/pull/9.diff","patch_url":"https://github.com/decentralized-identity/sidetree-ipfs/pull/9.patch","issue_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/9","number":9,"state":"open","locked":false,"title":"Added code for pinning content","user":{"login":"sylar217","id":5566353,"node_id":"MDQ6VXNlcjU1NjYzNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/5566353?v=4","gravatar_id":"","url":"https://api.github.com/users/sylar217","html_url":"https://github.com/sylar217","followers_url":"https://api.github.com/users/sylar217/followers","following_url":"https://api.github.com/users/sylar217/following{/other_user}","gists_url":"https://api.github.com/users/sylar217/gists{/gist_id}","starred_url":"https://api.github.com/users/sylar217/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylar217/subscriptions","organizations_url":"https://api.github.com/users/sylar217/orgs","repos_url":"https://api.github.com/users/sylar217/repos","events_url":"https://api.github.com/users/sylar217/events{/privacy}","received_events_url":"https://api.github.com/users/sylar217/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-07T20:37:17Z","updated_at":"2018-11-19T17:38:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14254ca7b2c585f2f05c8d6587a4f7edef0a3fe6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9/commits","review_comments_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9/comments","review_comment_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/9/comments","statuses_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/statuses/0676d827d94d3c412fb486ebdb84734c553a94e6","head":{"label":"decentralized-identity:sylar217/pincontent","ref":"sylar217/pincontent","sha":"0676d827d94d3c412fb486ebdb84734c553a94e6","user":{"login":"decentralized-identity","id":23265915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjY1OTE1","avatar_url":"https://avatars3.githubusercontent.com/u/23265915?v=4","gravatar_id":"","url":"https://api.github.com/users/decentralized-identity","html_url":"https://github.com/decentralized-identity","followers_url":"https://api.github.com/users/decentralized-identity/followers","following_url":"https://api.github.com/users/decentralized-identity/following{/other_user}","gists_url":"https://api.github.com/users/decentralized-identity/gists{/gist_id}","starred_url":"https://api.github.com/users/decentralized-identity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decentralized-identity/subscriptions","organizations_url":"https://api.github.com/users/decentralized-identity/orgs","repos_url":"https://api.github.com/users/decentralized-identity/repos","events_url":"https://api.github.com/users/decentralized-identity/events{/privacy}","received_events_url":"https://api.github.com/users/decentralized-identity/received_events","type":"Organization","site_admin":false},"repo":{"id":147387856,"node_id":"MDEwOlJlcG9zaXRvcnkxNDczODc4NTY=","name":"sidetree-ipfs","full_name":"decentralized-identity/sidetree-ipfs","private":false,"owner":{"login":"decentralized-identity","id":23265915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjY1OTE1","avatar_url":"https://avatars3.githubusercontent.com/u/23265915?v=4","gravatar_id":"","url":"https://api.github.com/users/decentralized-identity","html_url":"https://github.com/decentralized-identity","followers_url":"https://api.github.com/users/decentralized-identity/followers","following_url":"https://api.github.com/users/decentralized-identity/following{/other_user}","gists_url":"https://api.github.com/users/decentralized-identity/gists{/gist_id}","starred_url":"https://api.github.com/users/decentralized-identity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decentralized-identity/subscriptions","organizations_url":"https://api.github.com/users/decentralized-identity/orgs","repos_url":"https://api.github.com/users/decentralized-identity/repos","events_url":"https://api.github.com/users/decentralized-identity/events{/privacy}","received_events_url":"https://api.github.com/users/decentralized-identity/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/decentralized-identity/sidetree-ipfs","description":"IPFS module for storing and accessing Sidetree entity operation data via content addressable storage","fork":false,"url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs","forks_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/forks","keys_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/teams","hooks_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/hooks","issue_events_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/events{/number}","events_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/events","assignees_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/assignees{/user}","branches_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/branches{/branch}","tags_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/tags","blobs_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/statuses/{sha}","languages_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/languages","stargazers_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/stargazers","contributors_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/contributors","subscribers_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/subscribers","subscription_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/subscription","commits_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/contents/{+path}","compare_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/merges","archive_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/downloads","issues_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues{/number}","pulls_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls{/number}","milestones_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/milestones{/number}","notifications_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/labels{/name}","releases_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/releases{/id}","deployments_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/deployments","created_at":"2018-09-04T18:08:28Z","updated_at":"2018-11-12T21:06:25Z","pushed_at":"2018-11-07T20:37:18Z","git_url":"git://github.com/decentralized-identity/sidetree-ipfs.git","ssh_url":"git@github.com:decentralized-identity/sidetree-ipfs.git","clone_url":"https://github.com/decentralized-identity/sidetree-ipfs.git","svn_url":"https://github.com/decentralized-identity/sidetree-ipfs","homepage":null,"size":268,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"decentralized-identity:master","ref":"master","sha":"cc81d8e2531e6d41e70fdee7be776f3b7795ae42","user":{"login":"decentralized-identity","id":23265915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjY1OTE1","avatar_url":"https://avatars3.githubusercontent.com/u/23265915?v=4","gravatar_id":"","url":"https://api.github.com/users/decentralized-identity","html_url":"https://github.com/decentralized-identity","followers_url":"https://api.github.com/users/decentralized-identity/followers","following_url":"https://api.github.com/users/decentralized-identity/following{/other_user}","gists_url":"https://api.github.com/users/decentralized-identity/gists{/gist_id}","starred_url":"https://api.github.com/users/decentralized-identity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decentralized-identity/subscriptions","organizations_url":"https://api.github.com/users/decentralized-identity/orgs","repos_url":"https://api.github.com/users/decentralized-identity/repos","events_url":"https://api.github.com/users/decentralized-identity/events{/privacy}","received_events_url":"https://api.github.com/users/decentralized-identity/received_events","type":"Organization","site_admin":false},"repo":{"id":147387856,"node_id":"MDEwOlJlcG9zaXRvcnkxNDczODc4NTY=","name":"sidetree-ipfs","full_name":"decentralized-identity/sidetree-ipfs","private":false,"owner":{"login":"decentralized-identity","id":23265915,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjY1OTE1","avatar_url":"https://avatars3.githubusercontent.com/u/23265915?v=4","gravatar_id":"","url":"https://api.github.com/users/decentralized-identity","html_url":"https://github.com/decentralized-identity","followers_url":"https://api.github.com/users/decentralized-identity/followers","following_url":"https://api.github.com/users/decentralized-identity/following{/other_user}","gists_url":"https://api.github.com/users/decentralized-identity/gists{/gist_id}","starred_url":"https://api.github.com/users/decentralized-identity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decentralized-identity/subscriptions","organizations_url":"https://api.github.com/users/decentralized-identity/orgs","repos_url":"https://api.github.com/users/decentralized-identity/repos","events_url":"https://api.github.com/users/decentralized-identity/events{/privacy}","received_events_url":"https://api.github.com/users/decentralized-identity/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/decentralized-identity/sidetree-ipfs","description":"IPFS module for storing and accessing Sidetree entity operation data via content addressable storage","fork":false,"url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs","forks_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/forks","keys_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/teams","hooks_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/hooks","issue_events_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/events{/number}","events_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/events","assignees_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/assignees{/user}","branches_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/branches{/branch}","tags_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/tags","blobs_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/statuses/{sha}","languages_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/languages","stargazers_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/stargazers","contributors_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/contributors","subscribers_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/subscribers","subscription_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/subscription","commits_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/contents/{+path}","compare_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/merges","archive_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/downloads","issues_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues{/number}","pulls_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls{/number}","milestones_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/milestones{/number}","notifications_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/labels{/name}","releases_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/releases{/id}","deployments_url":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/deployments","created_at":"2018-09-04T18:08:28Z","updated_at":"2018-11-12T21:06:25Z","pushed_at":"2018-11-07T20:37:18Z","git_url":"git://github.com/decentralized-identity/sidetree-ipfs.git","ssh_url":"git@github.com:decentralized-identity/sidetree-ipfs.git","clone_url":"https://github.com/decentralized-identity/sidetree-ipfs.git","svn_url":"https://github.com/decentralized-identity/sidetree-ipfs","homepage":null,"size":268,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9"},"html":{"href":"https://github.com/decentralized-identity/sidetree-ipfs/pull/9"},"issue":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/9"},"comments":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/decentralized-identity/sidetree-ipfs/statuses/0676d827d94d3c412fb486ebdb84734c553a94e6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"thehenrytsai"}}