{"action":"created","comment":{"url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/comments/94127642","pull_request_review_id":14658146,"id":94127642,"diff_hunk":"@@ -0,0 +1,29 @@\n+\n+var triangle1Area = getTriangleArea(4, 11);\n+console.log(\"Powierzchnia 1 trójkąta: \", (triangle1Area) )\n+var triangle2Area = getTriangleArea(2, -8);\n+console.log(\"Powierzchnia 2 trójkąta: \", (triangle2Area) )\n+var triangle3Area = getTriangleArea(7, 7);\n+console.log(\"Powierzchnia 3 trójkąta: \", (triangle3Area) )\n+\n+function getTriangleArea(a, h) {\n+        \n+    if ( (a < 0) || (h < 0) ) \n+            console.log('Nieprawidłowe dane');\n+    return (a* h/2)\n+        ","path":"js/scripts.js","position":14,"original_position":14,"commit_id":"cc8ea9e6e3fe991d377fca3b1a015183d406d68c","original_commit_id":"cc8ea9e6e3fe991d377fca3b1a015183d406d68c","user":{"login":"mentor-kk","id":19983779,"avatar_url":"https://avatars.githubusercontent.com/u/19983779?v=3","gravatar_id":"","url":"https://api.github.com/users/mentor-kk","html_url":"https://github.com/mentor-kk","followers_url":"https://api.github.com/users/mentor-kk/followers","following_url":"https://api.github.com/users/mentor-kk/following{/other_user}","gists_url":"https://api.github.com/users/mentor-kk/gists{/gist_id}","starred_url":"https://api.github.com/users/mentor-kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mentor-kk/subscriptions","organizations_url":"https://api.github.com/users/mentor-kk/orgs","repos_url":"https://api.github.com/users/mentor-kk/repos","events_url":"https://api.github.com/users/mentor-kk/events{/privacy}","received_events_url":"https://api.github.com/users/mentor-kk/received_events","type":"User","site_admin":false},"body":"kod nieczytelny, popraw formatowanie, dodaj klamry przy warunku `if`\r\n\r\npo nawiasie i przed jego końcem nie dajemy spacji, poprawna wersja `if (a < 0 || h <0) { ...`\r\n\r\ndodaj obsługę błędów - tzn jeśli, któraś z wartości jest mniejsza od zera, pokaż błąd w konsoli","created_at":"2016-12-29T11:41:24Z","updated_at":"2016-12-29T11:42:09Z","html_url":"https://github.com/benice195/Mod_8_JavaScript/pull/4#discussion_r94127642","pull_request_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/comments/94127642"},"html":{"href":"https://github.com/benice195/Mod_8_JavaScript/pull/4#discussion_r94127642"},"pull_request":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4","id":99453452,"html_url":"https://github.com/benice195/Mod_8_JavaScript/pull/4","diff_url":"https://github.com/benice195/Mod_8_JavaScript/pull/4.diff","patch_url":"https://github.com/benice195/Mod_8_JavaScript/pull/4.patch","issue_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/4","number":4,"state":"open","locked":false,"title":"Funkcje JavaScript","user":{"login":"benice195","id":24593812,"avatar_url":"https://avatars.githubusercontent.com/u/24593812?v=3","gravatar_id":"","url":"https://api.github.com/users/benice195","html_url":"https://github.com/benice195","followers_url":"https://api.github.com/users/benice195/followers","following_url":"https://api.github.com/users/benice195/following{/other_user}","gists_url":"https://api.github.com/users/benice195/gists{/gist_id}","starred_url":"https://api.github.com/users/benice195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benice195/subscriptions","organizations_url":"https://api.github.com/users/benice195/orgs","repos_url":"https://api.github.com/users/benice195/repos","events_url":"https://api.github.com/users/benice195/events{/privacy}","received_events_url":"https://api.github.com/users/benice195/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-27T15:05:51Z","updated_at":"2016-12-29T11:42:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c20e0bfb50f83727afab02332b8fb466984c8ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4/commits","review_comments_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4/comments","review_comment_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/4/comments","statuses_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/statuses/cc8ea9e6e3fe991d377fca3b1a015183d406d68c","head":{"label":"benice195:Zad_8.4_JS","ref":"Zad_8.4_JS","sha":"cc8ea9e6e3fe991d377fca3b1a015183d406d68c","user":{"login":"benice195","id":24593812,"avatar_url":"https://avatars.githubusercontent.com/u/24593812?v=3","gravatar_id":"","url":"https://api.github.com/users/benice195","html_url":"https://github.com/benice195","followers_url":"https://api.github.com/users/benice195/followers","following_url":"https://api.github.com/users/benice195/following{/other_user}","gists_url":"https://api.github.com/users/benice195/gists{/gist_id}","starred_url":"https://api.github.com/users/benice195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benice195/subscriptions","organizations_url":"https://api.github.com/users/benice195/orgs","repos_url":"https://api.github.com/users/benice195/repos","events_url":"https://api.github.com/users/benice195/events{/privacy}","received_events_url":"https://api.github.com/users/benice195/received_events","type":"User","site_admin":false},"repo":{"id":77446795,"name":"Mod_8_JavaScript","full_name":"benice195/Mod_8_JavaScript","owner":{"login":"benice195","id":24593812,"avatar_url":"https://avatars.githubusercontent.com/u/24593812?v=3","gravatar_id":"","url":"https://api.github.com/users/benice195","html_url":"https://github.com/benice195","followers_url":"https://api.github.com/users/benice195/followers","following_url":"https://api.github.com/users/benice195/following{/other_user}","gists_url":"https://api.github.com/users/benice195/gists{/gist_id}","starred_url":"https://api.github.com/users/benice195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benice195/subscriptions","organizations_url":"https://api.github.com/users/benice195/orgs","repos_url":"https://api.github.com/users/benice195/repos","events_url":"https://api.github.com/users/benice195/events{/privacy}","received_events_url":"https://api.github.com/users/benice195/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benice195/Mod_8_JavaScript","description":"Zadania z modułu 8","fork":false,"url":"https://api.github.com/repos/benice195/Mod_8_JavaScript","forks_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/forks","keys_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/teams","hooks_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/hooks","issue_events_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/events{/number}","events_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/events","assignees_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/assignees{/user}","branches_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/branches{/branch}","tags_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/tags","blobs_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/statuses/{sha}","languages_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/languages","stargazers_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/stargazers","contributors_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/contributors","subscribers_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/subscribers","subscription_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/subscription","commits_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/contents/{+path}","compare_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/merges","archive_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/downloads","issues_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues{/number}","pulls_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls{/number}","milestones_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/milestones{/number}","notifications_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/labels{/name}","releases_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/releases{/id}","deployments_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/deployments","created_at":"2016-12-27T10:20:39Z","updated_at":"2016-12-27T10:28:56Z","pushed_at":"2016-12-29T11:14:08Z","git_url":"git://github.com/benice195/Mod_8_JavaScript.git","ssh_url":"git@github.com:benice195/Mod_8_JavaScript.git","clone_url":"https://github.com/benice195/Mod_8_JavaScript.git","svn_url":"https://github.com/benice195/Mod_8_JavaScript","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"benice195:master","ref":"master","sha":"0cda3a4a4d79f1aa3959ef6ba92e8eadd5ce521b","user":{"login":"benice195","id":24593812,"avatar_url":"https://avatars.githubusercontent.com/u/24593812?v=3","gravatar_id":"","url":"https://api.github.com/users/benice195","html_url":"https://github.com/benice195","followers_url":"https://api.github.com/users/benice195/followers","following_url":"https://api.github.com/users/benice195/following{/other_user}","gists_url":"https://api.github.com/users/benice195/gists{/gist_id}","starred_url":"https://api.github.com/users/benice195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benice195/subscriptions","organizations_url":"https://api.github.com/users/benice195/orgs","repos_url":"https://api.github.com/users/benice195/repos","events_url":"https://api.github.com/users/benice195/events{/privacy}","received_events_url":"https://api.github.com/users/benice195/received_events","type":"User","site_admin":false},"repo":{"id":77446795,"name":"Mod_8_JavaScript","full_name":"benice195/Mod_8_JavaScript","owner":{"login":"benice195","id":24593812,"avatar_url":"https://avatars.githubusercontent.com/u/24593812?v=3","gravatar_id":"","url":"https://api.github.com/users/benice195","html_url":"https://github.com/benice195","followers_url":"https://api.github.com/users/benice195/followers","following_url":"https://api.github.com/users/benice195/following{/other_user}","gists_url":"https://api.github.com/users/benice195/gists{/gist_id}","starred_url":"https://api.github.com/users/benice195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benice195/subscriptions","organizations_url":"https://api.github.com/users/benice195/orgs","repos_url":"https://api.github.com/users/benice195/repos","events_url":"https://api.github.com/users/benice195/events{/privacy}","received_events_url":"https://api.github.com/users/benice195/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benice195/Mod_8_JavaScript","description":"Zadania z modułu 8","fork":false,"url":"https://api.github.com/repos/benice195/Mod_8_JavaScript","forks_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/forks","keys_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/teams","hooks_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/hooks","issue_events_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/events{/number}","events_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/events","assignees_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/assignees{/user}","branches_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/branches{/branch}","tags_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/tags","blobs_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/statuses/{sha}","languages_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/languages","stargazers_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/stargazers","contributors_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/contributors","subscribers_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/subscribers","subscription_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/subscription","commits_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/contents/{+path}","compare_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/merges","archive_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/downloads","issues_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues{/number}","pulls_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls{/number}","milestones_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/milestones{/number}","notifications_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/labels{/name}","releases_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/releases{/id}","deployments_url":"https://api.github.com/repos/benice195/Mod_8_JavaScript/deployments","created_at":"2016-12-27T10:20:39Z","updated_at":"2016-12-27T10:28:56Z","pushed_at":"2016-12-29T11:14:08Z","git_url":"git://github.com/benice195/Mod_8_JavaScript.git","ssh_url":"git@github.com:benice195/Mod_8_JavaScript.git","clone_url":"https://github.com/benice195/Mod_8_JavaScript.git","svn_url":"https://github.com/benice195/Mod_8_JavaScript","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4"},"html":{"href":"https://github.com/benice195/Mod_8_JavaScript/pull/4"},"issue":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/4"},"comments":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/benice195/Mod_8_JavaScript/statuses/cc8ea9e6e3fe991d377fca3b1a015183d406d68c"}}}}
{"actor":{"display_login":"mentor-kk"}}