{"action":"created","comment":{"url":"https://api.github.com/repos/elioncho/battleshiprails/pulls/comments/96948891","pull_request_review_id":17548247,"id":96948891,"diff_hunk":"@@ -0,0 +1,15 @@\n+class GuestsController < ApplicationController\n+  def create\n+    user = User.new(guest: true)","path":"app/controllers/guests_controller.rb","position":3,"original_position":3,"commit_id":"80da117588272e5d3167ff218b1b9529df3dc305","original_commit_id":"80da117588272e5d3167ff218b1b9529df3dc305","user":{"login":"EdgarOrtegaRamirez","id":2790520,"avatar_url":"https://avatars.githubusercontent.com/u/2790520?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarOrtegaRamirez","html_url":"https://github.com/EdgarOrtegaRamirez","followers_url":"https://api.github.com/users/EdgarOrtegaRamirez/followers","following_url":"https://api.github.com/users/EdgarOrtegaRamirez/following{/other_user}","gists_url":"https://api.github.com/users/EdgarOrtegaRamirez/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarOrtegaRamirez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarOrtegaRamirez/subscriptions","organizations_url":"https://api.github.com/users/EdgarOrtegaRamirez/orgs","repos_url":"https://api.github.com/users/EdgarOrtegaRamirez/repos","events_url":"https://api.github.com/users/EdgarOrtegaRamirez/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarOrtegaRamirez/received_events","type":"User","site_admin":false},"body":"```ruby\r\nUser.new(guest: true, email: \"guest_#{Time.now.to_i}#{rand(99)}@example.com\")\r\n```\r\n\r\n```ruby\r\nclass GuestUser\r\n  def self.new\r\n    User.new(guest: true, email: random_email)\r\n  end\r\n  \r\n  def self.random_email\r\n    \"guest_#{Time.now.to_i}#{rand(99)}@example.com\"\r\n  end\r\nend\r\n\r\nGuestUser.new\r\n```","created_at":"2017-01-19T20:20:32Z","updated_at":"2017-01-19T20:24:15Z","html_url":"https://github.com/elioncho/battleshiprails/pull/3#discussion_r96948891","pull_request_url":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/elioncho/battleshiprails/pulls/comments/96948891"},"html":{"href":"https://github.com/elioncho/battleshiprails/pull/3#discussion_r96948891"},"pull_request":{"href":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3","id":102328356,"html_url":"https://github.com/elioncho/battleshiprails/pull/3","diff_url":"https://github.com/elioncho/battleshiprails/pull/3.diff","patch_url":"https://github.com/elioncho/battleshiprails/pull/3.patch","issue_url":"https://api.github.com/repos/elioncho/battleshiprails/issues/3","number":3,"state":"open","locked":false,"title":"Added guest user functionality","user":{"login":"elioncho","id":29183,"avatar_url":"https://avatars.githubusercontent.com/u/29183?v=3","gravatar_id":"","url":"https://api.github.com/users/elioncho","html_url":"https://github.com/elioncho","followers_url":"https://api.github.com/users/elioncho/followers","following_url":"https://api.github.com/users/elioncho/following{/other_user}","gists_url":"https://api.github.com/users/elioncho/gists{/gist_id}","starred_url":"https://api.github.com/users/elioncho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioncho/subscriptions","organizations_url":"https://api.github.com/users/elioncho/orgs","repos_url":"https://api.github.com/users/elioncho/repos","events_url":"https://api.github.com/users/elioncho/events{/privacy}","received_events_url":"https://api.github.com/users/elioncho/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-19T19:05:24Z","updated_at":"2017-01-19T20:24:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c72010fe5dce6866edd25cbd5263bb5336976c57","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3/commits","review_comments_url":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3/comments","review_comment_url":"https://api.github.com/repos/elioncho/battleshiprails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elioncho/battleshiprails/issues/3/comments","statuses_url":"https://api.github.com/repos/elioncho/battleshiprails/statuses/80da117588272e5d3167ff218b1b9529df3dc305","head":{"label":"elioncho:guest","ref":"guest","sha":"80da117588272e5d3167ff218b1b9529df3dc305","user":{"login":"elioncho","id":29183,"avatar_url":"https://avatars.githubusercontent.com/u/29183?v=3","gravatar_id":"","url":"https://api.github.com/users/elioncho","html_url":"https://github.com/elioncho","followers_url":"https://api.github.com/users/elioncho/followers","following_url":"https://api.github.com/users/elioncho/following{/other_user}","gists_url":"https://api.github.com/users/elioncho/gists{/gist_id}","starred_url":"https://api.github.com/users/elioncho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioncho/subscriptions","organizations_url":"https://api.github.com/users/elioncho/orgs","repos_url":"https://api.github.com/users/elioncho/repos","events_url":"https://api.github.com/users/elioncho/events{/privacy}","received_events_url":"https://api.github.com/users/elioncho/received_events","type":"User","site_admin":false},"repo":{"id":79352184,"name":"battleshiprails","full_name":"elioncho/battleshiprails","owner":{"login":"elioncho","id":29183,"avatar_url":"https://avatars.githubusercontent.com/u/29183?v=3","gravatar_id":"","url":"https://api.github.com/users/elioncho","html_url":"https://github.com/elioncho","followers_url":"https://api.github.com/users/elioncho/followers","following_url":"https://api.github.com/users/elioncho/following{/other_user}","gists_url":"https://api.github.com/users/elioncho/gists{/gist_id}","starred_url":"https://api.github.com/users/elioncho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioncho/subscriptions","organizations_url":"https://api.github.com/users/elioncho/orgs","repos_url":"https://api.github.com/users/elioncho/repos","events_url":"https://api.github.com/users/elioncho/events{/privacy}","received_events_url":"https://api.github.com/users/elioncho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elioncho/battleshiprails","description":null,"fork":false,"url":"https://api.github.com/repos/elioncho/battleshiprails","forks_url":"https://api.github.com/repos/elioncho/battleshiprails/forks","keys_url":"https://api.github.com/repos/elioncho/battleshiprails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elioncho/battleshiprails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elioncho/battleshiprails/teams","hooks_url":"https://api.github.com/repos/elioncho/battleshiprails/hooks","issue_events_url":"https://api.github.com/repos/elioncho/battleshiprails/issues/events{/number}","events_url":"https://api.github.com/repos/elioncho/battleshiprails/events","assignees_url":"https://api.github.com/repos/elioncho/battleshiprails/assignees{/user}","branches_url":"https://api.github.com/repos/elioncho/battleshiprails/branches{/branch}","tags_url":"https://api.github.com/repos/elioncho/battleshiprails/tags","blobs_url":"https://api.github.com/repos/elioncho/battleshiprails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elioncho/battleshiprails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elioncho/battleshiprails/git/refs{/sha}","trees_url":"https://api.github.com/repos/elioncho/battleshiprails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elioncho/battleshiprails/statuses/{sha}","languages_url":"https://api.github.com/repos/elioncho/battleshiprails/languages","stargazers_url":"https://api.github.com/repos/elioncho/battleshiprails/stargazers","contributors_url":"https://api.github.com/repos/elioncho/battleshiprails/contributors","subscribers_url":"https://api.github.com/repos/elioncho/battleshiprails/subscribers","subscription_url":"https://api.github.com/repos/elioncho/battleshiprails/subscription","commits_url":"https://api.github.com/repos/elioncho/battleshiprails/commits{/sha}","git_commits_url":"https://api.github.com/repos/elioncho/battleshiprails/git/commits{/sha}","comments_url":"https://api.github.com/repos/elioncho/battleshiprails/comments{/number}","issue_comment_url":"https://api.github.com/repos/elioncho/battleshiprails/issues/comments{/number}","contents_url":"https://api.github.com/repos/elioncho/battleshiprails/contents/{+path}","compare_url":"https://api.github.com/repos/elioncho/battleshiprails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elioncho/battleshiprails/merges","archive_url":"https://api.github.com/repos/elioncho/battleshiprails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elioncho/battleshiprails/downloads","issues_url":"https://api.github.com/repos/elioncho/battleshiprails/issues{/number}","pulls_url":"https://api.github.com/repos/elioncho/battleshiprails/pulls{/number}","milestones_url":"https://api.github.com/repos/elioncho/battleshiprails/milestones{/number}","notifications_url":"https://api.github.com/repos/elioncho/battleshiprails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elioncho/battleshiprails/labels{/name}","releases_url":"https://api.github.com/repos/elioncho/battleshiprails/releases{/id}","deployments_url":"https://api.github.com/repos/elioncho/battleshiprails/deployments","created_at":"2017-01-18T15:14:42Z","updated_at":"2017-01-18T15:20:52Z","pushed_at":"2017-01-19T20:07:45Z","git_url":"git://github.com/elioncho/battleshiprails.git","ssh_url":"git@github.com:elioncho/battleshiprails.git","clone_url":"https://github.com/elioncho/battleshiprails.git","svn_url":"https://github.com/elioncho/battleshiprails","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"elioncho:master","ref":"master","sha":"c0323afb2094879508fc9c9fdac3449f5dc2f088","user":{"login":"elioncho","id":29183,"avatar_url":"https://avatars.githubusercontent.com/u/29183?v=3","gravatar_id":"","url":"https://api.github.com/users/elioncho","html_url":"https://github.com/elioncho","followers_url":"https://api.github.com/users/elioncho/followers","following_url":"https://api.github.com/users/elioncho/following{/other_user}","gists_url":"https://api.github.com/users/elioncho/gists{/gist_id}","starred_url":"https://api.github.com/users/elioncho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioncho/subscriptions","organizations_url":"https://api.github.com/users/elioncho/orgs","repos_url":"https://api.github.com/users/elioncho/repos","events_url":"https://api.github.com/users/elioncho/events{/privacy}","received_events_url":"https://api.github.com/users/elioncho/received_events","type":"User","site_admin":false},"repo":{"id":79352184,"name":"battleshiprails","full_name":"elioncho/battleshiprails","owner":{"login":"elioncho","id":29183,"avatar_url":"https://avatars.githubusercontent.com/u/29183?v=3","gravatar_id":"","url":"https://api.github.com/users/elioncho","html_url":"https://github.com/elioncho","followers_url":"https://api.github.com/users/elioncho/followers","following_url":"https://api.github.com/users/elioncho/following{/other_user}","gists_url":"https://api.github.com/users/elioncho/gists{/gist_id}","starred_url":"https://api.github.com/users/elioncho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioncho/subscriptions","organizations_url":"https://api.github.com/users/elioncho/orgs","repos_url":"https://api.github.com/users/elioncho/repos","events_url":"https://api.github.com/users/elioncho/events{/privacy}","received_events_url":"https://api.github.com/users/elioncho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elioncho/battleshiprails","description":null,"fork":false,"url":"https://api.github.com/repos/elioncho/battleshiprails","forks_url":"https://api.github.com/repos/elioncho/battleshiprails/forks","keys_url":"https://api.github.com/repos/elioncho/battleshiprails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elioncho/battleshiprails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elioncho/battleshiprails/teams","hooks_url":"https://api.github.com/repos/elioncho/battleshiprails/hooks","issue_events_url":"https://api.github.com/repos/elioncho/battleshiprails/issues/events{/number}","events_url":"https://api.github.com/repos/elioncho/battleshiprails/events","assignees_url":"https://api.github.com/repos/elioncho/battleshiprails/assignees{/user}","branches_url":"https://api.github.com/repos/elioncho/battleshiprails/branches{/branch}","tags_url":"https://api.github.com/repos/elioncho/battleshiprails/tags","blobs_url":"https://api.github.com/repos/elioncho/battleshiprails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elioncho/battleshiprails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elioncho/battleshiprails/git/refs{/sha}","trees_url":"https://api.github.com/repos/elioncho/battleshiprails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elioncho/battleshiprails/statuses/{sha}","languages_url":"https://api.github.com/repos/elioncho/battleshiprails/languages","stargazers_url":"https://api.github.com/repos/elioncho/battleshiprails/stargazers","contributors_url":"https://api.github.com/repos/elioncho/battleshiprails/contributors","subscribers_url":"https://api.github.com/repos/elioncho/battleshiprails/subscribers","subscription_url":"https://api.github.com/repos/elioncho/battleshiprails/subscription","commits_url":"https://api.github.com/repos/elioncho/battleshiprails/commits{/sha}","git_commits_url":"https://api.github.com/repos/elioncho/battleshiprails/git/commits{/sha}","comments_url":"https://api.github.com/repos/elioncho/battleshiprails/comments{/number}","issue_comment_url":"https://api.github.com/repos/elioncho/battleshiprails/issues/comments{/number}","contents_url":"https://api.github.com/repos/elioncho/battleshiprails/contents/{+path}","compare_url":"https://api.github.com/repos/elioncho/battleshiprails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elioncho/battleshiprails/merges","archive_url":"https://api.github.com/repos/elioncho/battleshiprails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elioncho/battleshiprails/downloads","issues_url":"https://api.github.com/repos/elioncho/battleshiprails/issues{/number}","pulls_url":"https://api.github.com/repos/elioncho/battleshiprails/pulls{/number}","milestones_url":"https://api.github.com/repos/elioncho/battleshiprails/milestones{/number}","notifications_url":"https://api.github.com/repos/elioncho/battleshiprails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elioncho/battleshiprails/labels{/name}","releases_url":"https://api.github.com/repos/elioncho/battleshiprails/releases{/id}","deployments_url":"https://api.github.com/repos/elioncho/battleshiprails/deployments","created_at":"2017-01-18T15:14:42Z","updated_at":"2017-01-18T15:20:52Z","pushed_at":"2017-01-19T20:07:45Z","git_url":"git://github.com/elioncho/battleshiprails.git","ssh_url":"git@github.com:elioncho/battleshiprails.git","clone_url":"https://github.com/elioncho/battleshiprails.git","svn_url":"https://github.com/elioncho/battleshiprails","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3"},"html":{"href":"https://github.com/elioncho/battleshiprails/pull/3"},"issue":{"href":"https://api.github.com/repos/elioncho/battleshiprails/issues/3"},"comments":{"href":"https://api.github.com/repos/elioncho/battleshiprails/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/elioncho/battleshiprails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elioncho/battleshiprails/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/elioncho/battleshiprails/statuses/80da117588272e5d3167ff218b1b9529df3dc305"}}}}
{"actor":{"display_login":"EdgarOrtegaRamirez"}}