{"action":"created","comment":{"url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/comments/188302134","pull_request_review_id":120251658,"id":188302134,"diff_hunk":"@@ -207,14 +208,34 @@ server {\n \n             os.rename(\"/srv/storage/\" .. tmp_file_name, \"/srv/storage/\" .. header_path_with_filename)\n             os.remove(\"/srv/storage/\" .. tmp_file_name .. \".shactx\")\n+\n+            -- Send confirmation to the conductor after uploaded file.\n+            local http = require \"resty.http\"\n+            local httpc = http.new()\n+            local res, err = httpc:request_uri(\"{{ upload_report_url }}\" .. header_path_with_filename, {\n+            method = \"POST\",\n+            })","path":"kubernetes/config-maps/nginx-storage/default.conf.j2","position":null,"original_position":15,"commit_id":"b85185d62f9584b6e6b1125efd0c96fb3df02d71","original_commit_id":"c5655de72c85fc6dfb5479c20306cd98e7df5de9","user":{"login":"bartoszbetka","id":26007109,"avatar_url":"https://avatars0.githubusercontent.com/u/26007109?v=4","gravatar_id":"","url":"https://api.github.com/users/bartoszbetka","html_url":"https://github.com/bartoszbetka","followers_url":"https://api.github.com/users/bartoszbetka/followers","following_url":"https://api.github.com/users/bartoszbetka/following{/other_user}","gists_url":"https://api.github.com/users/bartoszbetka/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszbetka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszbetka/subscriptions","organizations_url":"https://api.github.com/users/bartoszbetka/orgs","repos_url":"https://api.github.com/users/bartoszbetka/repos","events_url":"https://api.github.com/users/bartoszbetka/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszbetka/received_events","type":"User","site_admin":false},"body":"Ok.  I will change it, but I'm not sure if there is the same analogy in lua. This condition `if not res then` comes from the documentation, so it must work.","created_at":"2018-05-15T14:11:36Z","updated_at":"2018-05-15T14:11:37Z","html_url":"https://github.com/golemfactory/concent-deployment/pull/123#discussion_r188302134","pull_request_url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/comments/188302134"},"html":{"href":"https://github.com/golemfactory/concent-deployment/pull/123#discussion_r188302134"},"pull_request":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123"}},"in_reply_to_id":187632997},"pull_request":{"url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123","id":186383784,"html_url":"https://github.com/golemfactory/concent-deployment/pull/123","diff_url":"https://github.com/golemfactory/concent-deployment/pull/123.diff","patch_url":"https://github.com/golemfactory/concent-deployment/pull/123.patch","issue_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues/123","number":123,"state":"open","locked":false,"title":"Add upload information for conductor to nginx-storage","user":{"login":"bartoszbetka","id":26007109,"avatar_url":"https://avatars0.githubusercontent.com/u/26007109?v=4","gravatar_id":"","url":"https://api.github.com/users/bartoszbetka","html_url":"https://github.com/bartoszbetka","followers_url":"https://api.github.com/users/bartoszbetka/followers","following_url":"https://api.github.com/users/bartoszbetka/following{/other_user}","gists_url":"https://api.github.com/users/bartoszbetka/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszbetka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszbetka/subscriptions","organizations_url":"https://api.github.com/users/bartoszbetka/orgs","repos_url":"https://api.github.com/users/bartoszbetka/repos","events_url":"https://api.github.com/users/bartoszbetka/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszbetka/received_events","type":"User","site_admin":false},"body":"Resolves #89","created_at":"2018-05-07T15:25:34Z","updated_at":"2018-05-15T14:11:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e333e7e866664d396a42e098f2b89ce2a9975b1c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123/commits","review_comments_url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123/comments","review_comment_url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues/123/comments","statuses_url":"https://api.github.com/repos/golemfactory/concent-deployment/statuses/b85185d62f9584b6e6b1125efd0c96fb3df02d71","head":{"label":"golemfactory:upload-notification-for-conductor","ref":"upload-notification-for-conductor","sha":"b85185d62f9584b6e6b1125efd0c96fb3df02d71","user":{"login":"golemfactory","id":23193179,"avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":108838807,"name":"concent-deployment","full_name":"golemfactory/concent-deployment","owner":{"login":"golemfactory","id":23193179,"avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/golemfactory/concent-deployment","description":"Scripts and configuration for Concent deployment","fork":false,"url":"https://api.github.com/repos/golemfactory/concent-deployment","forks_url":"https://api.github.com/repos/golemfactory/concent-deployment/forks","keys_url":"https://api.github.com/repos/golemfactory/concent-deployment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golemfactory/concent-deployment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golemfactory/concent-deployment/teams","hooks_url":"https://api.github.com/repos/golemfactory/concent-deployment/hooks","issue_events_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues/events{/number}","events_url":"https://api.github.com/repos/golemfactory/concent-deployment/events","assignees_url":"https://api.github.com/repos/golemfactory/concent-deployment/assignees{/user}","branches_url":"https://api.github.com/repos/golemfactory/concent-deployment/branches{/branch}","tags_url":"https://api.github.com/repos/golemfactory/concent-deployment/tags","blobs_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/refs{/sha}","trees_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golemfactory/concent-deployment/statuses/{sha}","languages_url":"https://api.github.com/repos/golemfactory/concent-deployment/languages","stargazers_url":"https://api.github.com/repos/golemfactory/concent-deployment/stargazers","contributors_url":"https://api.github.com/repos/golemfactory/concent-deployment/contributors","subscribers_url":"https://api.github.com/repos/golemfactory/concent-deployment/subscribers","subscription_url":"https://api.github.com/repos/golemfactory/concent-deployment/subscription","commits_url":"https://api.github.com/repos/golemfactory/concent-deployment/commits{/sha}","git_commits_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/commits{/sha}","comments_url":"https://api.github.com/repos/golemfactory/concent-deployment/comments{/number}","issue_comment_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues/comments{/number}","contents_url":"https://api.github.com/repos/golemfactory/concent-deployment/contents/{+path}","compare_url":"https://api.github.com/repos/golemfactory/concent-deployment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golemfactory/concent-deployment/merges","archive_url":"https://api.github.com/repos/golemfactory/concent-deployment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golemfactory/concent-deployment/downloads","issues_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues{/number}","pulls_url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls{/number}","milestones_url":"https://api.github.com/repos/golemfactory/concent-deployment/milestones{/number}","notifications_url":"https://api.github.com/repos/golemfactory/concent-deployment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golemfactory/concent-deployment/labels{/name}","releases_url":"https://api.github.com/repos/golemfactory/concent-deployment/releases{/id}","deployments_url":"https://api.github.com/repos/golemfactory/concent-deployment/deployments","created_at":"2017-10-30T11:01:11Z","updated_at":"2018-05-11T10:59:23Z","pushed_at":"2018-05-15T10:39:21Z","git_url":"git://github.com/golemfactory/concent-deployment.git","ssh_url":"git@github.com:golemfactory/concent-deployment.git","clone_url":"https://github.com/golemfactory/concent-deployment.git","svn_url":"https://github.com/golemfactory/concent-deployment","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":1,"open_issues":38,"watchers":1,"default_branch":"master"}},"base":{"label":"golemfactory:master","ref":"master","sha":"d307fa1d63db886e072fcf51ca1a399dbe1adfdc","user":{"login":"golemfactory","id":23193179,"avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":108838807,"name":"concent-deployment","full_name":"golemfactory/concent-deployment","owner":{"login":"golemfactory","id":23193179,"avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/golemfactory/concent-deployment","description":"Scripts and configuration for Concent deployment","fork":false,"url":"https://api.github.com/repos/golemfactory/concent-deployment","forks_url":"https://api.github.com/repos/golemfactory/concent-deployment/forks","keys_url":"https://api.github.com/repos/golemfactory/concent-deployment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golemfactory/concent-deployment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golemfactory/concent-deployment/teams","hooks_url":"https://api.github.com/repos/golemfactory/concent-deployment/hooks","issue_events_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues/events{/number}","events_url":"https://api.github.com/repos/golemfactory/concent-deployment/events","assignees_url":"https://api.github.com/repos/golemfactory/concent-deployment/assignees{/user}","branches_url":"https://api.github.com/repos/golemfactory/concent-deployment/branches{/branch}","tags_url":"https://api.github.com/repos/golemfactory/concent-deployment/tags","blobs_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/refs{/sha}","trees_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golemfactory/concent-deployment/statuses/{sha}","languages_url":"https://api.github.com/repos/golemfactory/concent-deployment/languages","stargazers_url":"https://api.github.com/repos/golemfactory/concent-deployment/stargazers","contributors_url":"https://api.github.com/repos/golemfactory/concent-deployment/contributors","subscribers_url":"https://api.github.com/repos/golemfactory/concent-deployment/subscribers","subscription_url":"https://api.github.com/repos/golemfactory/concent-deployment/subscription","commits_url":"https://api.github.com/repos/golemfactory/concent-deployment/commits{/sha}","git_commits_url":"https://api.github.com/repos/golemfactory/concent-deployment/git/commits{/sha}","comments_url":"https://api.github.com/repos/golemfactory/concent-deployment/comments{/number}","issue_comment_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues/comments{/number}","contents_url":"https://api.github.com/repos/golemfactory/concent-deployment/contents/{+path}","compare_url":"https://api.github.com/repos/golemfactory/concent-deployment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golemfactory/concent-deployment/merges","archive_url":"https://api.github.com/repos/golemfactory/concent-deployment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golemfactory/concent-deployment/downloads","issues_url":"https://api.github.com/repos/golemfactory/concent-deployment/issues{/number}","pulls_url":"https://api.github.com/repos/golemfactory/concent-deployment/pulls{/number}","milestones_url":"https://api.github.com/repos/golemfactory/concent-deployment/milestones{/number}","notifications_url":"https://api.github.com/repos/golemfactory/concent-deployment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golemfactory/concent-deployment/labels{/name}","releases_url":"https://api.github.com/repos/golemfactory/concent-deployment/releases{/id}","deployments_url":"https://api.github.com/repos/golemfactory/concent-deployment/deployments","created_at":"2017-10-30T11:01:11Z","updated_at":"2018-05-11T10:59:23Z","pushed_at":"2018-05-15T10:39:21Z","git_url":"git://github.com/golemfactory/concent-deployment.git","ssh_url":"git@github.com:golemfactory/concent-deployment.git","clone_url":"https://github.com/golemfactory/concent-deployment.git","svn_url":"https://github.com/golemfactory/concent-deployment","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":1,"open_issues":38,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123"},"html":{"href":"https://github.com/golemfactory/concent-deployment/pull/123"},"issue":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/issues/123"},"comments":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/golemfactory/concent-deployment/statuses/b85185d62f9584b6e6b1125efd0c96fb3df02d71"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bartoszbetka"}}