{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments/74839528","id":74839528,"diff_hunk":"@@ -0,0 +1,17 @@\n+class User < ApplicationRecord\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i\n+\n+  before_save { email.downcase! }\n+  validates :name,\n+            presence: true,\n+            length:   { maximum: 50 }","path":"app/models/user.rb","position":9,"original_position":7,"commit_id":"d79c70aef6b2598c2004384625f66a47f6ee3aa3","original_commit_id":"2741571e68fe27071688979eb49c343589677f1e","user":{"login":"lsq921224","id":2294091,"avatar_url":"https://avatars.githubusercontent.com/u/2294091?v=3","gravatar_id":"","url":"https://api.github.com/users/lsq921224","html_url":"https://github.com/lsq921224","followers_url":"https://api.github.com/users/lsq921224/followers","following_url":"https://api.github.com/users/lsq921224/following{/other_user}","gists_url":"https://api.github.com/users/lsq921224/gists{/gist_id}","starred_url":"https://api.github.com/users/lsq921224/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsq921224/subscriptions","organizations_url":"https://api.github.com/users/lsq921224/orgs","repos_url":"https://api.github.com/users/lsq921224/repos","events_url":"https://api.github.com/users/lsq921224/events{/privacy}","received_events_url":"https://api.github.com/users/lsq921224/received_events","type":"User","site_admin":false},"body":"I actually have one test for this \r\n```\r\n+  test 'name should not be too long' do\r\n+    @user.name = 'a' * 51\r\n+    assert_predicate @user, :invalid?\r\n+  end\r\n```\r\nshould I add more?","created_at":"2016-08-15T21:33:25Z","updated_at":"2016-08-15T21:33:25Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/32#discussion_r74839528","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments/74839528"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/32#discussion_r74839528"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32","id":81371200,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/32","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/32.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/32.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/32","number":32,"state":"open","locked":false,"title":"Authentication","user":{"login":"lsq921224","id":2294091,"avatar_url":"https://avatars.githubusercontent.com/u/2294091?v=3","gravatar_id":"","url":"https://api.github.com/users/lsq921224","html_url":"https://github.com/lsq921224","followers_url":"https://api.github.com/users/lsq921224/followers","following_url":"https://api.github.com/users/lsq921224/following{/other_user}","gists_url":"https://api.github.com/users/lsq921224/gists{/gist_id}","starred_url":"https://api.github.com/users/lsq921224/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsq921224/subscriptions","organizations_url":"https://api.github.com/users/lsq921224/orgs","repos_url":"https://api.github.com/users/lsq921224/repos","events_url":"https://api.github.com/users/lsq921224/events{/privacy}","received_events_url":"https://api.github.com/users/lsq921224/received_events","type":"User","site_admin":false},"body":"Closes #11 \r\n","created_at":"2016-08-15T20:37:11Z","updated_at":"2016-08-15T21:33:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5046d7a348f060348df1d9d9ac5378351c1d4bf","assignee":{"login":"bboe","id":48100,"avatar_url":"https://avatars.githubusercontent.com/u/48100?v=3","gravatar_id":"","url":"https://api.github.com/users/bboe","html_url":"https://github.com/bboe","followers_url":"https://api.github.com/users/bboe/followers","following_url":"https://api.github.com/users/bboe/following{/other_user}","gists_url":"https://api.github.com/users/bboe/gists{/gist_id}","starred_url":"https://api.github.com/users/bboe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboe/subscriptions","organizations_url":"https://api.github.com/users/bboe/orgs","repos_url":"https://api.github.com/users/bboe/repos","events_url":"https://api.github.com/users/bboe/events{/privacy}","received_events_url":"https://api.github.com/users/bboe/received_events","type":"User","site_admin":false},"assignees":[{"login":"bboe","id":48100,"avatar_url":"https://avatars.githubusercontent.com/u/48100?v=3","gravatar_id":"","url":"https://api.github.com/users/bboe","html_url":"https://github.com/bboe","followers_url":"https://api.github.com/users/bboe/followers","following_url":"https://api.github.com/users/bboe/following{/other_user}","gists_url":"https://api.github.com/users/bboe/gists{/gist_id}","starred_url":"https://api.github.com/users/bboe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboe/subscriptions","organizations_url":"https://api.github.com/users/bboe/orgs","repos_url":"https://api.github.com/users/bboe/repos","events_url":"https://api.github.com/users/bboe/events{/privacy}","received_events_url":"https://api.github.com/users/bboe/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/32/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/d79c70aef6b2598c2004384625f66a47f6ee3aa3","head":{"label":"AppFolioOnboarding:authentication","ref":"authentication","sha":"d79c70aef6b2598c2004384625f66a47f6ee3aa3","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":63720294,"name":"image-sharer-lsq921224","full_name":"AppFolioOnboarding/image-sharer-lsq921224","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224","description":"image-sharer-lsq921224 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/deployments","created_at":"2016-07-19T18:59:02Z","updated_at":"2016-07-19T18:59:35Z","pushed_at":"2016-08-15T20:43:53Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lsq921224.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224","homepage":null,"size":100,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"b1e939de56ca433fd251be8650f8ac72c88cc2c0","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":63720294,"name":"image-sharer-lsq921224","full_name":"AppFolioOnboarding/image-sharer-lsq921224","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224","description":"image-sharer-lsq921224 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/deployments","created_at":"2016-07-19T18:59:02Z","updated_at":"2016-07-19T18:59:35Z","pushed_at":"2016-08-15T20:43:53Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lsq921224.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224","homepage":null,"size":100,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/32"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/32"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/d79c70aef6b2598c2004384625f66a47f6ee3aa3"}}}}
{"actor":{"display_login":"lsq921224"}}