{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/168952653","pull_request_review_id":97404004,"id":168952653,"diff_hunk":"@@ -214,6 +225,41 @@ private Command prepareViewAll(String args) {\n         }\n     }\n \n+    /**\n+     * Parses arguments in the context of the edit person command.\n+     *\n+     * @param args full command args string\n+     * @return the prepared command\n+     */\n+    private Command prepareEdit(String args) {\n+        final Matcher matcher = EDIT_PERSON_ARGS_FORMAT.matcher(args.trim());\n+        // Validate arg string format\n+        if (!matcher.matches()) {\n+            return new IncorrectCommand(String.format(MESSAGE_INVALID_COMMAND_FORMAT, EditCommand.MESSAGE_USAGE));\n+        }\n+        try {\n+            return new EditCommand(\n+\n+                    Integer.parseInt(matcher.group(\"targetIndex\")),\n+\n+                    matcher.group(\"name\"),","path":"src/seedu/addressbook/parser/Parser.java","position":53,"original_position":53,"commit_id":"e7700e0dabd965ffb896397b82e28e13ffb79fd7","original_commit_id":"e7700e0dabd965ffb896397b82e28e13ffb79fd7","user":{"login":"brandonyeoxg","id":16134861,"avatar_url":"https://avatars3.githubusercontent.com/u/16134861?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonyeoxg","html_url":"https://github.com/brandonyeoxg","followers_url":"https://api.github.com/users/brandonyeoxg/followers","following_url":"https://api.github.com/users/brandonyeoxg/following{/other_user}","gists_url":"https://api.github.com/users/brandonyeoxg/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonyeoxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonyeoxg/subscriptions","organizations_url":"https://api.github.com/users/brandonyeoxg/orgs","repos_url":"https://api.github.com/users/brandonyeoxg/repos","events_url":"https://api.github.com/users/brandonyeoxg/events{/privacy}","received_events_url":"https://api.github.com/users/brandonyeoxg/received_events","type":"User","site_admin":false},"body":"Use blank lines sparingly. It's good to have blank lines to separate logical code blocks, but too many blank lines will increase the height of the code, which increases the amount of scrolling.","created_at":"2018-02-18T14:03:48Z","updated_at":"2018-02-18T14:04:52Z","html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/776#discussion_r168952653","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/168952653"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/776#discussion_r168952653"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776","id":169829614,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/776","diff_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/776.diff","patch_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/776.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/776","number":776,"state":"open","locked":false,"title":"[W5.11][W13-A3]Jarrett Choo","user":{"login":"Kyomian","id":28558144,"avatar_url":"https://avatars2.githubusercontent.com/u/28558144?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyomian","html_url":"https://github.com/Kyomian","followers_url":"https://api.github.com/users/Kyomian/followers","following_url":"https://api.github.com/users/Kyomian/following{/other_user}","gists_url":"https://api.github.com/users/Kyomian/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyomian/subscriptions","organizations_url":"https://api.github.com/users/Kyomian/orgs","repos_url":"https://api.github.com/users/Kyomian/repos","events_url":"https://api.github.com/users/Kyomian/events{/privacy}","received_events_url":"https://api.github.com/users/Kyomian/received_events","type":"User","site_admin":false},"body":"Referred to #562 \r\n\r\nAdded EditCommand to address book. ","created_at":"2018-02-18T13:07:22Z","updated_at":"2018-02-18T14:04:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3aeabdf659beb34e7a3bcaa95a2f83dbef9feb7f","assignee":{"login":"brandonyeoxg","id":16134861,"avatar_url":"https://avatars3.githubusercontent.com/u/16134861?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonyeoxg","html_url":"https://github.com/brandonyeoxg","followers_url":"https://api.github.com/users/brandonyeoxg/followers","following_url":"https://api.github.com/users/brandonyeoxg/following{/other_user}","gists_url":"https://api.github.com/users/brandonyeoxg/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonyeoxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonyeoxg/subscriptions","organizations_url":"https://api.github.com/users/brandonyeoxg/orgs","repos_url":"https://api.github.com/users/brandonyeoxg/repos","events_url":"https://api.github.com/users/brandonyeoxg/events{/privacy}","received_events_url":"https://api.github.com/users/brandonyeoxg/received_events","type":"User","site_admin":false},"assignees":[{"login":"brandonyeoxg","id":16134861,"avatar_url":"https://avatars3.githubusercontent.com/u/16134861?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonyeoxg","html_url":"https://github.com/brandonyeoxg","followers_url":"https://api.github.com/users/brandonyeoxg/followers","following_url":"https://api.github.com/users/brandonyeoxg/following{/other_user}","gists_url":"https://api.github.com/users/brandonyeoxg/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonyeoxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonyeoxg/subscriptions","organizations_url":"https://api.github.com/users/brandonyeoxg/orgs","repos_url":"https://api.github.com/users/brandonyeoxg/repos","events_url":"https://api.github.com/users/brandonyeoxg/events{/privacy}","received_events_url":"https://api.github.com/users/brandonyeoxg/received_events","type":"User","site_admin":false},{"login":"hwkchia","id":16570616,"avatar_url":"https://avatars2.githubusercontent.com/u/16570616?v=4","gravatar_id":"","url":"https://api.github.com/users/hwkchia","html_url":"https://github.com/hwkchia","followers_url":"https://api.github.com/users/hwkchia/followers","following_url":"https://api.github.com/users/hwkchia/following{/other_user}","gists_url":"https://api.github.com/users/hwkchia/gists{/gist_id}","starred_url":"https://api.github.com/users/hwkchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwkchia/subscriptions","organizations_url":"https://api.github.com/users/hwkchia/orgs","repos_url":"https://api.github.com/users/hwkchia/repos","events_url":"https://api.github.com/users/hwkchia/events{/privacy}","received_events_url":"https://api.github.com/users/hwkchia/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":784873039,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/team.A3","name":"team.A3","color":"ededed","default":false},{"id":784873294,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/tutorial.W13","name":"tutorial.W13","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776/comments","review_comment_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/776/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/e7700e0dabd965ffb896397b82e28e13ffb79fd7","head":{"label":"Kyomian:W5.11(1)","ref":"W5.11(1)","sha":"e7700e0dabd965ffb896397b82e28e13ffb79fd7","user":{"login":"Kyomian","id":28558144,"avatar_url":"https://avatars2.githubusercontent.com/u/28558144?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyomian","html_url":"https://github.com/Kyomian","followers_url":"https://api.github.com/users/Kyomian/followers","following_url":"https://api.github.com/users/Kyomian/following{/other_user}","gists_url":"https://api.github.com/users/Kyomian/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyomian/subscriptions","organizations_url":"https://api.github.com/users/Kyomian/orgs","repos_url":"https://api.github.com/users/Kyomian/repos","events_url":"https://api.github.com/users/Kyomian/events{/privacy}","received_events_url":"https://api.github.com/users/Kyomian/received_events","type":"User","site_admin":false},"repo":{"id":120565059,"name":"addressbook-level2","full_name":"Kyomian/addressbook-level2","owner":{"login":"Kyomian","id":28558144,"avatar_url":"https://avatars2.githubusercontent.com/u/28558144?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyomian","html_url":"https://github.com/Kyomian","followers_url":"https://api.github.com/users/Kyomian/followers","following_url":"https://api.github.com/users/Kyomian/following{/other_user}","gists_url":"https://api.github.com/users/Kyomian/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyomian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyomian/subscriptions","organizations_url":"https://api.github.com/users/Kyomian/orgs","repos_url":"https://api.github.com/users/Kyomian/repos","events_url":"https://api.github.com/users/Kyomian/events{/privacy}","received_events_url":"https://api.github.com/users/Kyomian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kyomian/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/Kyomian/addressbook-level2","forks_url":"https://api.github.com/repos/Kyomian/addressbook-level2/forks","keys_url":"https://api.github.com/repos/Kyomian/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kyomian/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kyomian/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/Kyomian/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/Kyomian/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/Kyomian/addressbook-level2/events","assignees_url":"https://api.github.com/repos/Kyomian/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/Kyomian/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/Kyomian/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/Kyomian/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kyomian/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kyomian/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kyomian/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kyomian/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/Kyomian/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/Kyomian/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/Kyomian/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/Kyomian/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/Kyomian/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/Kyomian/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kyomian/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kyomian/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kyomian/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kyomian/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/Kyomian/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kyomian/addressbook-level2/merges","archive_url":"https://api.github.com/repos/Kyomian/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kyomian/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/Kyomian/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/Kyomian/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/Kyomian/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/Kyomian/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kyomian/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/Kyomian/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/Kyomian/addressbook-level2/deployments","created_at":"2018-02-07T04:59:27Z","updated_at":"2018-02-07T04:59:30Z","pushed_at":"2018-02-18T13:50:44Z","git_url":"git://github.com/Kyomian/addressbook-level2.git","ssh_url":"git@github.com:Kyomian/addressbook-level2.git","clone_url":"https://github.com/Kyomian/addressbook-level2.git","svn_url":"https://github.com/Kyomian/addressbook-level2","homepage":null,"size":3304,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nus-cs2103-AY1718S2:master","ref":"master","sha":"23644b1848abac9a973179ad015e20b7292394f5","user":{"login":"nus-cs2103-AY1718S2","id":34544003,"avatar_url":"https://avatars0.githubusercontent.com/u/34544003?v=4","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1718S2","html_url":"https://github.com/nus-cs2103-AY1718S2","followers_url":"https://api.github.com/users/nus-cs2103-AY1718S2/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1718S2/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1718S2/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1718S2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1718S2/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1718S2/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1718S2/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/received_events","type":"Organization","site_admin":false},"repo":{"id":115011334,"name":"addressbook-level2","full_name":"nus-cs2103-AY1718S2/addressbook-level2","owner":{"login":"nus-cs2103-AY1718S2","id":34544003,"avatar_url":"https://avatars0.githubusercontent.com/u/34544003?v=4","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1718S2","html_url":"https://github.com/nus-cs2103-AY1718S2","followers_url":"https://api.github.com/users/nus-cs2103-AY1718S2/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1718S2/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1718S2/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1718S2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1718S2/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1718S2/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1718S2/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2","forks_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/forks","keys_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/events","assignees_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/merges","archive_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/deployments","created_at":"2017-12-21T13:56:37Z","updated_at":"2018-02-18T02:32:33Z","pushed_at":"2018-02-18T13:50:46Z","git_url":"git://github.com/nus-cs2103-AY1718S2/addressbook-level2.git","ssh_url":"git@github.com:nus-cs2103-AY1718S2/addressbook-level2.git","clone_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2.git","svn_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2","homepage":null,"size":3419,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":187,"mirror_url":null,"archived":false,"open_issues_count":469,"license":null,"forks":187,"open_issues":469,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/776"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/776"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/776/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/776/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/e7700e0dabd965ffb896397b82e28e13ffb79fd7"}},"author_association":"NONE"}}
{"actor":{"display_login":"brandonyeoxg"}}