{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments/205642620","pull_request_review_id":140956251,"id":205642620,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTY0MjYyMA==","diff_hunk":"@@ -8,26 +8,44 @@\n \n import Foundation\n \n-func main() {\n-    print(\"좌표를 입력하세요.\")\n-    let input:String? = readLine()\n-    guard let inputValue = input else {\n-        print(\"입력값이 비어 있습니다. 다시 입력하세요.\")\n-        return main()\n+// coordinates 개수에 따라 분류하는 함수\n+private func selectShape(coordinates:[MyPoint]) -> Bool {\n+    switch coordinates.count {\n+    case 1: // point\n+        let valueX = coordinates[0].valueX\n+        let valueY = coordinates[0].valueY\n+        OutputView.drawAxis()\n+        let point = MyPoint.init(x: valueX, y: valueY)\n+        OutputView.printCoordinateMyPoint(point: point)\n+        return false\n+    case 2: // line\n+        let valueX = coordinates[0]\n+        let valueY = coordinates[1]\n+        OutputView.drawAxis()\n+        let point = MyLine.init(pointA: valueX, pointB: valueY)\n+        OutputView.printCoordinateMyLine(line: point)\n+        return false","path":"CoordinateCalculator/CoordinateCalculator/main.swift","position":26,"original_position":26,"commit_id":"17c2eae66495fcf86e88841e83946bec67d78db5","original_commit_id":"17c2eae66495fcf86e88841e83946bec67d78db5","user":{"login":"oingbong","id":18322197,"node_id":"MDQ6VXNlcjE4MzIyMTk3","avatar_url":"https://avatars2.githubusercontent.com/u/18322197?v=4","gravatar_id":"","url":"https://api.github.com/users/oingbong","html_url":"https://github.com/oingbong","followers_url":"https://api.github.com/users/oingbong/followers","following_url":"https://api.github.com/users/oingbong/following{/other_user}","gists_url":"https://api.github.com/users/oingbong/gists{/gist_id}","starred_url":"https://api.github.com/users/oingbong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oingbong/subscriptions","organizations_url":"https://api.github.com/users/oingbong/orgs","repos_url":"https://api.github.com/users/oingbong/repos","events_url":"https://api.github.com/users/oingbong/events{/privacy}","received_events_url":"https://api.github.com/users/oingbong/received_events","type":"User","site_admin":false},"body":"다음 단계에서 같이 수정해보고 싶습니다.","created_at":"2018-07-27T00:54:57Z","updated_at":"2018-07-27T00:55:02Z","html_url":"https://github.com/code-squad/swift-coordinate/pull/106#discussion_r205642620","pull_request_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments/205642620"},"html":{"href":"https://github.com/code-squad/swift-coordinate/pull/106#discussion_r205642620"},"pull_request":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106"}},"in_reply_to_id":205641842},"pull_request":{"url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106","id":203588768,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNTg4NzY4","html_url":"https://github.com/code-squad/swift-coordinate/pull/106","diff_url":"https://github.com/code-squad/swift-coordinate/pull/106.diff","patch_url":"https://github.com/code-squad/swift-coordinate/pull/106.patch","issue_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/106","number":106,"state":"open","locked":false,"title":"Coordinate step3","user":{"login":"oingbong","id":18322197,"node_id":"MDQ6VXNlcjE4MzIyMTk3","avatar_url":"https://avatars2.githubusercontent.com/u/18322197?v=4","gravatar_id":"","url":"https://api.github.com/users/oingbong","html_url":"https://github.com/oingbong","followers_url":"https://api.github.com/users/oingbong/followers","following_url":"https://api.github.com/users/oingbong/following{/other_user}","gists_url":"https://api.github.com/users/oingbong/gists{/gist_id}","starred_url":"https://api.github.com/users/oingbong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oingbong/subscriptions","organizations_url":"https://api.github.com/users/oingbong/orgs","repos_url":"https://api.github.com/users/oingbong/repos","events_url":"https://api.github.com/users/oingbong/events{/privacy}","received_events_url":"https://api.github.com/users/oingbong/received_events","type":"User","site_admin":false},"body":"3단계 요구조건에 따른 코드 수정","created_at":"2018-07-24T16:41:14Z","updated_at":"2018-07-27T00:55:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a516ecc0d1aac3d68f592e9b943029aa095bd3b6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106/commits","review_comments_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106/comments","review_comment_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/106/comments","statuses_url":"https://api.github.com/repos/code-squad/swift-coordinate/statuses/17c2eae66495fcf86e88841e83946bec67d78db5","head":{"label":"oingbong:coordinate-step3","ref":"coordinate-step3","sha":"17c2eae66495fcf86e88841e83946bec67d78db5","user":{"login":"oingbong","id":18322197,"node_id":"MDQ6VXNlcjE4MzIyMTk3","avatar_url":"https://avatars2.githubusercontent.com/u/18322197?v=4","gravatar_id":"","url":"https://api.github.com/users/oingbong","html_url":"https://github.com/oingbong","followers_url":"https://api.github.com/users/oingbong/followers","following_url":"https://api.github.com/users/oingbong/following{/other_user}","gists_url":"https://api.github.com/users/oingbong/gists{/gist_id}","starred_url":"https://api.github.com/users/oingbong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oingbong/subscriptions","organizations_url":"https://api.github.com/users/oingbong/orgs","repos_url":"https://api.github.com/users/oingbong/repos","events_url":"https://api.github.com/users/oingbong/events{/privacy}","received_events_url":"https://api.github.com/users/oingbong/received_events","type":"User","site_admin":false},"repo":{"id":141981344,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE5ODEzNDQ=","name":"swift-coordinate","full_name":"oingbong/swift-coordinate","owner":{"login":"oingbong","id":18322197,"node_id":"MDQ6VXNlcjE4MzIyMTk3","avatar_url":"https://avatars2.githubusercontent.com/u/18322197?v=4","gravatar_id":"","url":"https://api.github.com/users/oingbong","html_url":"https://github.com/oingbong","followers_url":"https://api.github.com/users/oingbong/followers","following_url":"https://api.github.com/users/oingbong/following{/other_user}","gists_url":"https://api.github.com/users/oingbong/gists{/gist_id}","starred_url":"https://api.github.com/users/oingbong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oingbong/subscriptions","organizations_url":"https://api.github.com/users/oingbong/orgs","repos_url":"https://api.github.com/users/oingbong/repos","events_url":"https://api.github.com/users/oingbong/events{/privacy}","received_events_url":"https://api.github.com/users/oingbong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oingbong/swift-coordinate","description":"좌표계산기_저장소","fork":true,"url":"https://api.github.com/repos/oingbong/swift-coordinate","forks_url":"https://api.github.com/repos/oingbong/swift-coordinate/forks","keys_url":"https://api.github.com/repos/oingbong/swift-coordinate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oingbong/swift-coordinate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oingbong/swift-coordinate/teams","hooks_url":"https://api.github.com/repos/oingbong/swift-coordinate/hooks","issue_events_url":"https://api.github.com/repos/oingbong/swift-coordinate/issues/events{/number}","events_url":"https://api.github.com/repos/oingbong/swift-coordinate/events","assignees_url":"https://api.github.com/repos/oingbong/swift-coordinate/assignees{/user}","branches_url":"https://api.github.com/repos/oingbong/swift-coordinate/branches{/branch}","tags_url":"https://api.github.com/repos/oingbong/swift-coordinate/tags","blobs_url":"https://api.github.com/repos/oingbong/swift-coordinate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oingbong/swift-coordinate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oingbong/swift-coordinate/git/refs{/sha}","trees_url":"https://api.github.com/repos/oingbong/swift-coordinate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oingbong/swift-coordinate/statuses/{sha}","languages_url":"https://api.github.com/repos/oingbong/swift-coordinate/languages","stargazers_url":"https://api.github.com/repos/oingbong/swift-coordinate/stargazers","contributors_url":"https://api.github.com/repos/oingbong/swift-coordinate/contributors","subscribers_url":"https://api.github.com/repos/oingbong/swift-coordinate/subscribers","subscription_url":"https://api.github.com/repos/oingbong/swift-coordinate/subscription","commits_url":"https://api.github.com/repos/oingbong/swift-coordinate/commits{/sha}","git_commits_url":"https://api.github.com/repos/oingbong/swift-coordinate/git/commits{/sha}","comments_url":"https://api.github.com/repos/oingbong/swift-coordinate/comments{/number}","issue_comment_url":"https://api.github.com/repos/oingbong/swift-coordinate/issues/comments{/number}","contents_url":"https://api.github.com/repos/oingbong/swift-coordinate/contents/{+path}","compare_url":"https://api.github.com/repos/oingbong/swift-coordinate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oingbong/swift-coordinate/merges","archive_url":"https://api.github.com/repos/oingbong/swift-coordinate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oingbong/swift-coordinate/downloads","issues_url":"https://api.github.com/repos/oingbong/swift-coordinate/issues{/number}","pulls_url":"https://api.github.com/repos/oingbong/swift-coordinate/pulls{/number}","milestones_url":"https://api.github.com/repos/oingbong/swift-coordinate/milestones{/number}","notifications_url":"https://api.github.com/repos/oingbong/swift-coordinate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oingbong/swift-coordinate/labels{/name}","releases_url":"https://api.github.com/repos/oingbong/swift-coordinate/releases{/id}","deployments_url":"https://api.github.com/repos/oingbong/swift-coordinate/deployments","created_at":"2018-07-23T07:58:06Z","updated_at":"2018-07-23T07:58:08Z","pushed_at":"2018-07-26T08:46:05Z","git_url":"git://github.com/oingbong/swift-coordinate.git","ssh_url":"git@github.com:oingbong/swift-coordinate.git","clone_url":"https://github.com/oingbong/swift-coordinate.git","svn_url":"https://github.com/oingbong/swift-coordinate","homepage":null,"size":3473,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"code-squad:oingbong","ref":"oingbong","sha":"4f4f2d1c5a14b3fcf3832a4550fc7f8bef30cde7","user":{"login":"code-squad","id":22832280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODMyMjgw","avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"repo":{"id":106258411,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYyNTg0MTE=","name":"swift-coordinate","full_name":"code-squad/swift-coordinate","owner":{"login":"code-squad","id":22832280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODMyMjgw","avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-squad/swift-coordinate","description":"좌표계산기_저장소","fork":false,"url":"https://api.github.com/repos/code-squad/swift-coordinate","forks_url":"https://api.github.com/repos/code-squad/swift-coordinate/forks","keys_url":"https://api.github.com/repos/code-squad/swift-coordinate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/swift-coordinate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/swift-coordinate/teams","hooks_url":"https://api.github.com/repos/code-squad/swift-coordinate/hooks","issue_events_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/swift-coordinate/events","assignees_url":"https://api.github.com/repos/code-squad/swift-coordinate/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/swift-coordinate/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/swift-coordinate/tags","blobs_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/swift-coordinate/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/swift-coordinate/languages","stargazers_url":"https://api.github.com/repos/code-squad/swift-coordinate/stargazers","contributors_url":"https://api.github.com/repos/code-squad/swift-coordinate/contributors","subscribers_url":"https://api.github.com/repos/code-squad/swift-coordinate/subscribers","subscription_url":"https://api.github.com/repos/code-squad/swift-coordinate/subscription","commits_url":"https://api.github.com/repos/code-squad/swift-coordinate/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/swift-coordinate/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/swift-coordinate/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/swift-coordinate/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/swift-coordinate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/swift-coordinate/merges","archive_url":"https://api.github.com/repos/code-squad/swift-coordinate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/swift-coordinate/downloads","issues_url":"https://api.github.com/repos/code-squad/swift-coordinate/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/swift-coordinate/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/swift-coordinate/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/swift-coordinate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/swift-coordinate/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/swift-coordinate/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/swift-coordinate/deployments","created_at":"2017-10-09T08:45:05Z","updated_at":"2018-07-12T09:09:19Z","pushed_at":"2018-07-26T09:57:43Z","git_url":"git://github.com/code-squad/swift-coordinate.git","ssh_url":"git@github.com:code-squad/swift-coordinate.git","clone_url":"https://github.com/code-squad/swift-coordinate.git","svn_url":"https://github.com/code-squad/swift-coordinate","homepage":null,"size":3482,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":20,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106"},"html":{"href":"https://github.com/code-squad/swift-coordinate/pull/106"},"issue":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/issues/106"},"comments":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/swift-coordinate/statuses/17c2eae66495fcf86e88841e83946bec67d78db5"}},"author_association":"NONE"}}
{"actor":{"display_login":"oingbong"}}