{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/168910514","pull_request_review_id":97363294,"id":168910514,"diff_hunk":"@@ -83,14 +81,30 @@ private void runCommandLoopUntilExitCommand() {\n         Command command;\n         do {\n             String userCommandText = ui.getUserCommand();\n+            //List all persons automatically after an add or delete command\n             command = new Parser().parseCommand(userCommandText);\n             CommandResult result = executeCommand(command);\n             recordResult(result);\n             ui.showResultToUser(result);\n \n+            if(command instanceof AddCommand || command instanceof DeleteCommand) {\n+                listTheirDetails();\n+            }\n+\n         } while (!ExitCommand.isExit(command));\n     }\n \n+    /*\n+     * Executes list command when add or delete command is called.\n+     */\n+\n+    private void listTheirDetails() {","path":"src/seedu/addressbook/Main.java","position":32,"original_position":32,"commit_id":"0d0614f9da0df55f96fd39a7324afe82b5a92c7a","original_commit_id":"0d0614f9da0df55f96fd39a7324afe82b5a92c7a","user":{"login":"jeffryhartanto","id":7631199,"avatar_url":"https://avatars1.githubusercontent.com/u/7631199?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffryhartanto","html_url":"https://github.com/jeffryhartanto","followers_url":"https://api.github.com/users/jeffryhartanto/followers","following_url":"https://api.github.com/users/jeffryhartanto/following{/other_user}","gists_url":"https://api.github.com/users/jeffryhartanto/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffryhartanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffryhartanto/subscriptions","organizations_url":"https://api.github.com/users/jeffryhartanto/orgs","repos_url":"https://api.github.com/users/jeffryhartanto/repos","events_url":"https://api.github.com/users/jeffryhartanto/events{/privacy}","received_events_url":"https://api.github.com/users/jeffryhartanto/received_events","type":"User","site_admin":false},"body":"may be `listAllPersons` is a better method name.","created_at":"2018-02-17T03:10:21Z","updated_at":"2018-02-17T03:17:18Z","html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/661#discussion_r168910514","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/168910514"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/661#discussion_r168910514"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661","id":169361208,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/661","diff_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/661.diff","patch_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/661.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/661","number":661,"state":"open","locked":false,"title":"[W5.11][T09-A3] Shamsheer Ahamed","user":{"login":"A0158738X","id":18659784,"avatar_url":"https://avatars2.githubusercontent.com/u/18659784?v=4","gravatar_id":"","url":"https://api.github.com/users/A0158738X","html_url":"https://github.com/A0158738X","followers_url":"https://api.github.com/users/A0158738X/followers","following_url":"https://api.github.com/users/A0158738X/following{/other_user}","gists_url":"https://api.github.com/users/A0158738X/gists{/gist_id}","starred_url":"https://api.github.com/users/A0158738X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A0158738X/subscriptions","organizations_url":"https://api.github.com/users/A0158738X/orgs","repos_url":"https://api.github.com/users/A0158738X/repos","events_url":"https://api.github.com/users/A0158738X/events{/privacy}","received_events_url":"https://api.github.com/users/A0158738X/received_events","type":"User","site_admin":false},"body":"1. Added a sort Command, User Guide, and Tests. \r\n2. Added the ability to list information after add or delete command.","created_at":"2018-02-15T12:43:02Z","updated_at":"2018-02-17T03:17:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f919c60bc93441030fb01245a4f28c9cce5cb99","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":784873010,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/GithubUsernameRequested","name":"GithubUsernameRequested","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661/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/661/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/0d0614f9da0df55f96fd39a7324afe82b5a92c7a","head":{"label":"A0158738X:W5.11","ref":"W5.11","sha":"0d0614f9da0df55f96fd39a7324afe82b5a92c7a","user":{"login":"A0158738X","id":18659784,"avatar_url":"https://avatars2.githubusercontent.com/u/18659784?v=4","gravatar_id":"","url":"https://api.github.com/users/A0158738X","html_url":"https://github.com/A0158738X","followers_url":"https://api.github.com/users/A0158738X/followers","following_url":"https://api.github.com/users/A0158738X/following{/other_user}","gists_url":"https://api.github.com/users/A0158738X/gists{/gist_id}","starred_url":"https://api.github.com/users/A0158738X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A0158738X/subscriptions","organizations_url":"https://api.github.com/users/A0158738X/orgs","repos_url":"https://api.github.com/users/A0158738X/repos","events_url":"https://api.github.com/users/A0158738X/events{/privacy}","received_events_url":"https://api.github.com/users/A0158738X/received_events","type":"User","site_admin":false},"repo":{"id":121609952,"name":"addressbook-level2","full_name":"A0158738X/addressbook-level2","owner":{"login":"A0158738X","id":18659784,"avatar_url":"https://avatars2.githubusercontent.com/u/18659784?v=4","gravatar_id":"","url":"https://api.github.com/users/A0158738X","html_url":"https://github.com/A0158738X","followers_url":"https://api.github.com/users/A0158738X/followers","following_url":"https://api.github.com/users/A0158738X/following{/other_user}","gists_url":"https://api.github.com/users/A0158738X/gists{/gist_id}","starred_url":"https://api.github.com/users/A0158738X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A0158738X/subscriptions","organizations_url":"https://api.github.com/users/A0158738X/orgs","repos_url":"https://api.github.com/users/A0158738X/repos","events_url":"https://api.github.com/users/A0158738X/events{/privacy}","received_events_url":"https://api.github.com/users/A0158738X/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/A0158738X/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/A0158738X/addressbook-level2","forks_url":"https://api.github.com/repos/A0158738X/addressbook-level2/forks","keys_url":"https://api.github.com/repos/A0158738X/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/A0158738X/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/A0158738X/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/A0158738X/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/A0158738X/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/A0158738X/addressbook-level2/events","assignees_url":"https://api.github.com/repos/A0158738X/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/A0158738X/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/A0158738X/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/A0158738X/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/A0158738X/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/A0158738X/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/A0158738X/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/A0158738X/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/A0158738X/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/A0158738X/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/A0158738X/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/A0158738X/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/A0158738X/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/A0158738X/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/A0158738X/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/A0158738X/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/A0158738X/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/A0158738X/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/A0158738X/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/A0158738X/addressbook-level2/merges","archive_url":"https://api.github.com/repos/A0158738X/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/A0158738X/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/A0158738X/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/A0158738X/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/A0158738X/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/A0158738X/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/A0158738X/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/A0158738X/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/A0158738X/addressbook-level2/deployments","created_at":"2018-02-15T09:16:18Z","updated_at":"2018-02-15T09:16:20Z","pushed_at":"2018-02-15T12:28:59Z","git_url":"git://github.com/A0158738X/addressbook-level2.git","ssh_url":"git@github.com:A0158738X/addressbook-level2.git","clone_url":"https://github.com/A0158738X/addressbook-level2.git","svn_url":"https://github.com/A0158738X/addressbook-level2","homepage":null,"size":3403,"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-10T03:00:19Z","pushed_at":"2018-02-17T02:56:04Z","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":559,"license":null,"forks":187,"open_issues":559,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/661"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/661"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/661/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/661/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/661/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/0d0614f9da0df55f96fd39a7324afe82b5a92c7a"}},"author_association":"NONE"}}
{"actor":{"display_login":"jeffryhartanto"}}