{"action":"created","comment":{"url":"https://api.github.com/repos/next-step/java-lotto/pulls/comments/231499732","pull_request_review_id":172482049,"id":231499732,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTQ5OTczMg==","diff_hunk":"@@ -20,26 +19,27 @@\n \t\tthis.money = money;\n \t}\n \n-\tpublic static Prize of(int matchCount) {\n+\tpublic static Prize of(int matchCount, boolean hasBonusNumber) {\n \t\treturn Arrays.stream(Prize.values())\n \t\t\t\t.filter(prize -> prize.isSameMatchCount(matchCount))\n+\t\t\t\t.filter(prize -> !prize.equals(SECOND) || hasBonusNumber) // 2등 확인 로직\n \t\t\t\t.findFirst()\n-\t\t\t\t.orElseThrow(() -> new IllegalArgumentException(\"일치하는 상금이 존재하지 않습니다.\"));\n+\t\t\t\t.orElse(NO_MATCH);\n \t}\n \n \tprivate boolean isSameMatchCount(int matchCount) {\n \t\treturn this.matchCount == matchCount;\n \t}\n \n+\tpublic int sumMoney(int totalMoney) {","path":"src/main/java/lotto/enums/Prize.java","position":36,"original_position":36,"commit_id":"a19c8a2360e0332c0b24ff07cff9f9266ac6af62","original_commit_id":"a19c8a2360e0332c0b24ff07cff9f9266ac6af62","user":{"login":"javajigi","id":520500,"node_id":"MDQ6VXNlcjUyMDUwMA==","avatar_url":"https://avatars2.githubusercontent.com/u/520500?v=4","gravatar_id":"","url":"https://api.github.com/users/javajigi","html_url":"https://github.com/javajigi","followers_url":"https://api.github.com/users/javajigi/followers","following_url":"https://api.github.com/users/javajigi/following{/other_user}","gists_url":"https://api.github.com/users/javajigi/gists{/gist_id}","starred_url":"https://api.github.com/users/javajigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javajigi/subscriptions","organizations_url":"https://api.github.com/users/javajigi/orgs","repos_url":"https://api.github.com/users/javajigi/repos","events_url":"https://api.github.com/users/javajigi/events{/privacy}","received_events_url":"https://api.github.com/users/javajigi/received_events","type":"User","site_admin":false},"body":"👍 ","created_at":"2018-11-07T13:19:28Z","updated_at":"2018-11-07T13:20:57Z","html_url":"https://github.com/next-step/java-lotto/pull/3#discussion_r231499732","pull_request_url":"https://api.github.com/repos/next-step/java-lotto/pulls/3","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/next-step/java-lotto/pulls/comments/231499732"},"html":{"href":"https://github.com/next-step/java-lotto/pull/3#discussion_r231499732"},"pull_request":{"href":"https://api.github.com/repos/next-step/java-lotto/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/next-step/java-lotto/pulls/3","id":228939099,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4OTM5MDk5","html_url":"https://github.com/next-step/java-lotto/pull/3","diff_url":"https://github.com/next-step/java-lotto/pull/3.diff","patch_url":"https://github.com/next-step/java-lotto/pull/3.patch","issue_url":"https://api.github.com/repos/next-step/java-lotto/issues/3","number":3,"state":"open","locked":false,"title":"로또 2단계 구현","user":{"login":"hongsii","id":23633847,"node_id":"MDQ6VXNlcjIzNjMzODQ3","avatar_url":"https://avatars2.githubusercontent.com/u/23633847?v=4","gravatar_id":"","url":"https://api.github.com/users/hongsii","html_url":"https://github.com/hongsii","followers_url":"https://api.github.com/users/hongsii/followers","following_url":"https://api.github.com/users/hongsii/following{/other_user}","gists_url":"https://api.github.com/users/hongsii/gists{/gist_id}","starred_url":"https://api.github.com/users/hongsii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongsii/subscriptions","organizations_url":"https://api.github.com/users/hongsii/orgs","repos_url":"https://api.github.com/users/hongsii/repos","events_url":"https://api.github.com/users/hongsii/events{/privacy}","received_events_url":"https://api.github.com/users/hongsii/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-07T07:29:26Z","updated_at":"2018-11-07T13:20:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"452a2c007e0a5a07e2e9efffb7591a354487f41e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/next-step/java-lotto/pulls/3/commits","review_comments_url":"https://api.github.com/repos/next-step/java-lotto/pulls/3/comments","review_comment_url":"https://api.github.com/repos/next-step/java-lotto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/next-step/java-lotto/issues/3/comments","statuses_url":"https://api.github.com/repos/next-step/java-lotto/statuses/a19c8a2360e0332c0b24ff07cff9f9266ac6af62","head":{"label":"hongsii:step2","ref":"step2","sha":"a19c8a2360e0332c0b24ff07cff9f9266ac6af62","user":{"login":"hongsii","id":23633847,"node_id":"MDQ6VXNlcjIzNjMzODQ3","avatar_url":"https://avatars2.githubusercontent.com/u/23633847?v=4","gravatar_id":"","url":"https://api.github.com/users/hongsii","html_url":"https://github.com/hongsii","followers_url":"https://api.github.com/users/hongsii/followers","following_url":"https://api.github.com/users/hongsii/following{/other_user}","gists_url":"https://api.github.com/users/hongsii/gists{/gist_id}","starred_url":"https://api.github.com/users/hongsii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongsii/subscriptions","organizations_url":"https://api.github.com/users/hongsii/orgs","repos_url":"https://api.github.com/users/hongsii/repos","events_url":"https://api.github.com/users/hongsii/events{/privacy}","received_events_url":"https://api.github.com/users/hongsii/received_events","type":"User","site_admin":false},"repo":{"id":156300991,"node_id":"MDEwOlJlcG9zaXRvcnkxNTYzMDA5OTE=","name":"java-lotto","full_name":"hongsii/java-lotto","private":false,"owner":{"login":"hongsii","id":23633847,"node_id":"MDQ6VXNlcjIzNjMzODQ3","avatar_url":"https://avatars2.githubusercontent.com/u/23633847?v=4","gravatar_id":"","url":"https://api.github.com/users/hongsii","html_url":"https://github.com/hongsii","followers_url":"https://api.github.com/users/hongsii/followers","following_url":"https://api.github.com/users/hongsii/following{/other_user}","gists_url":"https://api.github.com/users/hongsii/gists{/gist_id}","starred_url":"https://api.github.com/users/hongsii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongsii/subscriptions","organizations_url":"https://api.github.com/users/hongsii/orgs","repos_url":"https://api.github.com/users/hongsii/repos","events_url":"https://api.github.com/users/hongsii/events{/privacy}","received_events_url":"https://api.github.com/users/hongsii/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hongsii/java-lotto","description":"로또 게임 구현을 관리하는 저장소","fork":true,"url":"https://api.github.com/repos/hongsii/java-lotto","forks_url":"https://api.github.com/repos/hongsii/java-lotto/forks","keys_url":"https://api.github.com/repos/hongsii/java-lotto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hongsii/java-lotto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hongsii/java-lotto/teams","hooks_url":"https://api.github.com/repos/hongsii/java-lotto/hooks","issue_events_url":"https://api.github.com/repos/hongsii/java-lotto/issues/events{/number}","events_url":"https://api.github.com/repos/hongsii/java-lotto/events","assignees_url":"https://api.github.com/repos/hongsii/java-lotto/assignees{/user}","branches_url":"https://api.github.com/repos/hongsii/java-lotto/branches{/branch}","tags_url":"https://api.github.com/repos/hongsii/java-lotto/tags","blobs_url":"https://api.github.com/repos/hongsii/java-lotto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hongsii/java-lotto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hongsii/java-lotto/git/refs{/sha}","trees_url":"https://api.github.com/repos/hongsii/java-lotto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hongsii/java-lotto/statuses/{sha}","languages_url":"https://api.github.com/repos/hongsii/java-lotto/languages","stargazers_url":"https://api.github.com/repos/hongsii/java-lotto/stargazers","contributors_url":"https://api.github.com/repos/hongsii/java-lotto/contributors","subscribers_url":"https://api.github.com/repos/hongsii/java-lotto/subscribers","subscription_url":"https://api.github.com/repos/hongsii/java-lotto/subscription","commits_url":"https://api.github.com/repos/hongsii/java-lotto/commits{/sha}","git_commits_url":"https://api.github.com/repos/hongsii/java-lotto/git/commits{/sha}","comments_url":"https://api.github.com/repos/hongsii/java-lotto/comments{/number}","issue_comment_url":"https://api.github.com/repos/hongsii/java-lotto/issues/comments{/number}","contents_url":"https://api.github.com/repos/hongsii/java-lotto/contents/{+path}","compare_url":"https://api.github.com/repos/hongsii/java-lotto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hongsii/java-lotto/merges","archive_url":"https://api.github.com/repos/hongsii/java-lotto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hongsii/java-lotto/downloads","issues_url":"https://api.github.com/repos/hongsii/java-lotto/issues{/number}","pulls_url":"https://api.github.com/repos/hongsii/java-lotto/pulls{/number}","milestones_url":"https://api.github.com/repos/hongsii/java-lotto/milestones{/number}","notifications_url":"https://api.github.com/repos/hongsii/java-lotto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hongsii/java-lotto/labels{/name}","releases_url":"https://api.github.com/repos/hongsii/java-lotto/releases{/id}","deployments_url":"https://api.github.com/repos/hongsii/java-lotto/deployments","created_at":"2018-11-06T00:12:39Z","updated_at":"2018-11-06T00:12:41Z","pushed_at":"2018-11-07T07:28:37Z","git_url":"git://github.com/hongsii/java-lotto.git","ssh_url":"git@github.com:hongsii/java-lotto.git","clone_url":"https://github.com/hongsii/java-lotto.git","svn_url":"https://github.com/hongsii/java-lotto","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"next-step:hongsii","ref":"hongsii","sha":"817e7ce968512d4a116284a616390a92613684b2","user":{"login":"next-step","id":25274995,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1Mjc0OTk1","avatar_url":"https://avatars0.githubusercontent.com/u/25274995?v=4","gravatar_id":"","url":"https://api.github.com/users/next-step","html_url":"https://github.com/next-step","followers_url":"https://api.github.com/users/next-step/followers","following_url":"https://api.github.com/users/next-step/following{/other_user}","gists_url":"https://api.github.com/users/next-step/gists{/gist_id}","starred_url":"https://api.github.com/users/next-step/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/next-step/subscriptions","organizations_url":"https://api.github.com/users/next-step/orgs","repos_url":"https://api.github.com/users/next-step/repos","events_url":"https://api.github.com/users/next-step/events{/privacy}","received_events_url":"https://api.github.com/users/next-step/received_events","type":"Organization","site_admin":false},"repo":{"id":154407696,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0MDc2OTY=","name":"java-lotto","full_name":"next-step/java-lotto","private":false,"owner":{"login":"next-step","id":25274995,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1Mjc0OTk1","avatar_url":"https://avatars0.githubusercontent.com/u/25274995?v=4","gravatar_id":"","url":"https://api.github.com/users/next-step","html_url":"https://github.com/next-step","followers_url":"https://api.github.com/users/next-step/followers","following_url":"https://api.github.com/users/next-step/following{/other_user}","gists_url":"https://api.github.com/users/next-step/gists{/gist_id}","starred_url":"https://api.github.com/users/next-step/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/next-step/subscriptions","organizations_url":"https://api.github.com/users/next-step/orgs","repos_url":"https://api.github.com/users/next-step/repos","events_url":"https://api.github.com/users/next-step/events{/privacy}","received_events_url":"https://api.github.com/users/next-step/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/next-step/java-lotto","description":"로또 게임 구현을 관리하는 저장소","fork":false,"url":"https://api.github.com/repos/next-step/java-lotto","forks_url":"https://api.github.com/repos/next-step/java-lotto/forks","keys_url":"https://api.github.com/repos/next-step/java-lotto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/next-step/java-lotto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/next-step/java-lotto/teams","hooks_url":"https://api.github.com/repos/next-step/java-lotto/hooks","issue_events_url":"https://api.github.com/repos/next-step/java-lotto/issues/events{/number}","events_url":"https://api.github.com/repos/next-step/java-lotto/events","assignees_url":"https://api.github.com/repos/next-step/java-lotto/assignees{/user}","branches_url":"https://api.github.com/repos/next-step/java-lotto/branches{/branch}","tags_url":"https://api.github.com/repos/next-step/java-lotto/tags","blobs_url":"https://api.github.com/repos/next-step/java-lotto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/next-step/java-lotto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/next-step/java-lotto/git/refs{/sha}","trees_url":"https://api.github.com/repos/next-step/java-lotto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/next-step/java-lotto/statuses/{sha}","languages_url":"https://api.github.com/repos/next-step/java-lotto/languages","stargazers_url":"https://api.github.com/repos/next-step/java-lotto/stargazers","contributors_url":"https://api.github.com/repos/next-step/java-lotto/contributors","subscribers_url":"https://api.github.com/repos/next-step/java-lotto/subscribers","subscription_url":"https://api.github.com/repos/next-step/java-lotto/subscription","commits_url":"https://api.github.com/repos/next-step/java-lotto/commits{/sha}","git_commits_url":"https://api.github.com/repos/next-step/java-lotto/git/commits{/sha}","comments_url":"https://api.github.com/repos/next-step/java-lotto/comments{/number}","issue_comment_url":"https://api.github.com/repos/next-step/java-lotto/issues/comments{/number}","contents_url":"https://api.github.com/repos/next-step/java-lotto/contents/{+path}","compare_url":"https://api.github.com/repos/next-step/java-lotto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/next-step/java-lotto/merges","archive_url":"https://api.github.com/repos/next-step/java-lotto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/next-step/java-lotto/downloads","issues_url":"https://api.github.com/repos/next-step/java-lotto/issues{/number}","pulls_url":"https://api.github.com/repos/next-step/java-lotto/pulls{/number}","milestones_url":"https://api.github.com/repos/next-step/java-lotto/milestones{/number}","notifications_url":"https://api.github.com/repos/next-step/java-lotto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/next-step/java-lotto/labels{/name}","releases_url":"https://api.github.com/repos/next-step/java-lotto/releases{/id}","deployments_url":"https://api.github.com/repos/next-step/java-lotto/deployments","created_at":"2018-10-23T23:02:25Z","updated_at":"2018-11-06T00:10:36Z","pushed_at":"2018-11-07T12:37:01Z","git_url":"git://github.com/next-step/java-lotto.git","ssh_url":"git@github.com:next-step/java-lotto.git","clone_url":"https://github.com/next-step/java-lotto.git","svn_url":"https://github.com/next-step/java-lotto","homepage":null,"size":82,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":5,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/next-step/java-lotto/pulls/3"},"html":{"href":"https://github.com/next-step/java-lotto/pull/3"},"issue":{"href":"https://api.github.com/repos/next-step/java-lotto/issues/3"},"comments":{"href":"https://api.github.com/repos/next-step/java-lotto/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/next-step/java-lotto/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/next-step/java-lotto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/next-step/java-lotto/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/next-step/java-lotto/statuses/a19c8a2360e0332c0b24ff07cff9f9266ac6af62"}},"author_association":"NONE"}}
{"actor":{"display_login":"javajigi"}}