{"action":"created","comment":{"url":"https://api.github.com/repos/pwentz/robot_world/pulls/comments/69767717","id":69767717,"diff_hunk":"@@ -18,57 +18,57 @@\n       <div class=\"col-md-10\">\n       <span class=\"label label-default\">Birthdate</span>\n         <div class=\"col-md-2\">\n-          <input type=\"text\" class=\"form-control\" name=\"robot[birthdate][month]\" value=\"<%= @robot.birthdate[\"month\"] %>\">\n+          <input type=\"text\" class=\"form-control\" name=\"robot[birthdate][month]\" value=\"<%= @robot.birthdate.split(\"/\").first.to_i %>\" maxlength=\"2\" required=\"true\">\n         </div>\n         <div class=\"col-md-2\">\n-          <input type=\"text\" class=\"form-control\" name=\"robot[birthdate][day]\" value=\"<%= @robot.birthdate[\"day\"] %>\">\n+          <input type=\"text\" class=\"form-control\" name=\"robot[birthdate][day]\" value=\"<%= @robot.birthdate.split(\"/\")[1].to_i %>\" maxlength=\"2\" required=\"true\">\n         </div>\n         <div class=\"col-md-2\">\n-          <input type=\"text\" class=\"form-control\" name=\"robot[birthdate][year]\" value=\"<%= @robot.birthdate[\"year\"] %>\">\n+          <input type=\"text\" class=\"form-control\" name=\"robot[birthdate][year]\" value=\"<%= @robot.birthdate.split(\"/\").last.to_i %>\" minlength=\"4\" maxlength=\"4\" required=\"true\">","path":"app/views/edit.erb","position":26,"original_position":26,"commit_id":"8525190ad6e74545067d570bb98a9595b66ce4b6","original_commit_id":"8525190ad6e74545067d570bb98a9595b66ce4b6","user":{"login":"case-eee","id":6503717,"avatar_url":"https://avatars.githubusercontent.com/u/6503717?v=3","gravatar_id":"","url":"https://api.github.com/users/case-eee","html_url":"https://github.com/case-eee","followers_url":"https://api.github.com/users/case-eee/followers","following_url":"https://api.github.com/users/case-eee/following{/other_user}","gists_url":"https://api.github.com/users/case-eee/gists{/gist_id}","starred_url":"https://api.github.com/users/case-eee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/case-eee/subscriptions","organizations_url":"https://api.github.com/users/case-eee/orgs","repos_url":"https://api.github.com/users/case-eee/repos","events_url":"https://api.github.com/users/case-eee/events{/privacy}","received_events_url":"https://api.github.com/users/case-eee/received_events","type":"User","site_admin":false},"body":"the behavior of `@robot.birthdate.split(\"/\")[1]` could live in a `find_year` method. same with the calculations on line 24 and 21","created_at":"2016-07-06T16:48:43Z","updated_at":"2016-07-06T16:48:43Z","html_url":"https://github.com/pwentz/robot_world/pull/1#discussion_r69767717","pull_request_url":"https://api.github.com/repos/pwentz/robot_world/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pwentz/robot_world/pulls/comments/69767717"},"html":{"href":"https://github.com/pwentz/robot_world/pull/1#discussion_r69767717"},"pull_request":{"href":"https://api.github.com/repos/pwentz/robot_world/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pwentz/robot_world/pulls/1","id":76458023,"html_url":"https://github.com/pwentz/robot_world/pull/1","diff_url":"https://github.com/pwentz/robot_world/pull/1.diff","patch_url":"https://github.com/pwentz/robot_world/pull/1.patch","issue_url":"https://api.github.com/repos/pwentz/robot_world/issues/1","number":1,"state":"open","locked":false,"title":"code review commit - do not merge!","user":{"login":"case-eee","id":6503717,"avatar_url":"https://avatars.githubusercontent.com/u/6503717?v=3","gravatar_id":"","url":"https://api.github.com/users/case-eee","html_url":"https://github.com/case-eee","followers_url":"https://api.github.com/users/case-eee/followers","following_url":"https://api.github.com/users/case-eee/following{/other_user}","gists_url":"https://api.github.com/users/case-eee/gists{/gist_id}","starred_url":"https://api.github.com/users/case-eee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/case-eee/subscriptions","organizations_url":"https://api.github.com/users/case-eee/orgs","repos_url":"https://api.github.com/users/case-eee/repos","events_url":"https://api.github.com/users/case-eee/events{/privacy}","received_events_url":"https://api.github.com/users/case-eee/received_events","type":"User","site_admin":false},"body":"This PR's purpose is to make leaving comments on your code easier. Do not merge!","created_at":"2016-07-06T16:04:43Z","updated_at":"2016-07-06T16:48:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91f5159f8b52eafe62d8ae3d8e3ea61e22e918ec","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pwentz/robot_world/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pwentz/robot_world/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pwentz/robot_world/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pwentz/robot_world/issues/1/comments","statuses_url":"https://api.github.com/repos/pwentz/robot_world/statuses/8525190ad6e74545067d570bb98a9595b66ce4b6","head":{"label":"pwentz:code-review","ref":"code-review","sha":"8525190ad6e74545067d570bb98a9595b66ce4b6","user":{"login":"pwentz","id":18466392,"avatar_url":"https://avatars.githubusercontent.com/u/18466392?v=3","gravatar_id":"","url":"https://api.github.com/users/pwentz","html_url":"https://github.com/pwentz","followers_url":"https://api.github.com/users/pwentz/followers","following_url":"https://api.github.com/users/pwentz/following{/other_user}","gists_url":"https://api.github.com/users/pwentz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwentz/subscriptions","organizations_url":"https://api.github.com/users/pwentz/orgs","repos_url":"https://api.github.com/users/pwentz/repos","events_url":"https://api.github.com/users/pwentz/events{/privacy}","received_events_url":"https://api.github.com/users/pwentz/received_events","type":"User","site_admin":false},"repo":{"id":62234717,"name":"robot_world","full_name":"pwentz/robot_world","owner":{"login":"pwentz","id":18466392,"avatar_url":"https://avatars.githubusercontent.com/u/18466392?v=3","gravatar_id":"","url":"https://api.github.com/users/pwentz","html_url":"https://github.com/pwentz","followers_url":"https://api.github.com/users/pwentz/followers","following_url":"https://api.github.com/users/pwentz/following{/other_user}","gists_url":"https://api.github.com/users/pwentz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwentz/subscriptions","organizations_url":"https://api.github.com/users/pwentz/orgs","repos_url":"https://api.github.com/users/pwentz/repos","events_url":"https://api.github.com/users/pwentz/events{/privacy}","received_events_url":"https://api.github.com/users/pwentz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwentz/robot_world","description":null,"fork":false,"url":"https://api.github.com/repos/pwentz/robot_world","forks_url":"https://api.github.com/repos/pwentz/robot_world/forks","keys_url":"https://api.github.com/repos/pwentz/robot_world/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwentz/robot_world/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwentz/robot_world/teams","hooks_url":"https://api.github.com/repos/pwentz/robot_world/hooks","issue_events_url":"https://api.github.com/repos/pwentz/robot_world/issues/events{/number}","events_url":"https://api.github.com/repos/pwentz/robot_world/events","assignees_url":"https://api.github.com/repos/pwentz/robot_world/assignees{/user}","branches_url":"https://api.github.com/repos/pwentz/robot_world/branches{/branch}","tags_url":"https://api.github.com/repos/pwentz/robot_world/tags","blobs_url":"https://api.github.com/repos/pwentz/robot_world/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwentz/robot_world/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwentz/robot_world/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwentz/robot_world/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwentz/robot_world/statuses/{sha}","languages_url":"https://api.github.com/repos/pwentz/robot_world/languages","stargazers_url":"https://api.github.com/repos/pwentz/robot_world/stargazers","contributors_url":"https://api.github.com/repos/pwentz/robot_world/contributors","subscribers_url":"https://api.github.com/repos/pwentz/robot_world/subscribers","subscription_url":"https://api.github.com/repos/pwentz/robot_world/subscription","commits_url":"https://api.github.com/repos/pwentz/robot_world/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwentz/robot_world/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwentz/robot_world/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwentz/robot_world/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwentz/robot_world/contents/{+path}","compare_url":"https://api.github.com/repos/pwentz/robot_world/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwentz/robot_world/merges","archive_url":"https://api.github.com/repos/pwentz/robot_world/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwentz/robot_world/downloads","issues_url":"https://api.github.com/repos/pwentz/robot_world/issues{/number}","pulls_url":"https://api.github.com/repos/pwentz/robot_world/pulls{/number}","milestones_url":"https://api.github.com/repos/pwentz/robot_world/milestones{/number}","notifications_url":"https://api.github.com/repos/pwentz/robot_world/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwentz/robot_world/labels{/name}","releases_url":"https://api.github.com/repos/pwentz/robot_world/releases{/id}","deployments_url":"https://api.github.com/repos/pwentz/robot_world/deployments","created_at":"2016-06-29T14:59:41Z","updated_at":"2016-06-30T15:00:55Z","pushed_at":"2016-07-06T16:04:43Z","git_url":"git://github.com/pwentz/robot_world.git","ssh_url":"git@github.com:pwentz/robot_world.git","clone_url":"https://github.com/pwentz/robot_world.git","svn_url":"https://github.com/pwentz/robot_world","homepage":null,"size":44,"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":"pwentz:master","ref":"master","sha":"e6a91860137b6dd3e142efbe0020034ebbad2daf","user":{"login":"pwentz","id":18466392,"avatar_url":"https://avatars.githubusercontent.com/u/18466392?v=3","gravatar_id":"","url":"https://api.github.com/users/pwentz","html_url":"https://github.com/pwentz","followers_url":"https://api.github.com/users/pwentz/followers","following_url":"https://api.github.com/users/pwentz/following{/other_user}","gists_url":"https://api.github.com/users/pwentz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwentz/subscriptions","organizations_url":"https://api.github.com/users/pwentz/orgs","repos_url":"https://api.github.com/users/pwentz/repos","events_url":"https://api.github.com/users/pwentz/events{/privacy}","received_events_url":"https://api.github.com/users/pwentz/received_events","type":"User","site_admin":false},"repo":{"id":62234717,"name":"robot_world","full_name":"pwentz/robot_world","owner":{"login":"pwentz","id":18466392,"avatar_url":"https://avatars.githubusercontent.com/u/18466392?v=3","gravatar_id":"","url":"https://api.github.com/users/pwentz","html_url":"https://github.com/pwentz","followers_url":"https://api.github.com/users/pwentz/followers","following_url":"https://api.github.com/users/pwentz/following{/other_user}","gists_url":"https://api.github.com/users/pwentz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwentz/subscriptions","organizations_url":"https://api.github.com/users/pwentz/orgs","repos_url":"https://api.github.com/users/pwentz/repos","events_url":"https://api.github.com/users/pwentz/events{/privacy}","received_events_url":"https://api.github.com/users/pwentz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwentz/robot_world","description":null,"fork":false,"url":"https://api.github.com/repos/pwentz/robot_world","forks_url":"https://api.github.com/repos/pwentz/robot_world/forks","keys_url":"https://api.github.com/repos/pwentz/robot_world/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwentz/robot_world/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwentz/robot_world/teams","hooks_url":"https://api.github.com/repos/pwentz/robot_world/hooks","issue_events_url":"https://api.github.com/repos/pwentz/robot_world/issues/events{/number}","events_url":"https://api.github.com/repos/pwentz/robot_world/events","assignees_url":"https://api.github.com/repos/pwentz/robot_world/assignees{/user}","branches_url":"https://api.github.com/repos/pwentz/robot_world/branches{/branch}","tags_url":"https://api.github.com/repos/pwentz/robot_world/tags","blobs_url":"https://api.github.com/repos/pwentz/robot_world/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwentz/robot_world/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwentz/robot_world/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwentz/robot_world/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwentz/robot_world/statuses/{sha}","languages_url":"https://api.github.com/repos/pwentz/robot_world/languages","stargazers_url":"https://api.github.com/repos/pwentz/robot_world/stargazers","contributors_url":"https://api.github.com/repos/pwentz/robot_world/contributors","subscribers_url":"https://api.github.com/repos/pwentz/robot_world/subscribers","subscription_url":"https://api.github.com/repos/pwentz/robot_world/subscription","commits_url":"https://api.github.com/repos/pwentz/robot_world/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwentz/robot_world/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwentz/robot_world/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwentz/robot_world/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwentz/robot_world/contents/{+path}","compare_url":"https://api.github.com/repos/pwentz/robot_world/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwentz/robot_world/merges","archive_url":"https://api.github.com/repos/pwentz/robot_world/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwentz/robot_world/downloads","issues_url":"https://api.github.com/repos/pwentz/robot_world/issues{/number}","pulls_url":"https://api.github.com/repos/pwentz/robot_world/pulls{/number}","milestones_url":"https://api.github.com/repos/pwentz/robot_world/milestones{/number}","notifications_url":"https://api.github.com/repos/pwentz/robot_world/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwentz/robot_world/labels{/name}","releases_url":"https://api.github.com/repos/pwentz/robot_world/releases{/id}","deployments_url":"https://api.github.com/repos/pwentz/robot_world/deployments","created_at":"2016-06-29T14:59:41Z","updated_at":"2016-06-30T15:00:55Z","pushed_at":"2016-07-06T16:04:43Z","git_url":"git://github.com/pwentz/robot_world.git","ssh_url":"git@github.com:pwentz/robot_world.git","clone_url":"https://github.com/pwentz/robot_world.git","svn_url":"https://github.com/pwentz/robot_world","homepage":null,"size":44,"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/pwentz/robot_world/pulls/1"},"html":{"href":"https://github.com/pwentz/robot_world/pull/1"},"issue":{"href":"https://api.github.com/repos/pwentz/robot_world/issues/1"},"comments":{"href":"https://api.github.com/repos/pwentz/robot_world/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pwentz/robot_world/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pwentz/robot_world/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pwentz/robot_world/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pwentz/robot_world/statuses/8525190ad6e74545067d570bb98a9595b66ce4b6"}}}}
{"actor":{"display_login":"case-eee"}}