{"action":"created","comment":{"url":"https://api.github.com/repos/esm-bits/novice-timer/pulls/comments/129246733","pull_request_review_id":51998339,"id":129246733,"diff_hunk":"@@ -22,11 +22,38 @@ public Agenda save(Agenda agenda) {\n         return agenda;\n     }\n \n+    private void resetId() {\n+        id = 1;\n+    }\n+\n     public Agenda getAgenda(int id) {\n         return agendaMap.get(id);\n     }\n \n     public List<Agenda> getAgendas() {\n         return new ArrayList<>(agendaMap.values());\n     }\n+\n+    /**\n+     * 1つのアジェンダを削除する\n+     * @param id 削除するアジェンダのid\n+     * @return true;削除できた場合\n+     * false:削除できなかった場合\n+     */\n+    public boolean deleteAgenda(int id) {\n+        if (agendaMap.remove(id) == null) {\n+            return false;\n+        }\n+        return true;","path":"src/main/java/jp/co/esm/novicetimer/repository/AgendaRepository.java","position":26,"original_position":26,"commit_id":"6644c7975ee4222ea5df31907dd76cd12f8f961b","original_commit_id":"6644c7975ee4222ea5df31907dd76cd12f8f961b","user":{"login":"t-kunou","id":9004986,"avatar_url":"https://avatars2.githubusercontent.com/u/9004986?v=4","gravatar_id":"","url":"https://api.github.com/users/t-kunou","html_url":"https://github.com/t-kunou","followers_url":"https://api.github.com/users/t-kunou/followers","following_url":"https://api.github.com/users/t-kunou/following{/other_user}","gists_url":"https://api.github.com/users/t-kunou/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kunou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kunou/subscriptions","organizations_url":"https://api.github.com/users/t-kunou/orgs","repos_url":"https://api.github.com/users/t-kunou/repos","events_url":"https://api.github.com/users/t-kunou/events{/privacy}","received_events_url":"https://api.github.com/users/t-kunou/received_events","type":"User","site_admin":false},"body":"```java\r\nreturn agendaMap.remove(id) != null\r\n```","created_at":"2017-07-25T08:50:55Z","updated_at":"2017-07-25T08:50:56Z","html_url":"https://github.com/esm-bits/novice-timer/pull/43#discussion_r129246733","pull_request_url":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/esm-bits/novice-timer/pulls/comments/129246733"},"html":{"href":"https://github.com/esm-bits/novice-timer/pull/43#discussion_r129246733"},"pull_request":{"href":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43","id":132214588,"html_url":"https://github.com/esm-bits/novice-timer/pull/43","diff_url":"https://github.com/esm-bits/novice-timer/pull/43.diff","patch_url":"https://github.com/esm-bits/novice-timer/pull/43.patch","issue_url":"https://api.github.com/repos/esm-bits/novice-timer/issues/43","number":43,"state":"open","locked":false,"title":"登録済みのアジェンダを削除する機能の追加","user":{"login":"hironoriohashi","id":27398594,"avatar_url":"https://avatars2.githubusercontent.com/u/27398594?v=4","gravatar_id":"","url":"https://api.github.com/users/hironoriohashi","html_url":"https://github.com/hironoriohashi","followers_url":"https://api.github.com/users/hironoriohashi/followers","following_url":"https://api.github.com/users/hironoriohashi/following{/other_user}","gists_url":"https://api.github.com/users/hironoriohashi/gists{/gist_id}","starred_url":"https://api.github.com/users/hironoriohashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hironoriohashi/subscriptions","organizations_url":"https://api.github.com/users/hironoriohashi/orgs","repos_url":"https://api.github.com/users/hironoriohashi/repos","events_url":"https://api.github.com/users/hironoriohashi/events{/privacy}","received_events_url":"https://api.github.com/users/hironoriohashi/received_events","type":"User","site_admin":false},"body":"#30 close","created_at":"2017-07-25T07:36:05Z","updated_at":"2017-07-25T08:50:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daa5f30c1ad936c5f6f1baa5820cdcfc1e8bf666","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43/commits","review_comments_url":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43/comments","review_comment_url":"https://api.github.com/repos/esm-bits/novice-timer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esm-bits/novice-timer/issues/43/comments","statuses_url":"https://api.github.com/repos/esm-bits/novice-timer/statuses/6644c7975ee4222ea5df31907dd76cd12f8f961b","head":{"label":"esm-bits:DeleteAgenda","ref":"DeleteAgenda","sha":"6644c7975ee4222ea5df31907dd76cd12f8f961b","user":{"login":"esm-bits","id":22883905,"avatar_url":"https://avatars2.githubusercontent.com/u/22883905?v=4","gravatar_id":"","url":"https://api.github.com/users/esm-bits","html_url":"https://github.com/esm-bits","followers_url":"https://api.github.com/users/esm-bits/followers","following_url":"https://api.github.com/users/esm-bits/following{/other_user}","gists_url":"https://api.github.com/users/esm-bits/gists{/gist_id}","starred_url":"https://api.github.com/users/esm-bits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esm-bits/subscriptions","organizations_url":"https://api.github.com/users/esm-bits/orgs","repos_url":"https://api.github.com/users/esm-bits/repos","events_url":"https://api.github.com/users/esm-bits/events{/privacy}","received_events_url":"https://api.github.com/users/esm-bits/received_events","type":"Organization","site_admin":false},"repo":{"id":94190500,"name":"novice-timer","full_name":"esm-bits/novice-timer","owner":{"login":"esm-bits","id":22883905,"avatar_url":"https://avatars2.githubusercontent.com/u/22883905?v=4","gravatar_id":"","url":"https://api.github.com/users/esm-bits","html_url":"https://github.com/esm-bits","followers_url":"https://api.github.com/users/esm-bits/followers","following_url":"https://api.github.com/users/esm-bits/following{/other_user}","gists_url":"https://api.github.com/users/esm-bits/gists{/gist_id}","starred_url":"https://api.github.com/users/esm-bits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esm-bits/subscriptions","organizations_url":"https://api.github.com/users/esm-bits/orgs","repos_url":"https://api.github.com/users/esm-bits/repos","events_url":"https://api.github.com/users/esm-bits/events{/privacy}","received_events_url":"https://api.github.com/users/esm-bits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esm-bits/novice-timer","description":null,"fork":false,"url":"https://api.github.com/repos/esm-bits/novice-timer","forks_url":"https://api.github.com/repos/esm-bits/novice-timer/forks","keys_url":"https://api.github.com/repos/esm-bits/novice-timer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esm-bits/novice-timer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esm-bits/novice-timer/teams","hooks_url":"https://api.github.com/repos/esm-bits/novice-timer/hooks","issue_events_url":"https://api.github.com/repos/esm-bits/novice-timer/issues/events{/number}","events_url":"https://api.github.com/repos/esm-bits/novice-timer/events","assignees_url":"https://api.github.com/repos/esm-bits/novice-timer/assignees{/user}","branches_url":"https://api.github.com/repos/esm-bits/novice-timer/branches{/branch}","tags_url":"https://api.github.com/repos/esm-bits/novice-timer/tags","blobs_url":"https://api.github.com/repos/esm-bits/novice-timer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esm-bits/novice-timer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esm-bits/novice-timer/git/refs{/sha}","trees_url":"https://api.github.com/repos/esm-bits/novice-timer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esm-bits/novice-timer/statuses/{sha}","languages_url":"https://api.github.com/repos/esm-bits/novice-timer/languages","stargazers_url":"https://api.github.com/repos/esm-bits/novice-timer/stargazers","contributors_url":"https://api.github.com/repos/esm-bits/novice-timer/contributors","subscribers_url":"https://api.github.com/repos/esm-bits/novice-timer/subscribers","subscription_url":"https://api.github.com/repos/esm-bits/novice-timer/subscription","commits_url":"https://api.github.com/repos/esm-bits/novice-timer/commits{/sha}","git_commits_url":"https://api.github.com/repos/esm-bits/novice-timer/git/commits{/sha}","comments_url":"https://api.github.com/repos/esm-bits/novice-timer/comments{/number}","issue_comment_url":"https://api.github.com/repos/esm-bits/novice-timer/issues/comments{/number}","contents_url":"https://api.github.com/repos/esm-bits/novice-timer/contents/{+path}","compare_url":"https://api.github.com/repos/esm-bits/novice-timer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esm-bits/novice-timer/merges","archive_url":"https://api.github.com/repos/esm-bits/novice-timer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esm-bits/novice-timer/downloads","issues_url":"https://api.github.com/repos/esm-bits/novice-timer/issues{/number}","pulls_url":"https://api.github.com/repos/esm-bits/novice-timer/pulls{/number}","milestones_url":"https://api.github.com/repos/esm-bits/novice-timer/milestones{/number}","notifications_url":"https://api.github.com/repos/esm-bits/novice-timer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esm-bits/novice-timer/labels{/name}","releases_url":"https://api.github.com/repos/esm-bits/novice-timer/releases{/id}","deployments_url":"https://api.github.com/repos/esm-bits/novice-timer/deployments","created_at":"2017-06-13T08:39:49Z","updated_at":"2017-06-19T05:05:52Z","pushed_at":"2017-07-25T08:15:56Z","git_url":"git://github.com/esm-bits/novice-timer.git","ssh_url":"git@github.com:esm-bits/novice-timer.git","clone_url":"https://github.com/esm-bits/novice-timer.git","svn_url":"https://github.com/esm-bits/novice-timer","homepage":null,"size":235,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":1,"default_branch":"master"}},"base":{"label":"esm-bits:master","ref":"master","sha":"d919d9f254608fdaaa12452f4a9ec01054048116","user":{"login":"esm-bits","id":22883905,"avatar_url":"https://avatars2.githubusercontent.com/u/22883905?v=4","gravatar_id":"","url":"https://api.github.com/users/esm-bits","html_url":"https://github.com/esm-bits","followers_url":"https://api.github.com/users/esm-bits/followers","following_url":"https://api.github.com/users/esm-bits/following{/other_user}","gists_url":"https://api.github.com/users/esm-bits/gists{/gist_id}","starred_url":"https://api.github.com/users/esm-bits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esm-bits/subscriptions","organizations_url":"https://api.github.com/users/esm-bits/orgs","repos_url":"https://api.github.com/users/esm-bits/repos","events_url":"https://api.github.com/users/esm-bits/events{/privacy}","received_events_url":"https://api.github.com/users/esm-bits/received_events","type":"Organization","site_admin":false},"repo":{"id":94190500,"name":"novice-timer","full_name":"esm-bits/novice-timer","owner":{"login":"esm-bits","id":22883905,"avatar_url":"https://avatars2.githubusercontent.com/u/22883905?v=4","gravatar_id":"","url":"https://api.github.com/users/esm-bits","html_url":"https://github.com/esm-bits","followers_url":"https://api.github.com/users/esm-bits/followers","following_url":"https://api.github.com/users/esm-bits/following{/other_user}","gists_url":"https://api.github.com/users/esm-bits/gists{/gist_id}","starred_url":"https://api.github.com/users/esm-bits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esm-bits/subscriptions","organizations_url":"https://api.github.com/users/esm-bits/orgs","repos_url":"https://api.github.com/users/esm-bits/repos","events_url":"https://api.github.com/users/esm-bits/events{/privacy}","received_events_url":"https://api.github.com/users/esm-bits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esm-bits/novice-timer","description":null,"fork":false,"url":"https://api.github.com/repos/esm-bits/novice-timer","forks_url":"https://api.github.com/repos/esm-bits/novice-timer/forks","keys_url":"https://api.github.com/repos/esm-bits/novice-timer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esm-bits/novice-timer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esm-bits/novice-timer/teams","hooks_url":"https://api.github.com/repos/esm-bits/novice-timer/hooks","issue_events_url":"https://api.github.com/repos/esm-bits/novice-timer/issues/events{/number}","events_url":"https://api.github.com/repos/esm-bits/novice-timer/events","assignees_url":"https://api.github.com/repos/esm-bits/novice-timer/assignees{/user}","branches_url":"https://api.github.com/repos/esm-bits/novice-timer/branches{/branch}","tags_url":"https://api.github.com/repos/esm-bits/novice-timer/tags","blobs_url":"https://api.github.com/repos/esm-bits/novice-timer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esm-bits/novice-timer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esm-bits/novice-timer/git/refs{/sha}","trees_url":"https://api.github.com/repos/esm-bits/novice-timer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esm-bits/novice-timer/statuses/{sha}","languages_url":"https://api.github.com/repos/esm-bits/novice-timer/languages","stargazers_url":"https://api.github.com/repos/esm-bits/novice-timer/stargazers","contributors_url":"https://api.github.com/repos/esm-bits/novice-timer/contributors","subscribers_url":"https://api.github.com/repos/esm-bits/novice-timer/subscribers","subscription_url":"https://api.github.com/repos/esm-bits/novice-timer/subscription","commits_url":"https://api.github.com/repos/esm-bits/novice-timer/commits{/sha}","git_commits_url":"https://api.github.com/repos/esm-bits/novice-timer/git/commits{/sha}","comments_url":"https://api.github.com/repos/esm-bits/novice-timer/comments{/number}","issue_comment_url":"https://api.github.com/repos/esm-bits/novice-timer/issues/comments{/number}","contents_url":"https://api.github.com/repos/esm-bits/novice-timer/contents/{+path}","compare_url":"https://api.github.com/repos/esm-bits/novice-timer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esm-bits/novice-timer/merges","archive_url":"https://api.github.com/repos/esm-bits/novice-timer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esm-bits/novice-timer/downloads","issues_url":"https://api.github.com/repos/esm-bits/novice-timer/issues{/number}","pulls_url":"https://api.github.com/repos/esm-bits/novice-timer/pulls{/number}","milestones_url":"https://api.github.com/repos/esm-bits/novice-timer/milestones{/number}","notifications_url":"https://api.github.com/repos/esm-bits/novice-timer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esm-bits/novice-timer/labels{/name}","releases_url":"https://api.github.com/repos/esm-bits/novice-timer/releases{/id}","deployments_url":"https://api.github.com/repos/esm-bits/novice-timer/deployments","created_at":"2017-06-13T08:39:49Z","updated_at":"2017-06-19T05:05:52Z","pushed_at":"2017-07-25T08:15:56Z","git_url":"git://github.com/esm-bits/novice-timer.git","ssh_url":"git@github.com:esm-bits/novice-timer.git","clone_url":"https://github.com/esm-bits/novice-timer.git","svn_url":"https://github.com/esm-bits/novice-timer","homepage":null,"size":235,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43"},"html":{"href":"https://github.com/esm-bits/novice-timer/pull/43"},"issue":{"href":"https://api.github.com/repos/esm-bits/novice-timer/issues/43"},"comments":{"href":"https://api.github.com/repos/esm-bits/novice-timer/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/esm-bits/novice-timer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esm-bits/novice-timer/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/esm-bits/novice-timer/statuses/6644c7975ee4222ea5df31907dd76cd12f8f961b"}}}}
{"actor":{"display_login":"t-kunou"}}