{"action":"created","comment":{"url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/comments/360634699","pull_request_review_id":335593571,"id":360634699,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MDYzNDY5OQ==","diff_hunk":"@@ -5,13 +5,44 @@ class User < ApplicationRecord\n          :recoverable, :rememberable, :validatable,\n          :omniauthable, omniauth_providers: %i[facebook google_oauth2]\n   has_many :items\n+\n   has_one :address\n   accepts_nested_attributes_for :address\n+\n   has_one :profile\n+  \n   has_many :sns_credentials, dependent: :destroy\n+  \n   has_one :card\n   accepts_nested_attributes_for :card\n \n+  #新規登録画面バリデーション\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-.]+\\.[a-z]+\\z/i\n+  #registration\n+  validates :nickname, presence: true\n+  validates :email, \n+    presence: true, \n+    format:{ with: VALID_EMAIL_REGEX}, uniqueness: {case_sensitive: false}\n+  validates :password, length:{minimum:7}, presence: true\n+  validates :password_confirmation, length:{minimum:7}, presence: true\n+  validates :last_name,       presence: true","path":"app/models/user.rb","position":null,"original_position":24,"commit_id":"cb4060f56334c8d90b1fff6f363de7ecb3fb4fbc","original_commit_id":"927f59155d7498c30a9e2329d4c6d860b84b4c93","user":{"login":"kiji0815","id":53961075,"node_id":"MDQ6VXNlcjUzOTYxMDc1","avatar_url":"https://avatars3.githubusercontent.com/u/53961075?v=4","gravatar_id":"","url":"https://api.github.com/users/kiji0815","html_url":"https://github.com/kiji0815","followers_url":"https://api.github.com/users/kiji0815/followers","following_url":"https://api.github.com/users/kiji0815/following{/other_user}","gists_url":"https://api.github.com/users/kiji0815/gists{/gist_id}","starred_url":"https://api.github.com/users/kiji0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiji0815/subscriptions","organizations_url":"https://api.github.com/users/kiji0815/orgs","repos_url":"https://api.github.com/users/kiji0815/repos","events_url":"https://api.github.com/users/kiji0815/events{/privacy}","received_events_url":"https://api.github.com/users/kiji0815/received_events","type":"User","site_admin":false},"body":"参考記事をありがとうございます！validationをまとめました！","created_at":"2019-12-21T07:19:39Z","updated_at":"2019-12-21T07:19:39Z","html_url":"https://github.com/kiji0815/freemarket_sample_56a/pull/136#discussion_r360634699","pull_request_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/comments/360634699"},"html":{"href":"https://github.com/kiji0815/freemarket_sample_56a/pull/136#discussion_r360634699"},"pull_request":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136"}},"in_reply_to_id":360633709},"pull_request":{"url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136","id":355754824,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU1NzU0ODI0","html_url":"https://github.com/kiji0815/freemarket_sample_56a/pull/136","diff_url":"https://github.com/kiji0815/freemarket_sample_56a/pull/136.diff","patch_url":"https://github.com/kiji0815/freemarket_sample_56a/pull/136.patch","issue_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/136","number":136,"state":"open","locked":false,"title":"新規登録バリデーション実装","user":{"login":"kiji0815","id":53961075,"node_id":"MDQ6VXNlcjUzOTYxMDc1","avatar_url":"https://avatars3.githubusercontent.com/u/53961075?v=4","gravatar_id":"","url":"https://api.github.com/users/kiji0815","html_url":"https://github.com/kiji0815","followers_url":"https://api.github.com/users/kiji0815/followers","following_url":"https://api.github.com/users/kiji0815/following{/other_user}","gists_url":"https://api.github.com/users/kiji0815/gists{/gist_id}","starred_url":"https://api.github.com/users/kiji0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiji0815/subscriptions","organizations_url":"https://api.github.com/users/kiji0815/orgs","repos_url":"https://api.github.com/users/kiji0815/repos","events_url":"https://api.github.com/users/kiji0815/events{/privacy}","received_events_url":"https://api.github.com/users/kiji0815/received_events","type":"User","site_admin":false},"body":"What\r\nメールアドレスでのユーザー新規登録のバリデーションを実装しました。\r\n\r\nWhy\r\n新規会員情報、携帯電話番号、お届け先住所、お支払い情報の登録ページとバリデーションを設定しました。入力不備があるとフォームの下に赤い文字でエラーメッセージが表示されるようにしています。SMS認証は設定をしない予定です。\r\n\r\nここまでで一度メンターさんにプルリクを送りたいと思いますので、お手数ですがご確認をお願いいたします。\r\n\r\n●新規会員情報登録\r\nhttps://gyazo.com/b41cdab4485a3cb0ebecda03b082372b\r\n●携帯電話番号の確認\r\nhttps://gyazo.com/dede9e1b5a7dbc9ff60d6ae0e733ef47\r\n●お届け先住所\r\nhttps://gyazo.com/0d3cc1fae0b822e72f38d6c6bf674e2c\r\n●お支払い情報登録\r\nhttps://gyazo.com/0cd420d1587b089d8b9b4529915bdb75","created_at":"2019-12-20T14:31:46Z","updated_at":"2019-12-21T07:19:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f89efe2926d27f08e8da1bfcf9de148abbf8e21","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136/commits","review_comments_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136/comments","review_comment_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/136/comments","statuses_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/statuses/cb4060f56334c8d90b1fff6f363de7ecb3fb4fbc","head":{"label":"kiji0815:新規登録バリデーション実装3","ref":"新規登録バリデーション実装3","sha":"cb4060f56334c8d90b1fff6f363de7ecb3fb4fbc","user":{"login":"kiji0815","id":53961075,"node_id":"MDQ6VXNlcjUzOTYxMDc1","avatar_url":"https://avatars3.githubusercontent.com/u/53961075?v=4","gravatar_id":"","url":"https://api.github.com/users/kiji0815","html_url":"https://github.com/kiji0815","followers_url":"https://api.github.com/users/kiji0815/followers","following_url":"https://api.github.com/users/kiji0815/following{/other_user}","gists_url":"https://api.github.com/users/kiji0815/gists{/gist_id}","starred_url":"https://api.github.com/users/kiji0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiji0815/subscriptions","organizations_url":"https://api.github.com/users/kiji0815/orgs","repos_url":"https://api.github.com/users/kiji0815/repos","events_url":"https://api.github.com/users/kiji0815/events{/privacy}","received_events_url":"https://api.github.com/users/kiji0815/received_events","type":"User","site_admin":false},"repo":{"id":212977801,"node_id":"MDEwOlJlcG9zaXRvcnkyMTI5Nzc4MDE=","name":"freemarket_sample_56a","full_name":"kiji0815/freemarket_sample_56a","private":false,"owner":{"login":"kiji0815","id":53961075,"node_id":"MDQ6VXNlcjUzOTYxMDc1","avatar_url":"https://avatars3.githubusercontent.com/u/53961075?v=4","gravatar_id":"","url":"https://api.github.com/users/kiji0815","html_url":"https://github.com/kiji0815","followers_url":"https://api.github.com/users/kiji0815/followers","following_url":"https://api.github.com/users/kiji0815/following{/other_user}","gists_url":"https://api.github.com/users/kiji0815/gists{/gist_id}","starred_url":"https://api.github.com/users/kiji0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiji0815/subscriptions","organizations_url":"https://api.github.com/users/kiji0815/orgs","repos_url":"https://api.github.com/users/kiji0815/repos","events_url":"https://api.github.com/users/kiji0815/events{/privacy}","received_events_url":"https://api.github.com/users/kiji0815/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kiji0815/freemarket_sample_56a","description":null,"fork":false,"url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a","forks_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/forks","keys_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/teams","hooks_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/hooks","issue_events_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/events{/number}","events_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/events","assignees_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/assignees{/user}","branches_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/branches{/branch}","tags_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/tags","blobs_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/statuses/{sha}","languages_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/languages","stargazers_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/stargazers","contributors_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/contributors","subscribers_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/subscribers","subscription_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/subscription","commits_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/contents/{+path}","compare_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/merges","archive_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/downloads","issues_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues{/number}","pulls_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls{/number}","milestones_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/milestones{/number}","notifications_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/labels{/name}","releases_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/releases{/id}","deployments_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/deployments","created_at":"2019-10-05T09:57:24Z","updated_at":"2019-12-20T12:12:34Z","pushed_at":"2019-12-21T07:18:42Z","git_url":"git://github.com/kiji0815/freemarket_sample_56a.git","ssh_url":"git@github.com:kiji0815/freemarket_sample_56a.git","clone_url":"https://github.com/kiji0815/freemarket_sample_56a.git","svn_url":"https://github.com/kiji0815/freemarket_sample_56a","homepage":null,"size":4892,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"kiji0815:master","ref":"master","sha":"4fccb4560a6aaf22be6f328a1bc87edbb58fcb6e","user":{"login":"kiji0815","id":53961075,"node_id":"MDQ6VXNlcjUzOTYxMDc1","avatar_url":"https://avatars3.githubusercontent.com/u/53961075?v=4","gravatar_id":"","url":"https://api.github.com/users/kiji0815","html_url":"https://github.com/kiji0815","followers_url":"https://api.github.com/users/kiji0815/followers","following_url":"https://api.github.com/users/kiji0815/following{/other_user}","gists_url":"https://api.github.com/users/kiji0815/gists{/gist_id}","starred_url":"https://api.github.com/users/kiji0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiji0815/subscriptions","organizations_url":"https://api.github.com/users/kiji0815/orgs","repos_url":"https://api.github.com/users/kiji0815/repos","events_url":"https://api.github.com/users/kiji0815/events{/privacy}","received_events_url":"https://api.github.com/users/kiji0815/received_events","type":"User","site_admin":false},"repo":{"id":212977801,"node_id":"MDEwOlJlcG9zaXRvcnkyMTI5Nzc4MDE=","name":"freemarket_sample_56a","full_name":"kiji0815/freemarket_sample_56a","private":false,"owner":{"login":"kiji0815","id":53961075,"node_id":"MDQ6VXNlcjUzOTYxMDc1","avatar_url":"https://avatars3.githubusercontent.com/u/53961075?v=4","gravatar_id":"","url":"https://api.github.com/users/kiji0815","html_url":"https://github.com/kiji0815","followers_url":"https://api.github.com/users/kiji0815/followers","following_url":"https://api.github.com/users/kiji0815/following{/other_user}","gists_url":"https://api.github.com/users/kiji0815/gists{/gist_id}","starred_url":"https://api.github.com/users/kiji0815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiji0815/subscriptions","organizations_url":"https://api.github.com/users/kiji0815/orgs","repos_url":"https://api.github.com/users/kiji0815/repos","events_url":"https://api.github.com/users/kiji0815/events{/privacy}","received_events_url":"https://api.github.com/users/kiji0815/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kiji0815/freemarket_sample_56a","description":null,"fork":false,"url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a","forks_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/forks","keys_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/teams","hooks_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/hooks","issue_events_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/events{/number}","events_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/events","assignees_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/assignees{/user}","branches_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/branches{/branch}","tags_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/tags","blobs_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/statuses/{sha}","languages_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/languages","stargazers_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/stargazers","contributors_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/contributors","subscribers_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/subscribers","subscription_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/subscription","commits_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/contents/{+path}","compare_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/merges","archive_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/downloads","issues_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues{/number}","pulls_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls{/number}","milestones_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/milestones{/number}","notifications_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/labels{/name}","releases_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/releases{/id}","deployments_url":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/deployments","created_at":"2019-10-05T09:57:24Z","updated_at":"2019-12-20T12:12:34Z","pushed_at":"2019-12-21T07:18:42Z","git_url":"git://github.com/kiji0815/freemarket_sample_56a.git","ssh_url":"git@github.com:kiji0815/freemarket_sample_56a.git","clone_url":"https://github.com/kiji0815/freemarket_sample_56a.git","svn_url":"https://github.com/kiji0815/freemarket_sample_56a","homepage":null,"size":4892,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136"},"html":{"href":"https://github.com/kiji0815/freemarket_sample_56a/pull/136"},"issue":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/136"},"comments":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/kiji0815/freemarket_sample_56a/statuses/cb4060f56334c8d90b1fff6f363de7ecb3fb4fbc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kiji0815"}}