{"action":"created","comment":{"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments/203569441","pull_request_review_id":138484611,"id":203569441,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzU2OTQ0MQ==","diff_hunk":"@@ -0,0 +1,47 @@\n+/**\n+    Copyright 2018 BarD Software s.r.o\n+\n+    Licensed under the Apache License, Version 2.0 (the \"License\");\n+    you may not use this file except in compliance with the License.\n+    You may obtain a copy of the License at\n+    http://www.apache.org/licenses/LICENSE-2.0\n+    Unless required by applicable law or agreed to in writing, software\n+    distributed under the License is distributed on an \"AS IS\" BASIS,\n+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+    See the License for the specific language governing permissions and\n+    limitations under the License.\n+\n+    Author: Mikhail Shavkunov (@shavkunov)\n+ */\n+\n+package com.bardsoftware.backend.fleet.rmarkdown\n+\n+import com.typesafe.config.Config\n+import com.typesafe.config.ConfigFactory\n+import org.apache.commons.lang.text.StrSubstitutor\n+import org.slf4j.LoggerFactory\n+\n+private val LOGGER = LoggerFactory.getLogger(\"Pandoc\")\n+const val PANDOC_DEFAULT_FONT = \"DejaVu Sans\"\n+val DEFAULT_CONFIG = ConfigFactory.load()\n+val pandocArguments = listOf(\"projectRootAbsPath\", \"workingDirRelPath\",\n+        \"inputFileName\", \"outputFileName\", \"mainFont\")\n+\n+fun compile(config: Config, substituteArguments: List<String> = pandocArguments, vararg args: String) {\n+    val compileCommand= config.getString(\"pandoc.compile.command\")","path":"src/main/kotlin/com/bardsoftware/backend/fleet/rmarkdown/PandocCompiler.kt","position":31,"original_position":31,"commit_id":"292e953a0d293a3bdd977fc64eebc1d58a8a8733","original_commit_id":"292e953a0d293a3bdd977fc64eebc1d58a8a8733","user":{"login":"dbarashev","id":2028330,"node_id":"MDQ6VXNlcjIwMjgzMzA=","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":"nit: space before `=`","created_at":"2018-07-19T00:12:56Z","updated_at":"2018-07-19T00:23:12Z","html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/33#discussion_r203569441","pull_request_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments/203569441"},"html":{"href":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/33#discussion_r203569441"},"pull_request":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33","id":201991918,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxOTkxOTE4","html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/33","diff_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/33.diff","patch_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/33.patch","issue_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/33","number":33,"state":"open","locked":false,"title":"Process markdown compiling via Pandoc","user":{"login":"shavkunov","id":15617786,"node_id":"MDQ6VXNlcjE1NjE3Nzg2","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-07-17T16:02:26Z","updated_at":"2018-07-19T00:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f947fa6bc72891f1252748c9556e54d2784f6a56","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33/commits","review_comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33/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/33/comments","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/292e953a0d293a3bdd977fc64eebc1d58a8a8733","head":{"label":"bardsoftware:tkt-32-pandoc-compile","ref":"tkt-32-pandoc-compile","sha":"292e953a0d293a3bdd977fc64eebc1d58a8a8733","user":{"login":"bardsoftware","id":2625618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MjU2MTg=","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY1MDM2NTQ=","name":"papeeria-compiler-fleet","full_name":"bardsoftware/papeeria-compiler-fleet","owner":{"login":"bardsoftware","id":2625618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MjU2MTg=","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-07-14T16:58:52Z","pushed_at":"2018-07-18T15:12:14Z","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":445,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"bardsoftware:master","ref":"master","sha":"94603e3c1a5e45a0f00134c8767e5c8a45bd9d47","user":{"login":"bardsoftware","id":2625618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MjU2MTg=","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY1MDM2NTQ=","name":"papeeria-compiler-fleet","full_name":"bardsoftware/papeeria-compiler-fleet","owner":{"login":"bardsoftware","id":2625618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MjU2MTg=","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-07-14T16:58:52Z","pushed_at":"2018-07-18T15:12:14Z","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":445,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33"},"html":{"href":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/33"},"issue":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/33"},"comments":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/33/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/33/commits"},"statuses":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/292e953a0d293a3bdd977fc64eebc1d58a8a8733"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dbarashev"}}