{"action":"created","comment":{"url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments/240864779","pull_request_review_id":183992229,"id":240864779,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDg2NDc3OQ==","diff_hunk":"@@ -0,0 +1,9 @@\n+class User < ApplicationRecord\n+  # Include default devise modules. Others available are:\n+  # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable\n+  devise :database_authenticatable, :registerable,\n+         :recoverable, :rememberable, :validatable\n+  has_many :items, dependent: :destroy\n+  has_many :user_profiles, dependent: :destroy\n+  validates :nickname, presence: true, length: { maximum: 20 }","path":"app/models/user.rb","position":8,"original_position":8,"commit_id":"b9f16677c388851f9dcecc42d523d0631cdf0fcd","original_commit_id":"b9f16677c388851f9dcecc42d523d0631cdf0fcd","user":{"login":"kohei-isoda","id":33193077,"node_id":"MDQ6VXNlcjMzMTkzMDc3","avatar_url":"https://avatars3.githubusercontent.com/u/33193077?v=4","gravatar_id":"","url":"https://api.github.com/users/kohei-isoda","html_url":"https://github.com/kohei-isoda","followers_url":"https://api.github.com/users/kohei-isoda/followers","following_url":"https://api.github.com/users/kohei-isoda/following{/other_user}","gists_url":"https://api.github.com/users/kohei-isoda/gists{/gist_id}","starred_url":"https://api.github.com/users/kohei-isoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohei-isoda/subscriptions","organizations_url":"https://api.github.com/users/kohei-isoda/orgs","repos_url":"https://api.github.com/users/kohei-isoda/repos","events_url":"https://api.github.com/users/kohei-isoda/events{/privacy}","received_events_url":"https://api.github.com/users/kohei-isoda/received_events","type":"User","site_admin":false},"body":"nicknameにはnull: falseオプション付いているのでpresence: true不要ですね！","created_at":"2018-12-12T02:36:31Z","updated_at":"2018-12-12T02:38:45Z","html_url":"https://github.com/40213151/freemarket_daimaru/pull/5#discussion_r240864779","pull_request_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments/240864779"},"html":{"href":"https://github.com/40213151/freemarket_daimaru/pull/5#discussion_r240864779"},"pull_request":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5","id":237557369,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NTU3MzY5","html_url":"https://github.com/40213151/freemarket_daimaru/pull/5","diff_url":"https://github.com/40213151/freemarket_daimaru/pull/5.diff","patch_url":"https://github.com/40213151/freemarket_daimaru/pull/5.patch","issue_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/5","number":5,"state":"open","locked":false,"title":"ユーザー登録.ログイン機能.ログアウト機能実装","user":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"body":"# キャプチャ画面\r\n会員登録\r\nhttps://gyazo.com/fb3f70e04ee38a4f8a5cb6fe6c4986e1\r\nログイン\r\nhttps://gyazo.com/bcff4a91acf49efe319ea0ffb012a936\r\n# What\r\n・会員情報入力ページのViewの実装\r\n・Deviseを用いた会員登録, ログイン, ログアウト機能の実装とUserモデルの作成\r\n・機能追加に伴うログイン, 会員登録ページのフォーム部分の編集\r\n・rspecを用いたユーザー登録時のテスト実装\r\n# Why\r\nサービスの必須機能であるため実装した\r\nuserのnicknameカラムには,20文字以下で登録する様バリデーションを実装した\r\n\r\nまた、期待通りに動作するか確認するため、ユーザー登録時のバリデーションに関するテストコードを記述した\r\nテストコードの内容は以下の通り\r\n・ニックネームの記入欄が空だと登録できない\r\n・メールアドレスの記入欄がだと登録できない\r\n・パスワードの値だと登録できない\r\n・パスワード確認欄の値だと登録できない\r\n・ニックネームが21文字以上だと登録できない\r\n・メールアドレスの値が他レコードのものと重複してると登録できない\r\n・ニックネームの字数が21文字以上だと登録できない\r\n・パスワードの字数が５文字以下だと登録できない","created_at":"2018-12-11T05:44:54Z","updated_at":"2018-12-12T02:38:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15ff682a3c872ed9ef3028faeae0e2457ea3b167","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5/commits","review_comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5/comments","review_comment_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/5/comments","statuses_url":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/b9f16677c388851f9dcecc42d523d0631cdf0fcd","head":{"label":"40213151:add_devise","ref":"add_devise","sha":"b9f16677c388851f9dcecc42d523d0631cdf0fcd","user":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"repo":{"id":156533815,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MzM4MTU=","name":"freemarket_daimaru","full_name":"40213151/freemarket_daimaru","private":false,"owner":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"html_url":"https://github.com/40213151/freemarket_daimaru","description":null,"fork":false,"url":"https://api.github.com/repos/40213151/freemarket_daimaru","forks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/forks","keys_url":"https://api.github.com/repos/40213151/freemarket_daimaru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/40213151/freemarket_daimaru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/40213151/freemarket_daimaru/teams","hooks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/hooks","issue_events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/events{/number}","events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/events","assignees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/assignees{/user}","branches_url":"https://api.github.com/repos/40213151/freemarket_daimaru/branches{/branch}","tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/tags","blobs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/refs{/sha}","trees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/{sha}","languages_url":"https://api.github.com/repos/40213151/freemarket_daimaru/languages","stargazers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/stargazers","contributors_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contributors","subscribers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscribers","subscription_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscription","commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/commits{/sha}","git_commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/commits{/sha}","comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/comments{/number}","issue_comment_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/comments{/number}","contents_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contents/{+path}","compare_url":"https://api.github.com/repos/40213151/freemarket_daimaru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/40213151/freemarket_daimaru/merges","archive_url":"https://api.github.com/repos/40213151/freemarket_daimaru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/40213151/freemarket_daimaru/downloads","issues_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues{/number}","pulls_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls{/number}","milestones_url":"https://api.github.com/repos/40213151/freemarket_daimaru/milestones{/number}","notifications_url":"https://api.github.com/repos/40213151/freemarket_daimaru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/40213151/freemarket_daimaru/labels{/name}","releases_url":"https://api.github.com/repos/40213151/freemarket_daimaru/releases{/id}","deployments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/deployments","created_at":"2018-11-07T11:05:05Z","updated_at":"2018-12-06T06:30:04Z","pushed_at":"2018-12-12T02:19:59Z","git_url":"git://github.com/40213151/freemarket_daimaru.git","ssh_url":"git@github.com:40213151/freemarket_daimaru.git","clone_url":"https://github.com/40213151/freemarket_daimaru.git","svn_url":"https://github.com/40213151/freemarket_daimaru","homepage":null,"size":490,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"40213151:master","ref":"master","sha":"2e8fb02fbc5e3fd54cd88302f394a311287f1d9e","user":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"repo":{"id":156533815,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MzM4MTU=","name":"freemarket_daimaru","full_name":"40213151/freemarket_daimaru","private":false,"owner":{"login":"40213151","id":29218460,"node_id":"MDQ6VXNlcjI5MjE4NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/29218460?v=4","gravatar_id":"","url":"https://api.github.com/users/40213151","html_url":"https://github.com/40213151","followers_url":"https://api.github.com/users/40213151/followers","following_url":"https://api.github.com/users/40213151/following{/other_user}","gists_url":"https://api.github.com/users/40213151/gists{/gist_id}","starred_url":"https://api.github.com/users/40213151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/40213151/subscriptions","organizations_url":"https://api.github.com/users/40213151/orgs","repos_url":"https://api.github.com/users/40213151/repos","events_url":"https://api.github.com/users/40213151/events{/privacy}","received_events_url":"https://api.github.com/users/40213151/received_events","type":"User","site_admin":false},"html_url":"https://github.com/40213151/freemarket_daimaru","description":null,"fork":false,"url":"https://api.github.com/repos/40213151/freemarket_daimaru","forks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/forks","keys_url":"https://api.github.com/repos/40213151/freemarket_daimaru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/40213151/freemarket_daimaru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/40213151/freemarket_daimaru/teams","hooks_url":"https://api.github.com/repos/40213151/freemarket_daimaru/hooks","issue_events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/events{/number}","events_url":"https://api.github.com/repos/40213151/freemarket_daimaru/events","assignees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/assignees{/user}","branches_url":"https://api.github.com/repos/40213151/freemarket_daimaru/branches{/branch}","tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/tags","blobs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/refs{/sha}","trees_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/{sha}","languages_url":"https://api.github.com/repos/40213151/freemarket_daimaru/languages","stargazers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/stargazers","contributors_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contributors","subscribers_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscribers","subscription_url":"https://api.github.com/repos/40213151/freemarket_daimaru/subscription","commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/commits{/sha}","git_commits_url":"https://api.github.com/repos/40213151/freemarket_daimaru/git/commits{/sha}","comments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/comments{/number}","issue_comment_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/comments{/number}","contents_url":"https://api.github.com/repos/40213151/freemarket_daimaru/contents/{+path}","compare_url":"https://api.github.com/repos/40213151/freemarket_daimaru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/40213151/freemarket_daimaru/merges","archive_url":"https://api.github.com/repos/40213151/freemarket_daimaru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/40213151/freemarket_daimaru/downloads","issues_url":"https://api.github.com/repos/40213151/freemarket_daimaru/issues{/number}","pulls_url":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls{/number}","milestones_url":"https://api.github.com/repos/40213151/freemarket_daimaru/milestones{/number}","notifications_url":"https://api.github.com/repos/40213151/freemarket_daimaru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/40213151/freemarket_daimaru/labels{/name}","releases_url":"https://api.github.com/repos/40213151/freemarket_daimaru/releases{/id}","deployments_url":"https://api.github.com/repos/40213151/freemarket_daimaru/deployments","created_at":"2018-11-07T11:05:05Z","updated_at":"2018-12-06T06:30:04Z","pushed_at":"2018-12-12T02:19:59Z","git_url":"git://github.com/40213151/freemarket_daimaru.git","ssh_url":"git@github.com:40213151/freemarket_daimaru.git","clone_url":"https://github.com/40213151/freemarket_daimaru.git","svn_url":"https://github.com/40213151/freemarket_daimaru","homepage":null,"size":490,"stargazers_count":0,"watchers_count":0,"language":"HTML","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/40213151/freemarket_daimaru/pulls/5"},"html":{"href":"https://github.com/40213151/freemarket_daimaru/pull/5"},"issue":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/5"},"comments":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/40213151/freemarket_daimaru/statuses/b9f16677c388851f9dcecc42d523d0631cdf0fcd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kohei-isoda"}}