{"action":"created","comment":{"url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/comments/73565215","id":73565215,"diff_hunk":"@@ -46,10 +41,12 @@ function uploadToGCS(reqFile) {\n     });\n \n     stream.on('finish', () => {\n-      const publicUrl = getPublicUrl(gcsname);\n+      const publicUrl = getGCSPublicUrl(gcsFileName, gcsConfig);\n \n-      reqFile.cloudStorageObject = gcsname; // eslint-disable-line no-param-reassign\n-      reqFile.cloudStoragePublicUrl = publicUrl; // eslint-disable-line no-param-reassign\n+      /* eslint-disable no-param-reassign */\n+      reqFile.cloudStorageObject = gcsFileName;\n+      reqFile.cloudStoragePublicUrl = publicUrl;\n+      /* eslint-enable no-param-reassign */","path":"src/services/photo/index.js","position":75,"original_position":75,"commit_id":"00e476efc7d71aeacc436b9c5a8bcb957c940d46","original_commit_id":"00e476efc7d71aeacc436b9c5a8bcb957c940d46","user":{"login":"supasate","id":237753,"avatar_url":"https://avatars.githubusercontent.com/u/237753?v=3","gravatar_id":"","url":"https://api.github.com/users/supasate","html_url":"https://github.com/supasate","followers_url":"https://api.github.com/users/supasate/followers","following_url":"https://api.github.com/users/supasate/following{/other_user}","gists_url":"https://api.github.com/users/supasate/gists{/gist_id}","starred_url":"https://api.github.com/users/supasate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supasate/subscriptions","organizations_url":"https://api.github.com/users/supasate/orgs","repos_url":"https://api.github.com/users/supasate/repos","events_url":"https://api.github.com/users/supasate/events{/privacy}","received_events_url":"https://api.github.com/users/supasate/received_events","type":"User","site_admin":false},"body":"It's a group comment (disable and then enable).","created_at":"2016-08-04T17:23:38Z","updated_at":"2016-08-04T17:23:38Z","html_url":"https://github.com/youpin-city/youpin-api/pull/110#discussion_r73565215","pull_request_url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/youpin-city/youpin-api/pulls/comments/73565215"},"html":{"href":"https://github.com/youpin-city/youpin-api/pull/110#discussion_r73565215"},"pull_request":{"href":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110","id":79942968,"html_url":"https://github.com/youpin-city/youpin-api/pull/110","diff_url":"https://github.com/youpin-city/youpin-api/pull/110.diff","patch_url":"https://github.com/youpin-city/youpin-api/pull/110.patch","issue_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/110","number":110,"state":"open","locked":false,"title":"[Refactor] Refactor embedded GCS config setting","user":{"login":"supasate","id":237753,"avatar_url":"https://avatars.githubusercontent.com/u/237753?v=3","gravatar_id":"","url":"https://api.github.com/users/supasate","html_url":"https://github.com/supasate","followers_url":"https://api.github.com/users/supasate/followers","following_url":"https://api.github.com/users/supasate/following{/other_user}","gists_url":"https://api.github.com/users/supasate/gists{/gist_id}","starred_url":"https://api.github.com/users/supasate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supasate/subscriptions","organizations_url":"https://api.github.com/users/supasate/orgs","repos_url":"https://api.github.com/users/supasate/repos","events_url":"https://api.github.com/users/supasate/events{/privacy}","received_events_url":"https://api.github.com/users/supasate/received_events","type":"User","site_admin":false},"body":"- Refactor photo service to use common middleware with video service\r\n- Refactor GCS setting into a config file","created_at":"2016-08-03T17:07:32Z","updated_at":"2016-08-04T17:23:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ba5d1c71a009e67278c6728a23d8e7d43f981cc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110/commits","review_comments_url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110/comments","review_comment_url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/110/comments","statuses_url":"https://api.github.com/repos/youpin-city/youpin-api/statuses/00e476efc7d71aeacc436b9c5a8bcb957c940d46","head":{"label":"supasate:refactor-gcs-config-file-2","ref":"refactor-gcs-config-file-2","sha":"00e476efc7d71aeacc436b9c5a8bcb957c940d46","user":{"login":"supasate","id":237753,"avatar_url":"https://avatars.githubusercontent.com/u/237753?v=3","gravatar_id":"","url":"https://api.github.com/users/supasate","html_url":"https://github.com/supasate","followers_url":"https://api.github.com/users/supasate/followers","following_url":"https://api.github.com/users/supasate/following{/other_user}","gists_url":"https://api.github.com/users/supasate/gists{/gist_id}","starred_url":"https://api.github.com/users/supasate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supasate/subscriptions","organizations_url":"https://api.github.com/users/supasate/orgs","repos_url":"https://api.github.com/users/supasate/repos","events_url":"https://api.github.com/users/supasate/events{/privacy}","received_events_url":"https://api.github.com/users/supasate/received_events","type":"User","site_admin":false},"repo":{"id":62911374,"name":"youpin-api","full_name":"supasate/youpin-api","owner":{"login":"supasate","id":237753,"avatar_url":"https://avatars.githubusercontent.com/u/237753?v=3","gravatar_id":"","url":"https://api.github.com/users/supasate","html_url":"https://github.com/supasate","followers_url":"https://api.github.com/users/supasate/followers","following_url":"https://api.github.com/users/supasate/following{/other_user}","gists_url":"https://api.github.com/users/supasate/gists{/gist_id}","starred_url":"https://api.github.com/users/supasate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supasate/subscriptions","organizations_url":"https://api.github.com/users/supasate/orgs","repos_url":"https://api.github.com/users/supasate/repos","events_url":"https://api.github.com/users/supasate/events{/privacy}","received_events_url":"https://api.github.com/users/supasate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/supasate/youpin-api","description":"YouPin's API","fork":true,"url":"https://api.github.com/repos/supasate/youpin-api","forks_url":"https://api.github.com/repos/supasate/youpin-api/forks","keys_url":"https://api.github.com/repos/supasate/youpin-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/supasate/youpin-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/supasate/youpin-api/teams","hooks_url":"https://api.github.com/repos/supasate/youpin-api/hooks","issue_events_url":"https://api.github.com/repos/supasate/youpin-api/issues/events{/number}","events_url":"https://api.github.com/repos/supasate/youpin-api/events","assignees_url":"https://api.github.com/repos/supasate/youpin-api/assignees{/user}","branches_url":"https://api.github.com/repos/supasate/youpin-api/branches{/branch}","tags_url":"https://api.github.com/repos/supasate/youpin-api/tags","blobs_url":"https://api.github.com/repos/supasate/youpin-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/supasate/youpin-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/supasate/youpin-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/supasate/youpin-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/supasate/youpin-api/statuses/{sha}","languages_url":"https://api.github.com/repos/supasate/youpin-api/languages","stargazers_url":"https://api.github.com/repos/supasate/youpin-api/stargazers","contributors_url":"https://api.github.com/repos/supasate/youpin-api/contributors","subscribers_url":"https://api.github.com/repos/supasate/youpin-api/subscribers","subscription_url":"https://api.github.com/repos/supasate/youpin-api/subscription","commits_url":"https://api.github.com/repos/supasate/youpin-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/supasate/youpin-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/supasate/youpin-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/supasate/youpin-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/supasate/youpin-api/contents/{+path}","compare_url":"https://api.github.com/repos/supasate/youpin-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/supasate/youpin-api/merges","archive_url":"https://api.github.com/repos/supasate/youpin-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/supasate/youpin-api/downloads","issues_url":"https://api.github.com/repos/supasate/youpin-api/issues{/number}","pulls_url":"https://api.github.com/repos/supasate/youpin-api/pulls{/number}","milestones_url":"https://api.github.com/repos/supasate/youpin-api/milestones{/number}","notifications_url":"https://api.github.com/repos/supasate/youpin-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/supasate/youpin-api/labels{/name}","releases_url":"https://api.github.com/repos/supasate/youpin-api/releases{/id}","deployments_url":"https://api.github.com/repos/supasate/youpin-api/deployments","created_at":"2016-07-08T19:08:18Z","updated_at":"2016-07-08T19:08:19Z","pushed_at":"2016-08-03T18:47:54Z","git_url":"git://github.com/supasate/youpin-api.git","ssh_url":"git@github.com:supasate/youpin-api.git","clone_url":"https://github.com/supasate/youpin-api.git","svn_url":"https://github.com/supasate/youpin-api","homepage":null,"size":208,"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":"youpin-city:master","ref":"master","sha":"0e3c0248040c3b21d01b917dc51350341202cab8","user":{"login":"youpin-city","id":19252417,"avatar_url":"https://avatars.githubusercontent.com/u/19252417?v=3","gravatar_id":"","url":"https://api.github.com/users/youpin-city","html_url":"https://github.com/youpin-city","followers_url":"https://api.github.com/users/youpin-city/followers","following_url":"https://api.github.com/users/youpin-city/following{/other_user}","gists_url":"https://api.github.com/users/youpin-city/gists{/gist_id}","starred_url":"https://api.github.com/users/youpin-city/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youpin-city/subscriptions","organizations_url":"https://api.github.com/users/youpin-city/orgs","repos_url":"https://api.github.com/users/youpin-city/repos","events_url":"https://api.github.com/users/youpin-city/events{/privacy}","received_events_url":"https://api.github.com/users/youpin-city/received_events","type":"Organization","site_admin":false},"repo":{"id":61938140,"name":"youpin-api","full_name":"youpin-city/youpin-api","owner":{"login":"youpin-city","id":19252417,"avatar_url":"https://avatars.githubusercontent.com/u/19252417?v=3","gravatar_id":"","url":"https://api.github.com/users/youpin-city","html_url":"https://github.com/youpin-city","followers_url":"https://api.github.com/users/youpin-city/followers","following_url":"https://api.github.com/users/youpin-city/following{/other_user}","gists_url":"https://api.github.com/users/youpin-city/gists{/gist_id}","starred_url":"https://api.github.com/users/youpin-city/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youpin-city/subscriptions","organizations_url":"https://api.github.com/users/youpin-city/orgs","repos_url":"https://api.github.com/users/youpin-city/repos","events_url":"https://api.github.com/users/youpin-city/events{/privacy}","received_events_url":"https://api.github.com/users/youpin-city/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/youpin-city/youpin-api","description":"YouPin's API","fork":false,"url":"https://api.github.com/repos/youpin-city/youpin-api","forks_url":"https://api.github.com/repos/youpin-city/youpin-api/forks","keys_url":"https://api.github.com/repos/youpin-city/youpin-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youpin-city/youpin-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youpin-city/youpin-api/teams","hooks_url":"https://api.github.com/repos/youpin-city/youpin-api/hooks","issue_events_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/events{/number}","events_url":"https://api.github.com/repos/youpin-city/youpin-api/events","assignees_url":"https://api.github.com/repos/youpin-city/youpin-api/assignees{/user}","branches_url":"https://api.github.com/repos/youpin-city/youpin-api/branches{/branch}","tags_url":"https://api.github.com/repos/youpin-city/youpin-api/tags","blobs_url":"https://api.github.com/repos/youpin-city/youpin-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youpin-city/youpin-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youpin-city/youpin-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/youpin-city/youpin-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youpin-city/youpin-api/statuses/{sha}","languages_url":"https://api.github.com/repos/youpin-city/youpin-api/languages","stargazers_url":"https://api.github.com/repos/youpin-city/youpin-api/stargazers","contributors_url":"https://api.github.com/repos/youpin-city/youpin-api/contributors","subscribers_url":"https://api.github.com/repos/youpin-city/youpin-api/subscribers","subscription_url":"https://api.github.com/repos/youpin-city/youpin-api/subscription","commits_url":"https://api.github.com/repos/youpin-city/youpin-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/youpin-city/youpin-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/youpin-city/youpin-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/youpin-city/youpin-api/contents/{+path}","compare_url":"https://api.github.com/repos/youpin-city/youpin-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youpin-city/youpin-api/merges","archive_url":"https://api.github.com/repos/youpin-city/youpin-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youpin-city/youpin-api/downloads","issues_url":"https://api.github.com/repos/youpin-city/youpin-api/issues{/number}","pulls_url":"https://api.github.com/repos/youpin-city/youpin-api/pulls{/number}","milestones_url":"https://api.github.com/repos/youpin-city/youpin-api/milestones{/number}","notifications_url":"https://api.github.com/repos/youpin-city/youpin-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youpin-city/youpin-api/labels{/name}","releases_url":"https://api.github.com/repos/youpin-city/youpin-api/releases{/id}","deployments_url":"https://api.github.com/repos/youpin-city/youpin-api/deployments","created_at":"2016-06-25T10:19:48Z","updated_at":"2016-08-02T11:08:53Z","pushed_at":"2016-08-03T18:49:05Z","git_url":"git://github.com/youpin-city/youpin-api.git","ssh_url":"git@github.com:youpin-city/youpin-api.git","clone_url":"https://github.com/youpin-city/youpin-api.git","svn_url":"https://github.com/youpin-city/youpin-api","homepage":null,"size":208,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110"},"html":{"href":"https://github.com/youpin-city/youpin-api/pull/110"},"issue":{"href":"https://api.github.com/repos/youpin-city/youpin-api/issues/110"},"comments":{"href":"https://api.github.com/repos/youpin-city/youpin-api/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/youpin-city/youpin-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/youpin-city/youpin-api/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/youpin-city/youpin-api/statuses/00e476efc7d71aeacc436b9c5a8bcb957c940d46"}}}}
{"actor":{"display_login":"supasate"}}