{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io/resin-cli/pulls/comments/113428794","pull_request_review_id":34815154,"id":113428794,"diff_hunk":"@@ -58,6 +63,15 @@ performUpload = (image, token, username, url, size, appName) ->\n \n \tuploadToPromise(post, size)\n \n+uploadLogs = (logs, token, url, buildId, username, appName) ->\n+\trequest = require('request')\n+\turl = url || process.env.RESINRC_RESIN_URL\n+\trequest.post\n+\t\turl: getBuilderLogPushEndpoint(url, buildId, username, appName)\n+\t\tauth:\n+\t\t\tbearer: token\n+\t\tbody: Buffer.from(logs).toString('base64')","path":"lib/actions/deploy.coffee","position":36,"original_position":23,"commit_id":"f893cb60c8d3bed26d2442ca35072298b6b111d0","original_commit_id":"d8864e26d3787de4a4243518c1661a59a97165c2","user":{"login":"emirotin","id":525832,"avatar_url":"https://avatars3.githubusercontent.com/u/525832?v=3","gravatar_id":"","url":"https://api.github.com/users/emirotin","html_url":"https://github.com/emirotin","followers_url":"https://api.github.com/users/emirotin/followers","following_url":"https://api.github.com/users/emirotin/following{/other_user}","gists_url":"https://api.github.com/users/emirotin/gists{/gist_id}","starred_url":"https://api.github.com/users/emirotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emirotin/subscriptions","organizations_url":"https://api.github.com/users/emirotin/orgs","repos_url":"https://api.github.com/users/emirotin/repos","events_url":"https://api.github.com/users/emirotin/events{/privacy}","received_events_url":"https://api.github.com/users/emirotin/received_events","type":"User","site_admin":false},"body":"I think it will be sent as octet-stream, not as base64-encoded, so the change on the server side will be needed as well.","created_at":"2017-04-26T11:37:26Z","updated_at":"2017-04-26T11:37:26Z","html_url":"https://github.com/resin-io/resin-cli/pull/493#discussion_r113428794","pull_request_url":"https://api.github.com/repos/resin-io/resin-cli/pulls/493","_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-cli/pulls/comments/113428794"},"html":{"href":"https://github.com/resin-io/resin-cli/pull/493#discussion_r113428794"},"pull_request":{"href":"https://api.github.com/repos/resin-io/resin-cli/pulls/493"}}},"pull_request":{"url":"https://api.github.com/repos/resin-io/resin-cli/pulls/493","id":117234292,"html_url":"https://github.com/resin-io/resin-cli/pull/493","diff_url":"https://github.com/resin-io/resin-cli/pull/493.diff","patch_url":"https://github.com/resin-io/resin-cli/pull/493.patch","issue_url":"https://api.github.com/repos/resin-io/resin-cli/issues/493","number":493,"state":"open","locked":false,"title":"Upload logs when doing both build + deploy","user":{"login":"CameronDiver","id":7694128,"avatar_url":"https://avatars3.githubusercontent.com/u/7694128?v=3","gravatar_id":"","url":"https://api.github.com/users/CameronDiver","html_url":"https://github.com/CameronDiver","followers_url":"https://api.github.com/users/CameronDiver/followers","following_url":"https://api.github.com/users/CameronDiver/following{/other_user}","gists_url":"https://api.github.com/users/CameronDiver/gists{/gist_id}","starred_url":"https://api.github.com/users/CameronDiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CameronDiver/subscriptions","organizations_url":"https://api.github.com/users/CameronDiver/orgs","repos_url":"https://api.github.com/users/CameronDiver/repos","events_url":"https://api.github.com/users/CameronDiver/events{/privacy}","received_events_url":"https://api.github.com/users/CameronDiver/received_events","type":"User","site_admin":false},"body":"* Also add an option to not upload the logs.","created_at":"2017-04-24T10:32:06Z","updated_at":"2017-04-26T11:37:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"207db9fb4fd9f5b91ad72ff45ccc2381f143ffc4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/resin-io/resin-cli/pulls/493/commits","review_comments_url":"https://api.github.com/repos/resin-io/resin-cli/pulls/493/comments","review_comment_url":"https://api.github.com/repos/resin-io/resin-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io/resin-cli/issues/493/comments","statuses_url":"https://api.github.com/repos/resin-io/resin-cli/statuses/f893cb60c8d3bed26d2442ca35072298b6b111d0","head":{"label":"resin-io:local-upload-logs","ref":"local-upload-logs","sha":"f893cb60c8d3bed26d2442ca35072298b6b111d0","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars2.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":31549380,"name":"resin-cli","full_name":"resin-io/resin-cli","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars2.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-cli","description":"The official Resin CLI tool.","fork":false,"url":"https://api.github.com/repos/resin-io/resin-cli","forks_url":"https://api.github.com/repos/resin-io/resin-cli/forks","keys_url":"https://api.github.com/repos/resin-io/resin-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-cli/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-cli/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-cli/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-cli/events","assignees_url":"https://api.github.com/repos/resin-io/resin-cli/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-cli/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-cli/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-cli/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-cli/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-cli/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-cli/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-cli/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-cli/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-cli/merges","archive_url":"https://api.github.com/repos/resin-io/resin-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-cli/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-cli/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-cli/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-cli/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/resin-cli/deployments","created_at":"2015-03-02T16:18:03Z","updated_at":"2017-04-20T05:48:50Z","pushed_at":"2017-04-26T11:23:34Z","git_url":"git://github.com/resin-io/resin-cli.git","ssh_url":"git@github.com:resin-io/resin-cli.git","clone_url":"https://github.com/resin-io/resin-cli.git","svn_url":"https://github.com/resin-io/resin-cli","homepage":"","size":1769,"stargazers_count":27,"watchers_count":27,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":61,"forks":10,"open_issues":61,"watchers":27,"default_branch":"master"}},"base":{"label":"resin-io:master","ref":"master","sha":"04c2333a54493a40b5e082abd4b9118f8fe97a4f","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars2.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":31549380,"name":"resin-cli","full_name":"resin-io/resin-cli","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars2.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-cli","description":"The official Resin CLI tool.","fork":false,"url":"https://api.github.com/repos/resin-io/resin-cli","forks_url":"https://api.github.com/repos/resin-io/resin-cli/forks","keys_url":"https://api.github.com/repos/resin-io/resin-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-cli/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-cli/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-cli/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-cli/events","assignees_url":"https://api.github.com/repos/resin-io/resin-cli/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-cli/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-cli/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-cli/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-cli/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-cli/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-cli/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-cli/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-cli/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-cli/merges","archive_url":"https://api.github.com/repos/resin-io/resin-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-cli/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-cli/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-cli/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-cli/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/resin-cli/deployments","created_at":"2015-03-02T16:18:03Z","updated_at":"2017-04-20T05:48:50Z","pushed_at":"2017-04-26T11:23:34Z","git_url":"git://github.com/resin-io/resin-cli.git","ssh_url":"git@github.com:resin-io/resin-cli.git","clone_url":"https://github.com/resin-io/resin-cli.git","svn_url":"https://github.com/resin-io/resin-cli","homepage":"","size":1769,"stargazers_count":27,"watchers_count":27,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":61,"forks":10,"open_issues":61,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-cli/pulls/493"},"html":{"href":"https://github.com/resin-io/resin-cli/pull/493"},"issue":{"href":"https://api.github.com/repos/resin-io/resin-cli/issues/493"},"comments":{"href":"https://api.github.com/repos/resin-io/resin-cli/issues/493/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io/resin-cli/pulls/493/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io/resin-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io/resin-cli/pulls/493/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io/resin-cli/statuses/f893cb60c8d3bed26d2442ca35072298b6b111d0"}}}}
{"actor":{"display_login":"emirotin"}}