{"action":"created","comment":{"url":"https://api.github.com/repos/coopdevs/katuma/pulls/comments/42950946","id":42950946,"diff_hunk":"@@ -5,8 +5,13 @@ class User < ActiveRecord::Base\n \n     has_secure_password\n \n+    validates :first_name, :last_name, presence: true","path":"engines/account/app/models/account/user.rb","position":4,"original_position":4,"commit_id":"8ee3f73af1129473d1e2a0aec282a9ea6d4632aa","original_commit_id":"8ee3f73af1129473d1e2a0aec282a9ea6d4632aa","user":{"login":"andresgutgon","id":49499,"avatar_url":"https://avatars.githubusercontent.com/u/49499?v=3","gravatar_id":"","url":"https://api.github.com/users/andresgutgon","html_url":"https://github.com/andresgutgon","followers_url":"https://api.github.com/users/andresgutgon/followers","following_url":"https://api.github.com/users/andresgutgon/following{/other_user}","gists_url":"https://api.github.com/users/andresgutgon/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgutgon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgutgon/subscriptions","organizations_url":"https://api.github.com/users/andresgutgon/orgs","repos_url":"https://api.github.com/users/andresgutgon/repos","events_url":"https://api.github.com/users/andresgutgon/events{/privacy}","received_events_url":"https://api.github.com/users/andresgutgon/received_events","type":"User","site_admin":false},"body":"Why not?","created_at":"2015-10-25T21:52:29Z","updated_at":"2015-10-25T21:52:29Z","html_url":"https://github.com/coopdevs/katuma/pull/56#discussion_r42950946","pull_request_url":"https://api.github.com/repos/coopdevs/katuma/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/coopdevs/katuma/pulls/comments/42950946"},"html":{"href":"https://github.com/coopdevs/katuma/pull/56#discussion_r42950946"},"pull_request":{"href":"https://api.github.com/repos/coopdevs/katuma/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/coopdevs/katuma/pulls/56","id":48528425,"html_url":"https://github.com/coopdevs/katuma/pull/56","diff_url":"https://github.com/coopdevs/katuma/pull/56.diff","patch_url":"https://github.com/coopdevs/katuma/pull/56.patch","issue_url":"https://api.github.com/repos/coopdevs/katuma/issues/56","number":56,"state":"open","locked":false,"title":"Signup with side effects","user":{"login":"enricostano","id":748971,"avatar_url":"https://avatars.githubusercontent.com/u/748971?v=3","gravatar_id":"","url":"https://api.github.com/users/enricostano","html_url":"https://github.com/enricostano","followers_url":"https://api.github.com/users/enricostano/followers","following_url":"https://api.github.com/users/enricostano/following{/other_user}","gists_url":"https://api.github.com/users/enricostano/gists{/gist_id}","starred_url":"https://api.github.com/users/enricostano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricostano/subscriptions","organizations_url":"https://api.github.com/users/enricostano/orgs","repos_url":"https://api.github.com/users/enricostano/repos","events_url":"https://api.github.com/users/enricostano/events{/privacy}","received_events_url":"https://api.github.com/users/enricostano/received_events","type":"User","site_admin":false},"body":"### Sign up\r\n#### Create\r\nRequest:\r\n```\r\nPOST api/v1/signups\r\n\r\n{\r\n  \"email\": \"user@email.com\"\r\n}\r\n```\r\nResponse:\r\n```\r\n201 CREATED\r\n\r\n{}\r\n```\r\n#### Show\r\nRequest:\r\n```\r\nGET api/v1/signups/:token\r\n```\r\nResponse:\r\n```\r\n200 OK\r\n\r\n{\r\n  \"email\": \"user@email.com\"\r\n}\r\n```\r\n#### Complete\r\nRequest:\r\n```\r\nPOST api/v1/signups/complete/:token\r\n\r\n{\r\n  \"username\": \"username\",\r\n  \"password\": \"sosecret\",\r\n  \"password_confirmation\": \"sosecret\",\r\n  \"first_name\": \"User\",\r\n  \"last_name\": \"Name\"\r\n}\r\n```\r\nResponse:\r\n```\r\n200 OK\r\n\r\n{\r\n  \"id\": 1,\r\n  \"email\": \"user@email.com\",\r\n  \"username\": \"username\",\r\n  \"first_name\": \"User\",\r\n  \"last_name\": \"Name\"\r\n  \"created_at\": \"2014-09-06T11:48:39.072Z\",\r\n  \"updated_at\": \"2014-09-06T11:48:39.072Z\"\r\n}\r\n```","created_at":"2015-10-22T23:59:09Z","updated_at":"2015-10-25T21:52:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65f2b346cc0750d055a57c22da98de938d1b2ac8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coopdevs/katuma/pulls/56/commits","review_comments_url":"https://api.github.com/repos/coopdevs/katuma/pulls/56/comments","review_comment_url":"https://api.github.com/repos/coopdevs/katuma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coopdevs/katuma/issues/56/comments","statuses_url":"https://api.github.com/repos/coopdevs/katuma/statuses/8ee3f73af1129473d1e2a0aec282a9ea6d4632aa","head":{"label":"coopdevs:feature/new-complete-signup","ref":"feature/new-complete-signup","sha":"8ee3f73af1129473d1e2a0aec282a9ea6d4632aa","user":{"login":"coopdevs","id":4038308,"avatar_url":"https://avatars.githubusercontent.com/u/4038308?v=3","gravatar_id":"","url":"https://api.github.com/users/coopdevs","html_url":"https://github.com/coopdevs","followers_url":"https://api.github.com/users/coopdevs/followers","following_url":"https://api.github.com/users/coopdevs/following{/other_user}","gists_url":"https://api.github.com/users/coopdevs/gists{/gist_id}","starred_url":"https://api.github.com/users/coopdevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopdevs/subscriptions","organizations_url":"https://api.github.com/users/coopdevs/orgs","repos_url":"https://api.github.com/users/coopdevs/repos","events_url":"https://api.github.com/users/coopdevs/events{/privacy}","received_events_url":"https://api.github.com/users/coopdevs/received_events","type":"Organization","site_admin":false},"repo":{"id":9176730,"name":"katuma","full_name":"coopdevs/katuma","owner":{"login":"coopdevs","id":4038308,"avatar_url":"https://avatars.githubusercontent.com/u/4038308?v=3","gravatar_id":"","url":"https://api.github.com/users/coopdevs","html_url":"https://github.com/coopdevs","followers_url":"https://api.github.com/users/coopdevs/followers","following_url":"https://api.github.com/users/coopdevs/following{/other_user}","gists_url":"https://api.github.com/users/coopdevs/gists{/gist_id}","starred_url":"https://api.github.com/users/coopdevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopdevs/subscriptions","organizations_url":"https://api.github.com/users/coopdevs/orgs","repos_url":"https://api.github.com/users/coopdevs/repos","events_url":"https://api.github.com/users/coopdevs/events{/privacy}","received_events_url":"https://api.github.com/users/coopdevs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coopdevs/katuma","description":"Katuma backend API","fork":false,"url":"https://api.github.com/repos/coopdevs/katuma","forks_url":"https://api.github.com/repos/coopdevs/katuma/forks","keys_url":"https://api.github.com/repos/coopdevs/katuma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coopdevs/katuma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coopdevs/katuma/teams","hooks_url":"https://api.github.com/repos/coopdevs/katuma/hooks","issue_events_url":"https://api.github.com/repos/coopdevs/katuma/issues/events{/number}","events_url":"https://api.github.com/repos/coopdevs/katuma/events","assignees_url":"https://api.github.com/repos/coopdevs/katuma/assignees{/user}","branches_url":"https://api.github.com/repos/coopdevs/katuma/branches{/branch}","tags_url":"https://api.github.com/repos/coopdevs/katuma/tags","blobs_url":"https://api.github.com/repos/coopdevs/katuma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coopdevs/katuma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coopdevs/katuma/git/refs{/sha}","trees_url":"https://api.github.com/repos/coopdevs/katuma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coopdevs/katuma/statuses/{sha}","languages_url":"https://api.github.com/repos/coopdevs/katuma/languages","stargazers_url":"https://api.github.com/repos/coopdevs/katuma/stargazers","contributors_url":"https://api.github.com/repos/coopdevs/katuma/contributors","subscribers_url":"https://api.github.com/repos/coopdevs/katuma/subscribers","subscription_url":"https://api.github.com/repos/coopdevs/katuma/subscription","commits_url":"https://api.github.com/repos/coopdevs/katuma/commits{/sha}","git_commits_url":"https://api.github.com/repos/coopdevs/katuma/git/commits{/sha}","comments_url":"https://api.github.com/repos/coopdevs/katuma/comments{/number}","issue_comment_url":"https://api.github.com/repos/coopdevs/katuma/issues/comments{/number}","contents_url":"https://api.github.com/repos/coopdevs/katuma/contents/{+path}","compare_url":"https://api.github.com/repos/coopdevs/katuma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coopdevs/katuma/merges","archive_url":"https://api.github.com/repos/coopdevs/katuma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coopdevs/katuma/downloads","issues_url":"https://api.github.com/repos/coopdevs/katuma/issues{/number}","pulls_url":"https://api.github.com/repos/coopdevs/katuma/pulls{/number}","milestones_url":"https://api.github.com/repos/coopdevs/katuma/milestones{/number}","notifications_url":"https://api.github.com/repos/coopdevs/katuma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coopdevs/katuma/labels{/name}","releases_url":"https://api.github.com/repos/coopdevs/katuma/releases{/id}","created_at":"2013-04-02T18:20:14Z","updated_at":"2015-10-24T13:10:52Z","pushed_at":"2015-10-25T19:21:36Z","git_url":"git://github.com/coopdevs/katuma.git","ssh_url":"git@github.com:coopdevs/katuma.git","clone_url":"https://github.com/coopdevs/katuma.git","svn_url":"https://github.com/coopdevs/katuma","homepage":"http://www.katuma.org","size":2734,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":11,"default_branch":"develop"}},"base":{"label":"coopdevs:develop","ref":"develop","sha":"6eb82fd674fbde43f62d823b73dacaee7c1126bd","user":{"login":"coopdevs","id":4038308,"avatar_url":"https://avatars.githubusercontent.com/u/4038308?v=3","gravatar_id":"","url":"https://api.github.com/users/coopdevs","html_url":"https://github.com/coopdevs","followers_url":"https://api.github.com/users/coopdevs/followers","following_url":"https://api.github.com/users/coopdevs/following{/other_user}","gists_url":"https://api.github.com/users/coopdevs/gists{/gist_id}","starred_url":"https://api.github.com/users/coopdevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopdevs/subscriptions","organizations_url":"https://api.github.com/users/coopdevs/orgs","repos_url":"https://api.github.com/users/coopdevs/repos","events_url":"https://api.github.com/users/coopdevs/events{/privacy}","received_events_url":"https://api.github.com/users/coopdevs/received_events","type":"Organization","site_admin":false},"repo":{"id":9176730,"name":"katuma","full_name":"coopdevs/katuma","owner":{"login":"coopdevs","id":4038308,"avatar_url":"https://avatars.githubusercontent.com/u/4038308?v=3","gravatar_id":"","url":"https://api.github.com/users/coopdevs","html_url":"https://github.com/coopdevs","followers_url":"https://api.github.com/users/coopdevs/followers","following_url":"https://api.github.com/users/coopdevs/following{/other_user}","gists_url":"https://api.github.com/users/coopdevs/gists{/gist_id}","starred_url":"https://api.github.com/users/coopdevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopdevs/subscriptions","organizations_url":"https://api.github.com/users/coopdevs/orgs","repos_url":"https://api.github.com/users/coopdevs/repos","events_url":"https://api.github.com/users/coopdevs/events{/privacy}","received_events_url":"https://api.github.com/users/coopdevs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coopdevs/katuma","description":"Katuma backend API","fork":false,"url":"https://api.github.com/repos/coopdevs/katuma","forks_url":"https://api.github.com/repos/coopdevs/katuma/forks","keys_url":"https://api.github.com/repos/coopdevs/katuma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coopdevs/katuma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coopdevs/katuma/teams","hooks_url":"https://api.github.com/repos/coopdevs/katuma/hooks","issue_events_url":"https://api.github.com/repos/coopdevs/katuma/issues/events{/number}","events_url":"https://api.github.com/repos/coopdevs/katuma/events","assignees_url":"https://api.github.com/repos/coopdevs/katuma/assignees{/user}","branches_url":"https://api.github.com/repos/coopdevs/katuma/branches{/branch}","tags_url":"https://api.github.com/repos/coopdevs/katuma/tags","blobs_url":"https://api.github.com/repos/coopdevs/katuma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coopdevs/katuma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coopdevs/katuma/git/refs{/sha}","trees_url":"https://api.github.com/repos/coopdevs/katuma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coopdevs/katuma/statuses/{sha}","languages_url":"https://api.github.com/repos/coopdevs/katuma/languages","stargazers_url":"https://api.github.com/repos/coopdevs/katuma/stargazers","contributors_url":"https://api.github.com/repos/coopdevs/katuma/contributors","subscribers_url":"https://api.github.com/repos/coopdevs/katuma/subscribers","subscription_url":"https://api.github.com/repos/coopdevs/katuma/subscription","commits_url":"https://api.github.com/repos/coopdevs/katuma/commits{/sha}","git_commits_url":"https://api.github.com/repos/coopdevs/katuma/git/commits{/sha}","comments_url":"https://api.github.com/repos/coopdevs/katuma/comments{/number}","issue_comment_url":"https://api.github.com/repos/coopdevs/katuma/issues/comments{/number}","contents_url":"https://api.github.com/repos/coopdevs/katuma/contents/{+path}","compare_url":"https://api.github.com/repos/coopdevs/katuma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coopdevs/katuma/merges","archive_url":"https://api.github.com/repos/coopdevs/katuma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coopdevs/katuma/downloads","issues_url":"https://api.github.com/repos/coopdevs/katuma/issues{/number}","pulls_url":"https://api.github.com/repos/coopdevs/katuma/pulls{/number}","milestones_url":"https://api.github.com/repos/coopdevs/katuma/milestones{/number}","notifications_url":"https://api.github.com/repos/coopdevs/katuma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coopdevs/katuma/labels{/name}","releases_url":"https://api.github.com/repos/coopdevs/katuma/releases{/id}","created_at":"2013-04-02T18:20:14Z","updated_at":"2015-10-24T13:10:52Z","pushed_at":"2015-10-25T19:21:36Z","git_url":"git://github.com/coopdevs/katuma.git","ssh_url":"git@github.com:coopdevs/katuma.git","clone_url":"https://github.com/coopdevs/katuma.git","svn_url":"https://github.com/coopdevs/katuma","homepage":"http://www.katuma.org","size":2734,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":11,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/coopdevs/katuma/pulls/56"},"html":{"href":"https://github.com/coopdevs/katuma/pull/56"},"issue":{"href":"https://api.github.com/repos/coopdevs/katuma/issues/56"},"comments":{"href":"https://api.github.com/repos/coopdevs/katuma/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/coopdevs/katuma/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/coopdevs/katuma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coopdevs/katuma/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/coopdevs/katuma/statuses/8ee3f73af1129473d1e2a0aec282a9ea6d4632aa"}}}}