{"action":"created","comment":{"url":"https://api.github.com/repos/ChegoVdrug/TL/pulls/comments/235960946","pull_request_review_id":177950150,"id":235960946,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTk2MDk0Ng==","diff_hunk":"@@ -1,27 +1,46 @@\n package first;\n //класс получает путь относительно коневого каталога, читает из конфига корневой каталог, возвращает запрашиваемый файл или поток\n+\n import java.io.BufferedInputStream;\n+import java.io.File;\n import java.io.FileInputStream;\n import java.io.IOException;\n \n public class FileWorking {\n \n-    public static void readFileFromServerRoot(String name) throws IOException {\n+    public static boolean isFilePresent(String name, String dir) {\n+        String path = dir + \"/\" + name;\n+        System.out.println(path);\n+        File file = new File(path);","path":"TechLead/src/main/java/first/FileWorking.java","position":15,"original_position":15,"commit_id":"d1bf56689f407aded7ea213db2efba95b1a91643","original_commit_id":"d1bf56689f407aded7ea213db2efba95b1a91643","user":{"login":"belyaev-andrey","id":5458814,"node_id":"MDQ6VXNlcjU0NTg4MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5458814?v=4","gravatar_id":"","url":"https://api.github.com/users/belyaev-andrey","html_url":"https://github.com/belyaev-andrey","followers_url":"https://api.github.com/users/belyaev-andrey/followers","following_url":"https://api.github.com/users/belyaev-andrey/following{/other_user}","gists_url":"https://api.github.com/users/belyaev-andrey/gists{/gist_id}","starred_url":"https://api.github.com/users/belyaev-andrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belyaev-andrey/subscriptions","organizations_url":"https://api.github.com/users/belyaev-andrey/orgs","repos_url":"https://api.github.com/users/belyaev-andrey/repos","events_url":"https://api.github.com/users/belyaev-andrey/events{/privacy}","received_events_url":"https://api.github.com/users/belyaev-andrey/received_events","type":"User","site_admin":false},"body":"There is a constructor for File that accepts parent folder and file name","created_at":"2018-11-23T14:45:16Z","updated_at":"2018-11-23T14:46:35Z","html_url":"https://github.com/ChegoVdrug/TL/pull/1#discussion_r235960946","pull_request_url":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ChegoVdrug/TL/pulls/comments/235960946"},"html":{"href":"https://github.com/ChegoVdrug/TL/pull/1#discussion_r235960946"},"pull_request":{"href":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1","id":233205331,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMjA1MzMx","html_url":"https://github.com/ChegoVdrug/TL/pull/1","diff_url":"https://github.com/ChegoVdrug/TL/pull/1.diff","patch_url":"https://github.com/ChegoVdrug/TL/pull/1.patch","issue_url":"https://api.github.com/repos/ChegoVdrug/TL/issues/1","number":1,"state":"open","locked":false,"title":"Server+client","user":{"login":"ChegoVdrug","id":41072803,"node_id":"MDQ6VXNlcjQxMDcyODAz","avatar_url":"https://avatars0.githubusercontent.com/u/41072803?v=4","gravatar_id":"","url":"https://api.github.com/users/ChegoVdrug","html_url":"https://github.com/ChegoVdrug","followers_url":"https://api.github.com/users/ChegoVdrug/followers","following_url":"https://api.github.com/users/ChegoVdrug/following{/other_user}","gists_url":"https://api.github.com/users/ChegoVdrug/gists{/gist_id}","starred_url":"https://api.github.com/users/ChegoVdrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChegoVdrug/subscriptions","organizations_url":"https://api.github.com/users/ChegoVdrug/orgs","repos_url":"https://api.github.com/users/ChegoVdrug/repos","events_url":"https://api.github.com/users/ChegoVdrug/events{/privacy}","received_events_url":"https://api.github.com/users/ChegoVdrug/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-23T13:46:43Z","updated_at":"2018-11-23T14:46:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10723f4b00ad449d9584b108a5845f035480d616","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ChegoVdrug/TL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ChegoVdrug/TL/issues/1/comments","statuses_url":"https://api.github.com/repos/ChegoVdrug/TL/statuses/d1bf56689f407aded7ea213db2efba95b1a91643","head":{"label":"ChegoVdrug:ServerClient","ref":"ServerClient","sha":"d1bf56689f407aded7ea213db2efba95b1a91643","user":{"login":"ChegoVdrug","id":41072803,"node_id":"MDQ6VXNlcjQxMDcyODAz","avatar_url":"https://avatars0.githubusercontent.com/u/41072803?v=4","gravatar_id":"","url":"https://api.github.com/users/ChegoVdrug","html_url":"https://github.com/ChegoVdrug","followers_url":"https://api.github.com/users/ChegoVdrug/followers","following_url":"https://api.github.com/users/ChegoVdrug/following{/other_user}","gists_url":"https://api.github.com/users/ChegoVdrug/gists{/gist_id}","starred_url":"https://api.github.com/users/ChegoVdrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChegoVdrug/subscriptions","organizations_url":"https://api.github.com/users/ChegoVdrug/orgs","repos_url":"https://api.github.com/users/ChegoVdrug/repos","events_url":"https://api.github.com/users/ChegoVdrug/events{/privacy}","received_events_url":"https://api.github.com/users/ChegoVdrug/received_events","type":"User","site_admin":false},"repo":{"id":158751117,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg3NTExMTc=","name":"TL","full_name":"ChegoVdrug/TL","private":false,"owner":{"login":"ChegoVdrug","id":41072803,"node_id":"MDQ6VXNlcjQxMDcyODAz","avatar_url":"https://avatars0.githubusercontent.com/u/41072803?v=4","gravatar_id":"","url":"https://api.github.com/users/ChegoVdrug","html_url":"https://github.com/ChegoVdrug","followers_url":"https://api.github.com/users/ChegoVdrug/followers","following_url":"https://api.github.com/users/ChegoVdrug/following{/other_user}","gists_url":"https://api.github.com/users/ChegoVdrug/gists{/gist_id}","starred_url":"https://api.github.com/users/ChegoVdrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChegoVdrug/subscriptions","organizations_url":"https://api.github.com/users/ChegoVdrug/orgs","repos_url":"https://api.github.com/users/ChegoVdrug/repos","events_url":"https://api.github.com/users/ChegoVdrug/events{/privacy}","received_events_url":"https://api.github.com/users/ChegoVdrug/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ChegoVdrug/TL","description":null,"fork":false,"url":"https://api.github.com/repos/ChegoVdrug/TL","forks_url":"https://api.github.com/repos/ChegoVdrug/TL/forks","keys_url":"https://api.github.com/repos/ChegoVdrug/TL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChegoVdrug/TL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChegoVdrug/TL/teams","hooks_url":"https://api.github.com/repos/ChegoVdrug/TL/hooks","issue_events_url":"https://api.github.com/repos/ChegoVdrug/TL/issues/events{/number}","events_url":"https://api.github.com/repos/ChegoVdrug/TL/events","assignees_url":"https://api.github.com/repos/ChegoVdrug/TL/assignees{/user}","branches_url":"https://api.github.com/repos/ChegoVdrug/TL/branches{/branch}","tags_url":"https://api.github.com/repos/ChegoVdrug/TL/tags","blobs_url":"https://api.github.com/repos/ChegoVdrug/TL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChegoVdrug/TL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChegoVdrug/TL/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChegoVdrug/TL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChegoVdrug/TL/statuses/{sha}","languages_url":"https://api.github.com/repos/ChegoVdrug/TL/languages","stargazers_url":"https://api.github.com/repos/ChegoVdrug/TL/stargazers","contributors_url":"https://api.github.com/repos/ChegoVdrug/TL/contributors","subscribers_url":"https://api.github.com/repos/ChegoVdrug/TL/subscribers","subscription_url":"https://api.github.com/repos/ChegoVdrug/TL/subscription","commits_url":"https://api.github.com/repos/ChegoVdrug/TL/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChegoVdrug/TL/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChegoVdrug/TL/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChegoVdrug/TL/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChegoVdrug/TL/contents/{+path}","compare_url":"https://api.github.com/repos/ChegoVdrug/TL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChegoVdrug/TL/merges","archive_url":"https://api.github.com/repos/ChegoVdrug/TL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChegoVdrug/TL/downloads","issues_url":"https://api.github.com/repos/ChegoVdrug/TL/issues{/number}","pulls_url":"https://api.github.com/repos/ChegoVdrug/TL/pulls{/number}","milestones_url":"https://api.github.com/repos/ChegoVdrug/TL/milestones{/number}","notifications_url":"https://api.github.com/repos/ChegoVdrug/TL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChegoVdrug/TL/labels{/name}","releases_url":"https://api.github.com/repos/ChegoVdrug/TL/releases{/id}","deployments_url":"https://api.github.com/repos/ChegoVdrug/TL/deployments","created_at":"2018-11-22T21:20:34Z","updated_at":"2018-11-23T13:37:41Z","pushed_at":"2018-11-23T13:46:43Z","git_url":"git://github.com/ChegoVdrug/TL.git","ssh_url":"git@github.com:ChegoVdrug/TL.git","clone_url":"https://github.com/ChegoVdrug/TL.git","svn_url":"https://github.com/ChegoVdrug/TL","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"ChegoVdrug:master","ref":"master","sha":"21e7e019380272ba8579bde22bec022f6baa7a74","user":{"login":"ChegoVdrug","id":41072803,"node_id":"MDQ6VXNlcjQxMDcyODAz","avatar_url":"https://avatars0.githubusercontent.com/u/41072803?v=4","gravatar_id":"","url":"https://api.github.com/users/ChegoVdrug","html_url":"https://github.com/ChegoVdrug","followers_url":"https://api.github.com/users/ChegoVdrug/followers","following_url":"https://api.github.com/users/ChegoVdrug/following{/other_user}","gists_url":"https://api.github.com/users/ChegoVdrug/gists{/gist_id}","starred_url":"https://api.github.com/users/ChegoVdrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChegoVdrug/subscriptions","organizations_url":"https://api.github.com/users/ChegoVdrug/orgs","repos_url":"https://api.github.com/users/ChegoVdrug/repos","events_url":"https://api.github.com/users/ChegoVdrug/events{/privacy}","received_events_url":"https://api.github.com/users/ChegoVdrug/received_events","type":"User","site_admin":false},"repo":{"id":158751117,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg3NTExMTc=","name":"TL","full_name":"ChegoVdrug/TL","private":false,"owner":{"login":"ChegoVdrug","id":41072803,"node_id":"MDQ6VXNlcjQxMDcyODAz","avatar_url":"https://avatars0.githubusercontent.com/u/41072803?v=4","gravatar_id":"","url":"https://api.github.com/users/ChegoVdrug","html_url":"https://github.com/ChegoVdrug","followers_url":"https://api.github.com/users/ChegoVdrug/followers","following_url":"https://api.github.com/users/ChegoVdrug/following{/other_user}","gists_url":"https://api.github.com/users/ChegoVdrug/gists{/gist_id}","starred_url":"https://api.github.com/users/ChegoVdrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChegoVdrug/subscriptions","organizations_url":"https://api.github.com/users/ChegoVdrug/orgs","repos_url":"https://api.github.com/users/ChegoVdrug/repos","events_url":"https://api.github.com/users/ChegoVdrug/events{/privacy}","received_events_url":"https://api.github.com/users/ChegoVdrug/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ChegoVdrug/TL","description":null,"fork":false,"url":"https://api.github.com/repos/ChegoVdrug/TL","forks_url":"https://api.github.com/repos/ChegoVdrug/TL/forks","keys_url":"https://api.github.com/repos/ChegoVdrug/TL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChegoVdrug/TL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChegoVdrug/TL/teams","hooks_url":"https://api.github.com/repos/ChegoVdrug/TL/hooks","issue_events_url":"https://api.github.com/repos/ChegoVdrug/TL/issues/events{/number}","events_url":"https://api.github.com/repos/ChegoVdrug/TL/events","assignees_url":"https://api.github.com/repos/ChegoVdrug/TL/assignees{/user}","branches_url":"https://api.github.com/repos/ChegoVdrug/TL/branches{/branch}","tags_url":"https://api.github.com/repos/ChegoVdrug/TL/tags","blobs_url":"https://api.github.com/repos/ChegoVdrug/TL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChegoVdrug/TL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChegoVdrug/TL/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChegoVdrug/TL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChegoVdrug/TL/statuses/{sha}","languages_url":"https://api.github.com/repos/ChegoVdrug/TL/languages","stargazers_url":"https://api.github.com/repos/ChegoVdrug/TL/stargazers","contributors_url":"https://api.github.com/repos/ChegoVdrug/TL/contributors","subscribers_url":"https://api.github.com/repos/ChegoVdrug/TL/subscribers","subscription_url":"https://api.github.com/repos/ChegoVdrug/TL/subscription","commits_url":"https://api.github.com/repos/ChegoVdrug/TL/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChegoVdrug/TL/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChegoVdrug/TL/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChegoVdrug/TL/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChegoVdrug/TL/contents/{+path}","compare_url":"https://api.github.com/repos/ChegoVdrug/TL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChegoVdrug/TL/merges","archive_url":"https://api.github.com/repos/ChegoVdrug/TL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChegoVdrug/TL/downloads","issues_url":"https://api.github.com/repos/ChegoVdrug/TL/issues{/number}","pulls_url":"https://api.github.com/repos/ChegoVdrug/TL/pulls{/number}","milestones_url":"https://api.github.com/repos/ChegoVdrug/TL/milestones{/number}","notifications_url":"https://api.github.com/repos/ChegoVdrug/TL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChegoVdrug/TL/labels{/name}","releases_url":"https://api.github.com/repos/ChegoVdrug/TL/releases{/id}","deployments_url":"https://api.github.com/repos/ChegoVdrug/TL/deployments","created_at":"2018-11-22T21:20:34Z","updated_at":"2018-11-23T13:37:41Z","pushed_at":"2018-11-23T13:46:43Z","git_url":"git://github.com/ChegoVdrug/TL.git","ssh_url":"git@github.com:ChegoVdrug/TL.git","clone_url":"https://github.com/ChegoVdrug/TL.git","svn_url":"https://github.com/ChegoVdrug/TL","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Java","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/ChegoVdrug/TL/pulls/1"},"html":{"href":"https://github.com/ChegoVdrug/TL/pull/1"},"issue":{"href":"https://api.github.com/repos/ChegoVdrug/TL/issues/1"},"comments":{"href":"https://api.github.com/repos/ChegoVdrug/TL/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ChegoVdrug/TL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ChegoVdrug/TL/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ChegoVdrug/TL/statuses/d1bf56689f407aded7ea213db2efba95b1a91643"}},"author_association":"OWNER"}}
{"actor":{"display_login":"belyaev-andrey"}}