{"action":"created","comment":{"url":"https://api.github.com/repos/MyWashh/Quiz/pulls/comments/218351117","pull_request_review_id":156265461,"id":218351117,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODM1MTExNw==","diff_hunk":"@@ -43,6 +67,56 @@ final class QuizBoardViewController: UIViewController {\n //                button3.setTitle(anwsers[2], for: .normal)\n //                button4.setTitle(anwsers[3], for: .normal)\n     }\n+    \n+    func addQuestionToBase() {\n+    }\n+    \n+    func checkIfAnwserIsCorrect() {\n+        if(chosenAnwser == questions?[numberOfQuestion].correctAnwser) {","path":"quiz2/QuizBoardViewController.swift","position":65,"original_position":65,"commit_id":"52fbf7f1315d8ce7ea3ef734ee76ac25dd8ff593","original_commit_id":"52fbf7f1315d8ce7ea3ef734ee76ac25dd8ff593","user":{"login":"MiloszFilimowski","id":12846004,"node_id":"MDQ6VXNlcjEyODQ2MDA0","avatar_url":"https://avatars1.githubusercontent.com/u/12846004?v=4","gravatar_id":"","url":"https://api.github.com/users/MiloszFilimowski","html_url":"https://github.com/MiloszFilimowski","followers_url":"https://api.github.com/users/MiloszFilimowski/followers","following_url":"https://api.github.com/users/MiloszFilimowski/following{/other_user}","gists_url":"https://api.github.com/users/MiloszFilimowski/gists{/gist_id}","starred_url":"https://api.github.com/users/MiloszFilimowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiloszFilimowski/subscriptions","organizations_url":"https://api.github.com/users/MiloszFilimowski/orgs","repos_url":"https://api.github.com/users/MiloszFilimowski/repos","events_url":"https://api.github.com/users/MiloszFilimowski/events{/privacy}","received_events_url":"https://api.github.com/users/MiloszFilimowski/received_events","type":"User","site_admin":false},"body":"There should be a space after `if`, also parentheses are not needed. \r\nSee:\r\nhttps://github.com/raywenderlich/swift-style-guide#parentheses\r\nhttps://github.com/raywenderlich/swift-style-guide#spacing \r\n\r\nAlso what if number of question is greater than actual number of questions? Also I think the name is misleading here. You start with `numberOfQuestion = 0` and than add some numbers to it. This should be a constant in my opinion. I'd rename it to something like `currentQuestion` or something like that.","created_at":"2018-09-18T09:00:38Z","updated_at":"2018-09-18T09:05:21Z","html_url":"https://github.com/MyWashh/Quiz/pull/2#discussion_r218351117","pull_request_url":"https://api.github.com/repos/MyWashh/Quiz/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MyWashh/Quiz/pulls/comments/218351117"},"html":{"href":"https://github.com/MyWashh/Quiz/pull/2#discussion_r218351117"},"pull_request":{"href":"https://api.github.com/repos/MyWashh/Quiz/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/MyWashh/Quiz/pulls/2","id":216085824,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MDg1ODI0","html_url":"https://github.com/MyWashh/Quiz/pull/2","diff_url":"https://github.com/MyWashh/Quiz/pull/2.diff","patch_url":"https://github.com/MyWashh/Quiz/pull/2.patch","issue_url":"https://api.github.com/repos/MyWashh/Quiz/issues/2","number":2,"state":"open","locked":false,"title":"Add next question, points and restart quiz functionalities","user":{"login":"MyWashh","id":25863562,"node_id":"MDQ6VXNlcjI1ODYzNTYy","avatar_url":"https://avatars2.githubusercontent.com/u/25863562?v=4","gravatar_id":"","url":"https://api.github.com/users/MyWashh","html_url":"https://github.com/MyWashh","followers_url":"https://api.github.com/users/MyWashh/followers","following_url":"https://api.github.com/users/MyWashh/following{/other_user}","gists_url":"https://api.github.com/users/MyWashh/gists{/gist_id}","starred_url":"https://api.github.com/users/MyWashh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyWashh/subscriptions","organizations_url":"https://api.github.com/users/MyWashh/orgs","repos_url":"https://api.github.com/users/MyWashh/repos","events_url":"https://api.github.com/users/MyWashh/events{/privacy}","received_events_url":"https://api.github.com/users/MyWashh/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-17T19:16:16Z","updated_at":"2018-09-18T09:05:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ab12539f064c368606bbafb06687f3e09bcb535","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MyWashh/Quiz/pulls/2/commits","review_comments_url":"https://api.github.com/repos/MyWashh/Quiz/pulls/2/comments","review_comment_url":"https://api.github.com/repos/MyWashh/Quiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MyWashh/Quiz/issues/2/comments","statuses_url":"https://api.github.com/repos/MyWashh/Quiz/statuses/52fbf7f1315d8ce7ea3ef734ee76ac25dd8ff593","head":{"label":"MyWashh:quiz-Logic","ref":"quiz-Logic","sha":"52fbf7f1315d8ce7ea3ef734ee76ac25dd8ff593","user":{"login":"MyWashh","id":25863562,"node_id":"MDQ6VXNlcjI1ODYzNTYy","avatar_url":"https://avatars2.githubusercontent.com/u/25863562?v=4","gravatar_id":"","url":"https://api.github.com/users/MyWashh","html_url":"https://github.com/MyWashh","followers_url":"https://api.github.com/users/MyWashh/followers","following_url":"https://api.github.com/users/MyWashh/following{/other_user}","gists_url":"https://api.github.com/users/MyWashh/gists{/gist_id}","starred_url":"https://api.github.com/users/MyWashh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyWashh/subscriptions","organizations_url":"https://api.github.com/users/MyWashh/orgs","repos_url":"https://api.github.com/users/MyWashh/repos","events_url":"https://api.github.com/users/MyWashh/events{/privacy}","received_events_url":"https://api.github.com/users/MyWashh/received_events","type":"User","site_admin":false},"repo":{"id":149029550,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMjk1NTA=","name":"Quiz","full_name":"MyWashh/Quiz","private":false,"owner":{"login":"MyWashh","id":25863562,"node_id":"MDQ6VXNlcjI1ODYzNTYy","avatar_url":"https://avatars2.githubusercontent.com/u/25863562?v=4","gravatar_id":"","url":"https://api.github.com/users/MyWashh","html_url":"https://github.com/MyWashh","followers_url":"https://api.github.com/users/MyWashh/followers","following_url":"https://api.github.com/users/MyWashh/following{/other_user}","gists_url":"https://api.github.com/users/MyWashh/gists{/gist_id}","starred_url":"https://api.github.com/users/MyWashh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyWashh/subscriptions","organizations_url":"https://api.github.com/users/MyWashh/orgs","repos_url":"https://api.github.com/users/MyWashh/repos","events_url":"https://api.github.com/users/MyWashh/events{/privacy}","received_events_url":"https://api.github.com/users/MyWashh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MyWashh/Quiz","description":null,"fork":false,"url":"https://api.github.com/repos/MyWashh/Quiz","forks_url":"https://api.github.com/repos/MyWashh/Quiz/forks","keys_url":"https://api.github.com/repos/MyWashh/Quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyWashh/Quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyWashh/Quiz/teams","hooks_url":"https://api.github.com/repos/MyWashh/Quiz/hooks","issue_events_url":"https://api.github.com/repos/MyWashh/Quiz/issues/events{/number}","events_url":"https://api.github.com/repos/MyWashh/Quiz/events","assignees_url":"https://api.github.com/repos/MyWashh/Quiz/assignees{/user}","branches_url":"https://api.github.com/repos/MyWashh/Quiz/branches{/branch}","tags_url":"https://api.github.com/repos/MyWashh/Quiz/tags","blobs_url":"https://api.github.com/repos/MyWashh/Quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyWashh/Quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyWashh/Quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyWashh/Quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyWashh/Quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/MyWashh/Quiz/languages","stargazers_url":"https://api.github.com/repos/MyWashh/Quiz/stargazers","contributors_url":"https://api.github.com/repos/MyWashh/Quiz/contributors","subscribers_url":"https://api.github.com/repos/MyWashh/Quiz/subscribers","subscription_url":"https://api.github.com/repos/MyWashh/Quiz/subscription","commits_url":"https://api.github.com/repos/MyWashh/Quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyWashh/Quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyWashh/Quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyWashh/Quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyWashh/Quiz/contents/{+path}","compare_url":"https://api.github.com/repos/MyWashh/Quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyWashh/Quiz/merges","archive_url":"https://api.github.com/repos/MyWashh/Quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyWashh/Quiz/downloads","issues_url":"https://api.github.com/repos/MyWashh/Quiz/issues{/number}","pulls_url":"https://api.github.com/repos/MyWashh/Quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/MyWashh/Quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/MyWashh/Quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyWashh/Quiz/labels{/name}","releases_url":"https://api.github.com/repos/MyWashh/Quiz/releases{/id}","deployments_url":"https://api.github.com/repos/MyWashh/Quiz/deployments","created_at":"2018-09-16T19:40:03Z","updated_at":"2018-09-17T19:01:58Z","pushed_at":"2018-09-17T20:25:46Z","git_url":"git://github.com/MyWashh/Quiz.git","ssh_url":"git@github.com:MyWashh/Quiz.git","clone_url":"https://github.com/MyWashh/Quiz.git","svn_url":"https://github.com/MyWashh/Quiz","homepage":null,"size":22,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MyWashh:master","ref":"master","sha":"0bf125a7772543c055922623a40d97e84cfca34a","user":{"login":"MyWashh","id":25863562,"node_id":"MDQ6VXNlcjI1ODYzNTYy","avatar_url":"https://avatars2.githubusercontent.com/u/25863562?v=4","gravatar_id":"","url":"https://api.github.com/users/MyWashh","html_url":"https://github.com/MyWashh","followers_url":"https://api.github.com/users/MyWashh/followers","following_url":"https://api.github.com/users/MyWashh/following{/other_user}","gists_url":"https://api.github.com/users/MyWashh/gists{/gist_id}","starred_url":"https://api.github.com/users/MyWashh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyWashh/subscriptions","organizations_url":"https://api.github.com/users/MyWashh/orgs","repos_url":"https://api.github.com/users/MyWashh/repos","events_url":"https://api.github.com/users/MyWashh/events{/privacy}","received_events_url":"https://api.github.com/users/MyWashh/received_events","type":"User","site_admin":false},"repo":{"id":149029550,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMjk1NTA=","name":"Quiz","full_name":"MyWashh/Quiz","private":false,"owner":{"login":"MyWashh","id":25863562,"node_id":"MDQ6VXNlcjI1ODYzNTYy","avatar_url":"https://avatars2.githubusercontent.com/u/25863562?v=4","gravatar_id":"","url":"https://api.github.com/users/MyWashh","html_url":"https://github.com/MyWashh","followers_url":"https://api.github.com/users/MyWashh/followers","following_url":"https://api.github.com/users/MyWashh/following{/other_user}","gists_url":"https://api.github.com/users/MyWashh/gists{/gist_id}","starred_url":"https://api.github.com/users/MyWashh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyWashh/subscriptions","organizations_url":"https://api.github.com/users/MyWashh/orgs","repos_url":"https://api.github.com/users/MyWashh/repos","events_url":"https://api.github.com/users/MyWashh/events{/privacy}","received_events_url":"https://api.github.com/users/MyWashh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MyWashh/Quiz","description":null,"fork":false,"url":"https://api.github.com/repos/MyWashh/Quiz","forks_url":"https://api.github.com/repos/MyWashh/Quiz/forks","keys_url":"https://api.github.com/repos/MyWashh/Quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyWashh/Quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyWashh/Quiz/teams","hooks_url":"https://api.github.com/repos/MyWashh/Quiz/hooks","issue_events_url":"https://api.github.com/repos/MyWashh/Quiz/issues/events{/number}","events_url":"https://api.github.com/repos/MyWashh/Quiz/events","assignees_url":"https://api.github.com/repos/MyWashh/Quiz/assignees{/user}","branches_url":"https://api.github.com/repos/MyWashh/Quiz/branches{/branch}","tags_url":"https://api.github.com/repos/MyWashh/Quiz/tags","blobs_url":"https://api.github.com/repos/MyWashh/Quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyWashh/Quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyWashh/Quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyWashh/Quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyWashh/Quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/MyWashh/Quiz/languages","stargazers_url":"https://api.github.com/repos/MyWashh/Quiz/stargazers","contributors_url":"https://api.github.com/repos/MyWashh/Quiz/contributors","subscribers_url":"https://api.github.com/repos/MyWashh/Quiz/subscribers","subscription_url":"https://api.github.com/repos/MyWashh/Quiz/subscription","commits_url":"https://api.github.com/repos/MyWashh/Quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyWashh/Quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyWashh/Quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyWashh/Quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyWashh/Quiz/contents/{+path}","compare_url":"https://api.github.com/repos/MyWashh/Quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyWashh/Quiz/merges","archive_url":"https://api.github.com/repos/MyWashh/Quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyWashh/Quiz/downloads","issues_url":"https://api.github.com/repos/MyWashh/Quiz/issues{/number}","pulls_url":"https://api.github.com/repos/MyWashh/Quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/MyWashh/Quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/MyWashh/Quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyWashh/Quiz/labels{/name}","releases_url":"https://api.github.com/repos/MyWashh/Quiz/releases{/id}","deployments_url":"https://api.github.com/repos/MyWashh/Quiz/deployments","created_at":"2018-09-16T19:40:03Z","updated_at":"2018-09-17T19:01:58Z","pushed_at":"2018-09-17T20:25:46Z","git_url":"git://github.com/MyWashh/Quiz.git","ssh_url":"git@github.com:MyWashh/Quiz.git","clone_url":"https://github.com/MyWashh/Quiz.git","svn_url":"https://github.com/MyWashh/Quiz","homepage":null,"size":22,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MyWashh/Quiz/pulls/2"},"html":{"href":"https://github.com/MyWashh/Quiz/pull/2"},"issue":{"href":"https://api.github.com/repos/MyWashh/Quiz/issues/2"},"comments":{"href":"https://api.github.com/repos/MyWashh/Quiz/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/MyWashh/Quiz/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/MyWashh/Quiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MyWashh/Quiz/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/MyWashh/Quiz/statuses/52fbf7f1315d8ce7ea3ef734ee76ac25dd8ff593"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MiloszFilimowski"}}