{"action":"created","comment":{"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments/189891603","pull_request_review_id":122156733,"id":189891603,"diff_hunk":"@@ -22,14 +22,17 @@ import com.google.cloud.pubsub.v1.Publisher\n import com.google.protobuf.ByteString\n import com.google.pubsub.v1.PubsubMessage\n import com.google.pubsub.v1.TopicName\n+import org.apache.commons.io.FileUtils\n import org.slf4j.LoggerFactory\n+import java.io.File\n \n \n-fun getResultData(taskId: String, statusCode: StatusCode, resultBytes: ByteArray): ByteString {\n+fun getResultData(taskId: String, statusCode: StatusCode, compiledFile: File): ByteString {\n     return CompilerFleet.CompilerFleetResult.newBuilder()\n             .setTaskId(taskId)\n+            .setResultBytes(ByteString.copyFrom(FileUtils.readFileToByteArray(compiledFile)))\n+            .setRootFileName(compiledFile.name)","path":"src/main/kotlin/com/bardsoftware/backend/fleet/rmarkdown/Publisher.kt","position":14,"original_position":14,"commit_id":"2a9ec04d347917fb150fa10f61cde9c722b4a35f","original_commit_id":"2a9ec04d347917fb150fa10f61cde9c722b4a35f","user":{"login":"dbarashev","id":2028330,"avatar_url":"https://avatars2.githubusercontent.com/u/2028330?v=4","gravatar_id":"","url":"https://api.github.com/users/dbarashev","html_url":"https://github.com/dbarashev","followers_url":"https://api.github.com/users/dbarashev/followers","following_url":"https://api.github.com/users/dbarashev/following{/other_user}","gists_url":"https://api.github.com/users/dbarashev/gists{/gist_id}","starred_url":"https://api.github.com/users/dbarashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbarashev/subscriptions","organizations_url":"https://api.github.com/users/dbarashev/orgs","repos_url":"https://api.github.com/users/dbarashev/repos","events_url":"https://api.github.com/users/dbarashev/events{/privacy}","received_events_url":"https://api.github.com/users/dbarashev/received_events","type":"User","site_admin":false},"body":"It is still PDF name, isn't it? \r\n","created_at":"2018-05-22T13:03:37Z","updated_at":"2018-05-22T13:12:28Z","html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/25#discussion_r189891603","pull_request_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments/189891603"},"html":{"href":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/25#discussion_r189891603"},"pull_request":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25","id":189408405,"html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/25","diff_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/25.diff","patch_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/25.patch","issue_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/25","number":25,"state":"open","locked":false,"title":"Updated CLI Publisher","user":{"login":"shavkunov","id":15617786,"avatar_url":"https://avatars3.githubusercontent.com/u/15617786?v=4","gravatar_id":"","url":"https://api.github.com/users/shavkunov","html_url":"https://github.com/shavkunov","followers_url":"https://api.github.com/users/shavkunov/followers","following_url":"https://api.github.com/users/shavkunov/following{/other_user}","gists_url":"https://api.github.com/users/shavkunov/gists{/gist_id}","starred_url":"https://api.github.com/users/shavkunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shavkunov/subscriptions","organizations_url":"https://api.github.com/users/shavkunov/orgs","repos_url":"https://api.github.com/users/shavkunov/repos","events_url":"https://api.github.com/users/shavkunov/events{/privacy}","received_events_url":"https://api.github.com/users/shavkunov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-21T15:15:56Z","updated_at":"2018-05-22T13:12:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"416117a116b5533cf23dc2b0d9a3a201dfbe526a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25/commits","review_comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25/comments","review_comment_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/25/comments","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/2a9ec04d347917fb150fa10f61cde9c722b4a35f","head":{"label":"bardsoftware:cli-pub-improve","ref":"cli-pub-improve","sha":"2a9ec04d347917fb150fa10f61cde9c722b4a35f","user":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":126503654,"name":"papeeria-compiler-fleet","full_name":"bardsoftware/papeeria-compiler-fleet","owner":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","description":null,"fork":false,"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet","forks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/forks","keys_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/teams","hooks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/hooks","issue_events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/events{/number}","events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/events","assignees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/assignees{/user}","branches_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/branches{/branch}","tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/tags","blobs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/refs{/sha}","trees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/{sha}","languages_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/languages","stargazers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/stargazers","contributors_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contributors","subscribers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscribers","subscription_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscription","commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/commits{/sha}","git_commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/commits{/sha}","comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/comments{/number}","issue_comment_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/comments{/number}","contents_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contents/{+path}","compare_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/merges","archive_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/downloads","issues_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues{/number}","pulls_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls{/number}","milestones_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/milestones{/number}","notifications_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/labels{/name}","releases_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/releases{/id}","deployments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/deployments","created_at":"2018-03-23T15:22:45Z","updated_at":"2018-05-17T19:55:25Z","pushed_at":"2018-05-21T16:18:01Z","git_url":"git://github.com/bardsoftware/papeeria-compiler-fleet.git","ssh_url":"git@github.com:bardsoftware/papeeria-compiler-fleet.git","clone_url":"https://github.com/bardsoftware/papeeria-compiler-fleet.git","svn_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","homepage":null,"size":169,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"bardsoftware:master","ref":"master","sha":"d5846e9c0ae528293f00ce22fd2706ad73833b0a","user":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":126503654,"name":"papeeria-compiler-fleet","full_name":"bardsoftware/papeeria-compiler-fleet","owner":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","description":null,"fork":false,"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet","forks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/forks","keys_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/teams","hooks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/hooks","issue_events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/events{/number}","events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/events","assignees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/assignees{/user}","branches_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/branches{/branch}","tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/tags","blobs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/refs{/sha}","trees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/{sha}","languages_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/languages","stargazers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/stargazers","contributors_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contributors","subscribers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscribers","subscription_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscription","commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/commits{/sha}","git_commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/commits{/sha}","comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/comments{/number}","issue_comment_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/comments{/number}","contents_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contents/{+path}","compare_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/merges","archive_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/downloads","issues_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues{/number}","pulls_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls{/number}","milestones_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/milestones{/number}","notifications_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/labels{/name}","releases_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/releases{/id}","deployments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/deployments","created_at":"2018-03-23T15:22:45Z","updated_at":"2018-05-17T19:55:25Z","pushed_at":"2018-05-21T16:18:01Z","git_url":"git://github.com/bardsoftware/papeeria-compiler-fleet.git","ssh_url":"git@github.com:bardsoftware/papeeria-compiler-fleet.git","clone_url":"https://github.com/bardsoftware/papeeria-compiler-fleet.git","svn_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","homepage":null,"size":169,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25"},"html":{"href":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/25"},"issue":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/25"},"comments":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/2a9ec04d347917fb150fa10f61cde9c722b4a35f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dbarashev"}}