{"action":"created","comment":{"url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/comments/194350328","pull_request_review_id":127502110,"id":194350328,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDM1MDMyOA==","diff_hunk":"@@ -0,0 +1,26 @@\n+package com.itacademy.service.converter;\n+\n+\n+import com.itacademy.entity.User;\n+import org.springframework.security.core.authority.SimpleGrantedAuthority;\n+import org.springframework.security.core.userdetails.UserDetails;\n+import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;\n+import org.springframework.stereotype.Component;\n+\n+@Component\n+public class UserDetailsConverter {\n+\n+    public UserDetails convert(User user) {\n+        return org.springframework.security.core.userdetails.User\n+                .builder()\n+                .username(user.getName())\n+                .password(user.getPassword())\n+                .authorities(new SimpleGrantedAuthority(user.getRole().getName()))\n+                .build();\n+    }\n+    public static void main(String[] args) {\n+        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();\n+        String pass = bCryptPasswordEncoder.encode(\"password\");\n+        System.out.println(pass);\n+    }","path":"service/src/main/java/com/itacademy/service/converter/UserDetailsConverter.java","position":25,"original_position":25,"commit_id":"eebd6bcfc6beb7119852e546cb6b75d4aa2a8c1b","original_commit_id":"eebd6bcfc6beb7119852e546cb6b75d4aa2a8c1b","user":{"login":"DzianisMatveyenka","id":19999031,"node_id":"MDQ6VXNlcjE5OTk5MDMx","avatar_url":"https://avatars2.githubusercontent.com/u/19999031?v=4","gravatar_id":"","url":"https://api.github.com/users/DzianisMatveyenka","html_url":"https://github.com/DzianisMatveyenka","followers_url":"https://api.github.com/users/DzianisMatveyenka/followers","following_url":"https://api.github.com/users/DzianisMatveyenka/following{/other_user}","gists_url":"https://api.github.com/users/DzianisMatveyenka/gists{/gist_id}","starred_url":"https://api.github.com/users/DzianisMatveyenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzianisMatveyenka/subscriptions","organizations_url":"https://api.github.com/users/DzianisMatveyenka/orgs","repos_url":"https://api.github.com/users/DzianisMatveyenka/repos","events_url":"https://api.github.com/users/DzianisMatveyenka/events{/privacy}","received_events_url":"https://api.github.com/users/DzianisMatveyenka/received_events","type":"User","site_admin":false},"body":"не должно быть метода main","created_at":"2018-06-11T09:57:07Z","updated_at":"2018-06-11T10:01:25Z","html_url":"https://github.com/AntonSergeichyk/poezd-projec/pull/6#discussion_r194350328","pull_request_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/comments/194350328"},"html":{"href":"https://github.com/AntonSergeichyk/poezd-projec/pull/6#discussion_r194350328"},"pull_request":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6","id":193829433,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzODI5NDMz","html_url":"https://github.com/AntonSergeichyk/poezd-projec/pull/6","diff_url":"https://github.com/AntonSergeichyk/poezd-projec/pull/6.diff","patch_url":"https://github.com/AntonSergeichyk/poezd-projec/pull/6.patch","issue_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/6","number":6,"state":"open","locked":false,"title":"fifth point branch","user":{"login":"AntonSergeichyk","id":35502291,"node_id":"MDQ6VXNlcjM1NTAyMjkx","avatar_url":"https://avatars2.githubusercontent.com/u/35502291?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonSergeichyk","html_url":"https://github.com/AntonSergeichyk","followers_url":"https://api.github.com/users/AntonSergeichyk/followers","following_url":"https://api.github.com/users/AntonSergeichyk/following{/other_user}","gists_url":"https://api.github.com/users/AntonSergeichyk/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonSergeichyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonSergeichyk/subscriptions","organizations_url":"https://api.github.com/users/AntonSergeichyk/orgs","repos_url":"https://api.github.com/users/AntonSergeichyk/repos","events_url":"https://api.github.com/users/AntonSergeichyk/events{/privacy}","received_events_url":"https://api.github.com/users/AntonSergeichyk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-10T14:36:53Z","updated_at":"2018-06-11T10:01:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"562f026031a16a267a8272863e523a3b1d4c05df","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6/commits","review_comments_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6/comments","review_comment_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/6/comments","statuses_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/statuses/eebd6bcfc6beb7119852e546cb6b75d4aa2a8c1b","head":{"label":"AntonSergeichyk:fifthPointBranch","ref":"fifthPointBranch","sha":"eebd6bcfc6beb7119852e546cb6b75d4aa2a8c1b","user":{"login":"AntonSergeichyk","id":35502291,"node_id":"MDQ6VXNlcjM1NTAyMjkx","avatar_url":"https://avatars2.githubusercontent.com/u/35502291?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonSergeichyk","html_url":"https://github.com/AntonSergeichyk","followers_url":"https://api.github.com/users/AntonSergeichyk/followers","following_url":"https://api.github.com/users/AntonSergeichyk/following{/other_user}","gists_url":"https://api.github.com/users/AntonSergeichyk/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonSergeichyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonSergeichyk/subscriptions","organizations_url":"https://api.github.com/users/AntonSergeichyk/orgs","repos_url":"https://api.github.com/users/AntonSergeichyk/repos","events_url":"https://api.github.com/users/AntonSergeichyk/events{/privacy}","received_events_url":"https://api.github.com/users/AntonSergeichyk/received_events","type":"User","site_admin":false},"repo":{"id":131513123,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE1MTMxMjM=","name":"poezd-projec","full_name":"AntonSergeichyk/poezd-projec","owner":{"login":"AntonSergeichyk","id":35502291,"node_id":"MDQ6VXNlcjM1NTAyMjkx","avatar_url":"https://avatars2.githubusercontent.com/u/35502291?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonSergeichyk","html_url":"https://github.com/AntonSergeichyk","followers_url":"https://api.github.com/users/AntonSergeichyk/followers","following_url":"https://api.github.com/users/AntonSergeichyk/following{/other_user}","gists_url":"https://api.github.com/users/AntonSergeichyk/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonSergeichyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonSergeichyk/subscriptions","organizations_url":"https://api.github.com/users/AntonSergeichyk/orgs","repos_url":"https://api.github.com/users/AntonSergeichyk/repos","events_url":"https://api.github.com/users/AntonSergeichyk/events{/privacy}","received_events_url":"https://api.github.com/users/AntonSergeichyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AntonSergeichyk/poezd-projec","description":null,"fork":false,"url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec","forks_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/forks","keys_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/teams","hooks_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/hooks","issue_events_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/events{/number}","events_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/events","assignees_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/assignees{/user}","branches_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/branches{/branch}","tags_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/tags","blobs_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/statuses/{sha}","languages_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/languages","stargazers_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/stargazers","contributors_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/contributors","subscribers_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/subscribers","subscription_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/subscription","commits_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/contents/{+path}","compare_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/merges","archive_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/downloads","issues_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues{/number}","pulls_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls{/number}","milestones_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/milestones{/number}","notifications_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/labels{/name}","releases_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/releases{/id}","deployments_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/deployments","created_at":"2018-04-29T17:02:55Z","updated_at":"2018-06-10T14:35:27Z","pushed_at":"2018-06-10T17:54:36Z","git_url":"git://github.com/AntonSergeichyk/poezd-projec.git","ssh_url":"git@github.com:AntonSergeichyk/poezd-projec.git","clone_url":"https://github.com/AntonSergeichyk/poezd-projec.git","svn_url":"https://github.com/AntonSergeichyk/poezd-projec","homepage":null,"size":119,"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":"AntonSergeichyk:master","ref":"master","sha":"9f63b2b49b45566ef93738c4b27873663bb7b1be","user":{"login":"AntonSergeichyk","id":35502291,"node_id":"MDQ6VXNlcjM1NTAyMjkx","avatar_url":"https://avatars2.githubusercontent.com/u/35502291?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonSergeichyk","html_url":"https://github.com/AntonSergeichyk","followers_url":"https://api.github.com/users/AntonSergeichyk/followers","following_url":"https://api.github.com/users/AntonSergeichyk/following{/other_user}","gists_url":"https://api.github.com/users/AntonSergeichyk/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonSergeichyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonSergeichyk/subscriptions","organizations_url":"https://api.github.com/users/AntonSergeichyk/orgs","repos_url":"https://api.github.com/users/AntonSergeichyk/repos","events_url":"https://api.github.com/users/AntonSergeichyk/events{/privacy}","received_events_url":"https://api.github.com/users/AntonSergeichyk/received_events","type":"User","site_admin":false},"repo":{"id":131513123,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE1MTMxMjM=","name":"poezd-projec","full_name":"AntonSergeichyk/poezd-projec","owner":{"login":"AntonSergeichyk","id":35502291,"node_id":"MDQ6VXNlcjM1NTAyMjkx","avatar_url":"https://avatars2.githubusercontent.com/u/35502291?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonSergeichyk","html_url":"https://github.com/AntonSergeichyk","followers_url":"https://api.github.com/users/AntonSergeichyk/followers","following_url":"https://api.github.com/users/AntonSergeichyk/following{/other_user}","gists_url":"https://api.github.com/users/AntonSergeichyk/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonSergeichyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonSergeichyk/subscriptions","organizations_url":"https://api.github.com/users/AntonSergeichyk/orgs","repos_url":"https://api.github.com/users/AntonSergeichyk/repos","events_url":"https://api.github.com/users/AntonSergeichyk/events{/privacy}","received_events_url":"https://api.github.com/users/AntonSergeichyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AntonSergeichyk/poezd-projec","description":null,"fork":false,"url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec","forks_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/forks","keys_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/teams","hooks_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/hooks","issue_events_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/events{/number}","events_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/events","assignees_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/assignees{/user}","branches_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/branches{/branch}","tags_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/tags","blobs_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/statuses/{sha}","languages_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/languages","stargazers_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/stargazers","contributors_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/contributors","subscribers_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/subscribers","subscription_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/subscription","commits_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/contents/{+path}","compare_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/merges","archive_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/downloads","issues_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues{/number}","pulls_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls{/number}","milestones_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/milestones{/number}","notifications_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/labels{/name}","releases_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/releases{/id}","deployments_url":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/deployments","created_at":"2018-04-29T17:02:55Z","updated_at":"2018-06-10T14:35:27Z","pushed_at":"2018-06-10T17:54:36Z","git_url":"git://github.com/AntonSergeichyk/poezd-projec.git","ssh_url":"git@github.com:AntonSergeichyk/poezd-projec.git","clone_url":"https://github.com/AntonSergeichyk/poezd-projec.git","svn_url":"https://github.com/AntonSergeichyk/poezd-projec","homepage":null,"size":119,"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/AntonSergeichyk/poezd-projec/pulls/6"},"html":{"href":"https://github.com/AntonSergeichyk/poezd-projec/pull/6"},"issue":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/6"},"comments":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/AntonSergeichyk/poezd-projec/statuses/eebd6bcfc6beb7119852e546cb6b75d4aa2a8c1b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"DzianisMatveyenka"}}