{"action":"created","comment":{"url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/comments/192411648","pull_request_review_id":125187465,"id":192411648,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjQxMTY0OA==","diff_hunk":"@@ -0,0 +1,7 @@\n+# frozen_string_literal: true\n+\n+class SlackPlayerCreator\n+  def call(slack_id)\n+    Player.find_or_create_by(slack_id: slack_id)\n+  end\n+end","path":"app/services/slack_player_creator.rb","position":7,"original_position":7,"commit_id":"724d690c1823c5e4235d95541776dd24952dfe2e","original_commit_id":"724d690c1823c5e4235d95541776dd24952dfe2e","user":{"login":"shadre","id":19561672,"node_id":"MDQ6VXNlcjE5NTYxNjcy","avatar_url":"https://avatars0.githubusercontent.com/u/19561672?v=4","gravatar_id":"","url":"https://api.github.com/users/shadre","html_url":"https://github.com/shadre","followers_url":"https://api.github.com/users/shadre/followers","following_url":"https://api.github.com/users/shadre/following{/other_user}","gists_url":"https://api.github.com/users/shadre/gists{/gist_id}","starred_url":"https://api.github.com/users/shadre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadre/subscriptions","organizations_url":"https://api.github.com/users/shadre/orgs","repos_url":"https://api.github.com/users/shadre/repos","events_url":"https://api.github.com/users/shadre/events{/privacy}","received_events_url":"https://api.github.com/users/shadre/received_events","type":"User","site_admin":false},"body":"Please let me know what you think of such implementation. @ArturT  @rusilko ","created_at":"2018-06-01T14:22:12Z","updated_at":"2018-06-01T14:22:13Z","html_url":"https://github.com/LunarLogic/foosball-app/pull/18#discussion_r192411648","pull_request_url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/comments/192411648"},"html":{"href":"https://github.com/LunarLogic/foosball-app/pull/18#discussion_r192411648"},"pull_request":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18","id":192007629,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMDA3NjI5","html_url":"https://github.com/LunarLogic/foosball-app/pull/18","diff_url":"https://github.com/LunarLogic/foosball-app/pull/18.diff","patch_url":"https://github.com/LunarLogic/foosball-app/pull/18.patch","issue_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues/18","number":18,"state":"open","locked":false,"title":"Extract parser","user":{"login":"shadre","id":19561672,"node_id":"MDQ6VXNlcjE5NTYxNjcy","avatar_url":"https://avatars0.githubusercontent.com/u/19561672?v=4","gravatar_id":"","url":"https://api.github.com/users/shadre","html_url":"https://github.com/shadre","followers_url":"https://api.github.com/users/shadre/followers","following_url":"https://api.github.com/users/shadre/following{/other_user}","gists_url":"https://api.github.com/users/shadre/gists{/gist_id}","starred_url":"https://api.github.com/users/shadre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadre/subscriptions","organizations_url":"https://api.github.com/users/shadre/orgs","repos_url":"https://api.github.com/users/shadre/repos","events_url":"https://api.github.com/users/shadre/events{/privacy}","received_events_url":"https://api.github.com/users/shadre/received_events","type":"User","site_admin":false},"body":"Extracts Slack query parsing logic to a separate service.","created_at":"2018-06-01T11:27:36Z","updated_at":"2018-06-01T14:22:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4808e2376a4d5b7dc1b5e9662a742f675f4f0a2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rusilko","id":386670,"node_id":"MDQ6VXNlcjM4NjY3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/386670?v=4","gravatar_id":"","url":"https://api.github.com/users/rusilko","html_url":"https://github.com/rusilko","followers_url":"https://api.github.com/users/rusilko/followers","following_url":"https://api.github.com/users/rusilko/following{/other_user}","gists_url":"https://api.github.com/users/rusilko/gists{/gist_id}","starred_url":"https://api.github.com/users/rusilko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rusilko/subscriptions","organizations_url":"https://api.github.com/users/rusilko/orgs","repos_url":"https://api.github.com/users/rusilko/repos","events_url":"https://api.github.com/users/rusilko/events{/privacy}","received_events_url":"https://api.github.com/users/rusilko/received_events","type":"User","site_admin":false},{"login":"marekciupak","id":6394528,"node_id":"MDQ6VXNlcjYzOTQ1Mjg=","avatar_url":"https://avatars3.githubusercontent.com/u/6394528?v=4","gravatar_id":"","url":"https://api.github.com/users/marekciupak","html_url":"https://github.com/marekciupak","followers_url":"https://api.github.com/users/marekciupak/followers","following_url":"https://api.github.com/users/marekciupak/following{/other_user}","gists_url":"https://api.github.com/users/marekciupak/gists{/gist_id}","starred_url":"https://api.github.com/users/marekciupak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekciupak/subscriptions","organizations_url":"https://api.github.com/users/marekciupak/orgs","repos_url":"https://api.github.com/users/marekciupak/repos","events_url":"https://api.github.com/users/marekciupak/events{/privacy}","received_events_url":"https://api.github.com/users/marekciupak/received_events","type":"User","site_admin":false},{"login":"takiarek","id":16084290,"node_id":"MDQ6VXNlcjE2MDg0Mjkw","avatar_url":"https://avatars3.githubusercontent.com/u/16084290?v=4","gravatar_id":"","url":"https://api.github.com/users/takiarek","html_url":"https://github.com/takiarek","followers_url":"https://api.github.com/users/takiarek/followers","following_url":"https://api.github.com/users/takiarek/following{/other_user}","gists_url":"https://api.github.com/users/takiarek/gists{/gist_id}","starred_url":"https://api.github.com/users/takiarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takiarek/subscriptions","organizations_url":"https://api.github.com/users/takiarek/orgs","repos_url":"https://api.github.com/users/takiarek/repos","events_url":"https://api.github.com/users/takiarek/events{/privacy}","received_events_url":"https://api.github.com/users/takiarek/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18/commits","review_comments_url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18/comments","review_comment_url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues/18/comments","statuses_url":"https://api.github.com/repos/LunarLogic/foosball-app/statuses/724d690c1823c5e4235d95541776dd24952dfe2e","head":{"label":"LunarLogic:extract-parser","ref":"extract-parser","sha":"724d690c1823c5e4235d95541776dd24952dfe2e","user":{"login":"LunarLogic","id":32623,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjIz","avatar_url":"https://avatars3.githubusercontent.com/u/32623?v=4","gravatar_id":"","url":"https://api.github.com/users/LunarLogic","html_url":"https://github.com/LunarLogic","followers_url":"https://api.github.com/users/LunarLogic/followers","following_url":"https://api.github.com/users/LunarLogic/following{/other_user}","gists_url":"https://api.github.com/users/LunarLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/LunarLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunarLogic/subscriptions","organizations_url":"https://api.github.com/users/LunarLogic/orgs","repos_url":"https://api.github.com/users/LunarLogic/repos","events_url":"https://api.github.com/users/LunarLogic/events{/privacy}","received_events_url":"https://api.github.com/users/LunarLogic/received_events","type":"Organization","site_admin":false},"repo":{"id":129111132,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxMTExMzI=","name":"foosball-app","full_name":"LunarLogic/foosball-app","owner":{"login":"LunarLogic","id":32623,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjIz","avatar_url":"https://avatars3.githubusercontent.com/u/32623?v=4","gravatar_id":"","url":"https://api.github.com/users/LunarLogic","html_url":"https://github.com/LunarLogic","followers_url":"https://api.github.com/users/LunarLogic/followers","following_url":"https://api.github.com/users/LunarLogic/following{/other_user}","gists_url":"https://api.github.com/users/LunarLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/LunarLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunarLogic/subscriptions","organizations_url":"https://api.github.com/users/LunarLogic/orgs","repos_url":"https://api.github.com/users/LunarLogic/repos","events_url":"https://api.github.com/users/LunarLogic/events{/privacy}","received_events_url":"https://api.github.com/users/LunarLogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LunarLogic/foosball-app","description":"Slack bot project for foosball","fork":false,"url":"https://api.github.com/repos/LunarLogic/foosball-app","forks_url":"https://api.github.com/repos/LunarLogic/foosball-app/forks","keys_url":"https://api.github.com/repos/LunarLogic/foosball-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LunarLogic/foosball-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LunarLogic/foosball-app/teams","hooks_url":"https://api.github.com/repos/LunarLogic/foosball-app/hooks","issue_events_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues/events{/number}","events_url":"https://api.github.com/repos/LunarLogic/foosball-app/events","assignees_url":"https://api.github.com/repos/LunarLogic/foosball-app/assignees{/user}","branches_url":"https://api.github.com/repos/LunarLogic/foosball-app/branches{/branch}","tags_url":"https://api.github.com/repos/LunarLogic/foosball-app/tags","blobs_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LunarLogic/foosball-app/statuses/{sha}","languages_url":"https://api.github.com/repos/LunarLogic/foosball-app/languages","stargazers_url":"https://api.github.com/repos/LunarLogic/foosball-app/stargazers","contributors_url":"https://api.github.com/repos/LunarLogic/foosball-app/contributors","subscribers_url":"https://api.github.com/repos/LunarLogic/foosball-app/subscribers","subscription_url":"https://api.github.com/repos/LunarLogic/foosball-app/subscription","commits_url":"https://api.github.com/repos/LunarLogic/foosball-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/LunarLogic/foosball-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/LunarLogic/foosball-app/contents/{+path}","compare_url":"https://api.github.com/repos/LunarLogic/foosball-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LunarLogic/foosball-app/merges","archive_url":"https://api.github.com/repos/LunarLogic/foosball-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LunarLogic/foosball-app/downloads","issues_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues{/number}","pulls_url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls{/number}","milestones_url":"https://api.github.com/repos/LunarLogic/foosball-app/milestones{/number}","notifications_url":"https://api.github.com/repos/LunarLogic/foosball-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LunarLogic/foosball-app/labels{/name}","releases_url":"https://api.github.com/repos/LunarLogic/foosball-app/releases{/id}","deployments_url":"https://api.github.com/repos/LunarLogic/foosball-app/deployments","created_at":"2018-04-11T14:59:41Z","updated_at":"2018-06-01T10:55:57Z","pushed_at":"2018-06-01T14:20:58Z","git_url":"git://github.com/LunarLogic/foosball-app.git","ssh_url":"git@github.com:LunarLogic/foosball-app.git","clone_url":"https://github.com/LunarLogic/foosball-app.git","svn_url":"https://github.com/LunarLogic/foosball-app","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"LunarLogic:master","ref":"master","sha":"19a3812ab7e06f193bf9c37cee5565d29fdc2017","user":{"login":"LunarLogic","id":32623,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjIz","avatar_url":"https://avatars3.githubusercontent.com/u/32623?v=4","gravatar_id":"","url":"https://api.github.com/users/LunarLogic","html_url":"https://github.com/LunarLogic","followers_url":"https://api.github.com/users/LunarLogic/followers","following_url":"https://api.github.com/users/LunarLogic/following{/other_user}","gists_url":"https://api.github.com/users/LunarLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/LunarLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunarLogic/subscriptions","organizations_url":"https://api.github.com/users/LunarLogic/orgs","repos_url":"https://api.github.com/users/LunarLogic/repos","events_url":"https://api.github.com/users/LunarLogic/events{/privacy}","received_events_url":"https://api.github.com/users/LunarLogic/received_events","type":"Organization","site_admin":false},"repo":{"id":129111132,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxMTExMzI=","name":"foosball-app","full_name":"LunarLogic/foosball-app","owner":{"login":"LunarLogic","id":32623,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjIz","avatar_url":"https://avatars3.githubusercontent.com/u/32623?v=4","gravatar_id":"","url":"https://api.github.com/users/LunarLogic","html_url":"https://github.com/LunarLogic","followers_url":"https://api.github.com/users/LunarLogic/followers","following_url":"https://api.github.com/users/LunarLogic/following{/other_user}","gists_url":"https://api.github.com/users/LunarLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/LunarLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunarLogic/subscriptions","organizations_url":"https://api.github.com/users/LunarLogic/orgs","repos_url":"https://api.github.com/users/LunarLogic/repos","events_url":"https://api.github.com/users/LunarLogic/events{/privacy}","received_events_url":"https://api.github.com/users/LunarLogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LunarLogic/foosball-app","description":"Slack bot project for foosball","fork":false,"url":"https://api.github.com/repos/LunarLogic/foosball-app","forks_url":"https://api.github.com/repos/LunarLogic/foosball-app/forks","keys_url":"https://api.github.com/repos/LunarLogic/foosball-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LunarLogic/foosball-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LunarLogic/foosball-app/teams","hooks_url":"https://api.github.com/repos/LunarLogic/foosball-app/hooks","issue_events_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues/events{/number}","events_url":"https://api.github.com/repos/LunarLogic/foosball-app/events","assignees_url":"https://api.github.com/repos/LunarLogic/foosball-app/assignees{/user}","branches_url":"https://api.github.com/repos/LunarLogic/foosball-app/branches{/branch}","tags_url":"https://api.github.com/repos/LunarLogic/foosball-app/tags","blobs_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LunarLogic/foosball-app/statuses/{sha}","languages_url":"https://api.github.com/repos/LunarLogic/foosball-app/languages","stargazers_url":"https://api.github.com/repos/LunarLogic/foosball-app/stargazers","contributors_url":"https://api.github.com/repos/LunarLogic/foosball-app/contributors","subscribers_url":"https://api.github.com/repos/LunarLogic/foosball-app/subscribers","subscription_url":"https://api.github.com/repos/LunarLogic/foosball-app/subscription","commits_url":"https://api.github.com/repos/LunarLogic/foosball-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/LunarLogic/foosball-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/LunarLogic/foosball-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/LunarLogic/foosball-app/contents/{+path}","compare_url":"https://api.github.com/repos/LunarLogic/foosball-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LunarLogic/foosball-app/merges","archive_url":"https://api.github.com/repos/LunarLogic/foosball-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LunarLogic/foosball-app/downloads","issues_url":"https://api.github.com/repos/LunarLogic/foosball-app/issues{/number}","pulls_url":"https://api.github.com/repos/LunarLogic/foosball-app/pulls{/number}","milestones_url":"https://api.github.com/repos/LunarLogic/foosball-app/milestones{/number}","notifications_url":"https://api.github.com/repos/LunarLogic/foosball-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LunarLogic/foosball-app/labels{/name}","releases_url":"https://api.github.com/repos/LunarLogic/foosball-app/releases{/id}","deployments_url":"https://api.github.com/repos/LunarLogic/foosball-app/deployments","created_at":"2018-04-11T14:59:41Z","updated_at":"2018-06-01T10:55:57Z","pushed_at":"2018-06-01T14:20:58Z","git_url":"git://github.com/LunarLogic/foosball-app.git","ssh_url":"git@github.com:LunarLogic/foosball-app.git","clone_url":"https://github.com/LunarLogic/foosball-app.git","svn_url":"https://github.com/LunarLogic/foosball-app","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/LunarLogic/foosball-app/pulls/18"},"html":{"href":"https://github.com/LunarLogic/foosball-app/pull/18"},"issue":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/issues/18"},"comments":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/LunarLogic/foosball-app/statuses/724d690c1823c5e4235d95541776dd24952dfe2e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"shadre"}}