{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/comments/207565897","pull_request_review_id":143207685,"id":207565897,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzU2NTg5Nw==","diff_hunk":"@@ -0,0 +1,44 @@\n+const azure = require('azure-storage');\n+const blobService = azure.createBlobService();\n+const fs = require('fs');\n+\n+module.exports = {\n+    upload: function (container, folder, file) {\n+        return new Promise((resolve, reject) => {\n+            let blob = folder ? folder + '/' + file.name : file.name;\n+\n+            const readStream = fs.createReadStream(file.path);\n+            readStream.pipe(blobService.createWriteStreamToBlockBlob(container, blob, function (error, result, response) {\n+                if (!error) {\n+                    resolve(result);\n+                }\n+                else {\n+                    reject(error);\n+                }\n+            }));\n+        });\n+    },\n+    download: function (container, folder, fileName, res) {\n+        let blob = folder ? folder + '/' + fileName : fileName;","path":"src/azure-storage-helper.js","position":22,"original_position":22,"commit_id":"038e7348ffac45870de6b3c5bf6f857ce0d5d765","original_commit_id":"038e7348ffac45870de6b3c5bf6f857ce0d5d765","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).","created_at":"2018-08-03T14:37:58Z","updated_at":"2018-08-03T14:37:59Z","html_url":"https://github.com/danliris/dl-production-finishing-printing-webapi/pull/211#discussion_r207565897","pull_request_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/comments/207565897"},"html":{"href":"https://github.com/danliris/dl-production-finishing-printing-webapi/pull/211#discussion_r207565897"},"pull_request":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211","id":206050166,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MDUwMTY2","html_url":"https://github.com/danliris/dl-production-finishing-printing-webapi/pull/211","diff_url":"https://github.com/danliris/dl-production-finishing-printing-webapi/pull/211.diff","patch_url":"https://github.com/danliris/dl-production-finishing-printing-webapi/pull/211.patch","issue_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/211","number":211,"state":"open","locked":false,"title":"Merge UAT to Master 3 Aug 2018","user":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-03T14:37:46Z","updated_at":"2018-08-03T14:37:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211/commits","review_comments_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211/comments","review_comment_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/211/comments","statuses_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/statuses/038e7348ffac45870de6b3c5bf6f857ce0d5d765","head":{"label":"danliris:uat","ref":"uat","sha":"038e7348ffac45870de6b3c5bf6f857ce0d5d765","user":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":74094794,"node_id":"MDEwOlJlcG9zaXRvcnk3NDA5NDc5NA==","name":"dl-production-finishing-printing-webapi","full_name":"danliris/dl-production-finishing-printing-webapi","owner":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/dl-production-finishing-printing-webapi","description":"Dan Liris production RESTful api","fork":false,"url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi","forks_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/forks","keys_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/teams","hooks_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/hooks","issue_events_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/events","assignees_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/tags","blobs_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/languages","stargazers_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/stargazers","contributors_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/contributors","subscribers_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/subscribers","subscription_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/subscription","commits_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/merges","archive_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/downloads","issues_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/labels{/name}","releases_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/deployments","created_at":"2016-11-18T04:19:28Z","updated_at":"2018-08-03T14:19:17Z","pushed_at":"2018-08-03T14:37:47Z","git_url":"git://github.com/danliris/dl-production-finishing-printing-webapi.git","ssh_url":"git@github.com:danliris/dl-production-finishing-printing-webapi.git","clone_url":"https://github.com/danliris/dl-production-finishing-printing-webapi.git","svn_url":"https://github.com/danliris/dl-production-finishing-printing-webapi","homepage":null,"size":507,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":21,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:master","ref":"master","sha":"dcf30637d959cd2ce87aa3951da7d3a36ca54c53","user":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":74094794,"node_id":"MDEwOlJlcG9zaXRvcnk3NDA5NDc5NA==","name":"dl-production-finishing-printing-webapi","full_name":"danliris/dl-production-finishing-printing-webapi","owner":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/dl-production-finishing-printing-webapi","description":"Dan Liris production RESTful api","fork":false,"url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi","forks_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/forks","keys_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/teams","hooks_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/hooks","issue_events_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/events","assignees_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/tags","blobs_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/languages","stargazers_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/stargazers","contributors_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/contributors","subscribers_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/subscribers","subscription_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/subscription","commits_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/merges","archive_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/downloads","issues_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/labels{/name}","releases_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/deployments","created_at":"2016-11-18T04:19:28Z","updated_at":"2018-08-03T14:19:17Z","pushed_at":"2018-08-03T14:37:47Z","git_url":"git://github.com/danliris/dl-production-finishing-printing-webapi.git","ssh_url":"git@github.com:danliris/dl-production-finishing-printing-webapi.git","clone_url":"https://github.com/danliris/dl-production-finishing-printing-webapi.git","svn_url":"https://github.com/danliris/dl-production-finishing-printing-webapi","homepage":null,"size":507,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":21,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211"},"html":{"href":"https://github.com/danliris/dl-production-finishing-printing-webapi/pull/211"},"issue":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/211"},"comments":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/dl-production-finishing-printing-webapi/statuses/038e7348ffac45870de6b3c5bf6f857ce0d5d765"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}