{"action":"created","comment":{"url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/comments/328342082","pull_request_review_id":293365453,"id":328342082,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyODM0MjA4Mg==","diff_hunk":"@@ -0,0 +1,82 @@\n+document.addEventListener(\"DOMContentLoaded\",() =>{\n+    console.log(\"page loaded\");\n+    fetchMovies()\n+    SelectMovie()\n+\n+})\n+\n+function fetchMovies(){\n+    const url = \"https://ghibliapi.herokuapp.com/films\"\n+    // axios.get(url).then((response)=>{\n+    //     response.data\n+    //     })\n+    \n+    fetch(url).then(response =>{\n+        return response.json() \n+        //console.log(response)\n+    })\n+    .then(data => {\n+        let pick = data\n+        console.log(pick[0])\n+        let selection = document.querySelector(\"select\");\n+        \n+        for(movie in pick){\n+            let title = document.createElement(\"option\");\n+            title.value = pick[movie].title;\n+            title.innerText = pick[movie].title;\n+            selection.appendChild(title);\n+\n+        }\n+    })\n+}\n+\n+function SelectMovie(){\n+    \n+    const url = \"https://ghibliapi.herokuapp.com/films\"   \n+    fetch(url).then(response =>{\n+        return response.json() \n+    })\n+    .then(data => {\n+        let pick = data\n+        console.log(pick[0])","path":"assesment.js","position":41,"original_position":41,"commit_id":"d88e3ba423026eebb64e4c1144499b6f295a2faf","original_commit_id":"d88e3ba423026eebb64e4c1144499b6f295a2faf","user":{"login":"alejo4373","id":18352555,"node_id":"MDQ6VXNlcjE4MzUyNTU1","avatar_url":"https://avatars3.githubusercontent.com/u/18352555?v=4","gravatar_id":"","url":"https://api.github.com/users/alejo4373","html_url":"https://github.com/alejo4373","followers_url":"https://api.github.com/users/alejo4373/followers","following_url":"https://api.github.com/users/alejo4373/following{/other_user}","gists_url":"https://api.github.com/users/alejo4373/gists{/gist_id}","starred_url":"https://api.github.com/users/alejo4373/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejo4373/subscriptions","organizations_url":"https://api.github.com/users/alejo4373/orgs","repos_url":"https://api.github.com/users/alejo4373/repos","events_url":"https://api.github.com/users/alejo4373/events{/privacy}","received_events_url":"https://api.github.com/users/alejo4373/received_events","type":"User","site_admin":false},"body":"Don't forget `.catch` for whenever you are dealing with promises in this case given by `fetch`","created_at":"2019-09-25T21:10:04Z","updated_at":"2019-09-25T21:14:00Z","html_url":"https://github.com/joinpursuit/unit_2_assessment/pull/8#discussion_r328342082","pull_request_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/comments/328342082"},"html":{"href":"https://github.com/joinpursuit/unit_2_assessment/pull/8#discussion_r328342082"},"pull_request":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8"}},"in_reply_to_id":328341755},"pull_request":{"url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8","id":320074787,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIwMDc0Nzg3","html_url":"https://github.com/joinpursuit/unit_2_assessment/pull/8","diff_url":"https://github.com/joinpursuit/unit_2_assessment/pull/8.diff","patch_url":"https://github.com/joinpursuit/unit_2_assessment/pull/8.patch","issue_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues/8","number":8,"state":"open","locked":false,"title":"unit 2 assesment","user":{"login":"Jaiden16","id":52264114,"node_id":"MDQ6VXNlcjUyMjY0MTE0","avatar_url":"https://avatars1.githubusercontent.com/u/52264114?v=4","gravatar_id":"","url":"https://api.github.com/users/Jaiden16","html_url":"https://github.com/Jaiden16","followers_url":"https://api.github.com/users/Jaiden16/followers","following_url":"https://api.github.com/users/Jaiden16/following{/other_user}","gists_url":"https://api.github.com/users/Jaiden16/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaiden16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaiden16/subscriptions","organizations_url":"https://api.github.com/users/Jaiden16/orgs","repos_url":"https://api.github.com/users/Jaiden16/repos","events_url":"https://api.github.com/users/Jaiden16/events{/privacy}","received_events_url":"https://api.github.com/users/Jaiden16/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-09-22T19:23:09Z","updated_at":"2019-09-25T21:14:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a850eb71347abfbdce451e58e5cf0bac60992695","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8/commits","review_comments_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8/comments","review_comment_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues/8/comments","statuses_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/statuses/d88e3ba423026eebb64e4c1144499b6f295a2faf","head":{"label":"Jaiden16:master","ref":"master","sha":"d88e3ba423026eebb64e4c1144499b6f295a2faf","user":{"login":"Jaiden16","id":52264114,"node_id":"MDQ6VXNlcjUyMjY0MTE0","avatar_url":"https://avatars1.githubusercontent.com/u/52264114?v=4","gravatar_id":"","url":"https://api.github.com/users/Jaiden16","html_url":"https://github.com/Jaiden16","followers_url":"https://api.github.com/users/Jaiden16/followers","following_url":"https://api.github.com/users/Jaiden16/following{/other_user}","gists_url":"https://api.github.com/users/Jaiden16/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaiden16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaiden16/subscriptions","organizations_url":"https://api.github.com/users/Jaiden16/orgs","repos_url":"https://api.github.com/users/Jaiden16/repos","events_url":"https://api.github.com/users/Jaiden16/events{/privacy}","received_events_url":"https://api.github.com/users/Jaiden16/received_events","type":"User","site_admin":false},"repo":{"id":210158997,"node_id":"MDEwOlJlcG9zaXRvcnkyMTAxNTg5OTc=","name":"unit_2_assessment","full_name":"Jaiden16/unit_2_assessment","private":false,"owner":{"login":"Jaiden16","id":52264114,"node_id":"MDQ6VXNlcjUyMjY0MTE0","avatar_url":"https://avatars1.githubusercontent.com/u/52264114?v=4","gravatar_id":"","url":"https://api.github.com/users/Jaiden16","html_url":"https://github.com/Jaiden16","followers_url":"https://api.github.com/users/Jaiden16/followers","following_url":"https://api.github.com/users/Jaiden16/following{/other_user}","gists_url":"https://api.github.com/users/Jaiden16/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaiden16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaiden16/subscriptions","organizations_url":"https://api.github.com/users/Jaiden16/orgs","repos_url":"https://api.github.com/users/Jaiden16/repos","events_url":"https://api.github.com/users/Jaiden16/events{/privacy}","received_events_url":"https://api.github.com/users/Jaiden16/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Jaiden16/unit_2_assessment","description":null,"fork":true,"url":"https://api.github.com/repos/Jaiden16/unit_2_assessment","forks_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/forks","keys_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/teams","hooks_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/hooks","issue_events_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/issues/events{/number}","events_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/events","assignees_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/assignees{/user}","branches_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/branches{/branch}","tags_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/tags","blobs_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/statuses/{sha}","languages_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/languages","stargazers_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/stargazers","contributors_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/contributors","subscribers_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/subscribers","subscription_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/subscription","commits_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/contents/{+path}","compare_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/merges","archive_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/downloads","issues_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/issues{/number}","pulls_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/pulls{/number}","milestones_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/milestones{/number}","notifications_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/labels{/name}","releases_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/releases{/id}","deployments_url":"https://api.github.com/repos/Jaiden16/unit_2_assessment/deployments","created_at":"2019-09-22T14:16:29Z","updated_at":"2019-09-22T19:22:24Z","pushed_at":"2019-09-22T19:22:23Z","git_url":"git://github.com/Jaiden16/unit_2_assessment.git","ssh_url":"git@github.com:Jaiden16/unit_2_assessment.git","clone_url":"https://github.com/Jaiden16/unit_2_assessment.git","svn_url":"https://github.com/Jaiden16/unit_2_assessment","homepage":null,"size":190,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"joinpursuit:master","ref":"master","sha":"1814173226cd4e433a0c422961b28d4bc0e9a5e5","user":{"login":"joinpursuit","id":5825944,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4MjU5NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5825944?v=4","gravatar_id":"","url":"https://api.github.com/users/joinpursuit","html_url":"https://github.com/joinpursuit","followers_url":"https://api.github.com/users/joinpursuit/followers","following_url":"https://api.github.com/users/joinpursuit/following{/other_user}","gists_url":"https://api.github.com/users/joinpursuit/gists{/gist_id}","starred_url":"https://api.github.com/users/joinpursuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joinpursuit/subscriptions","organizations_url":"https://api.github.com/users/joinpursuit/orgs","repos_url":"https://api.github.com/users/joinpursuit/repos","events_url":"https://api.github.com/users/joinpursuit/events{/privacy}","received_events_url":"https://api.github.com/users/joinpursuit/received_events","type":"Organization","site_admin":false},"repo":{"id":158266972,"node_id":"MDEwOlJlcG9zaXRvcnkxNTgyNjY5NzI=","name":"unit_2_assessment","full_name":"joinpursuit/unit_2_assessment","private":false,"owner":{"login":"joinpursuit","id":5825944,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4MjU5NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5825944?v=4","gravatar_id":"","url":"https://api.github.com/users/joinpursuit","html_url":"https://github.com/joinpursuit","followers_url":"https://api.github.com/users/joinpursuit/followers","following_url":"https://api.github.com/users/joinpursuit/following{/other_user}","gists_url":"https://api.github.com/users/joinpursuit/gists{/gist_id}","starred_url":"https://api.github.com/users/joinpursuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joinpursuit/subscriptions","organizations_url":"https://api.github.com/users/joinpursuit/orgs","repos_url":"https://api.github.com/users/joinpursuit/repos","events_url":"https://api.github.com/users/joinpursuit/events{/privacy}","received_events_url":"https://api.github.com/users/joinpursuit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/joinpursuit/unit_2_assessment","description":null,"fork":false,"url":"https://api.github.com/repos/joinpursuit/unit_2_assessment","forks_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/forks","keys_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/teams","hooks_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/hooks","issue_events_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues/events{/number}","events_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/events","assignees_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/assignees{/user}","branches_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/branches{/branch}","tags_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/tags","blobs_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/statuses/{sha}","languages_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/languages","stargazers_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/stargazers","contributors_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/contributors","subscribers_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/subscribers","subscription_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/subscription","commits_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/contents/{+path}","compare_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/merges","archive_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/downloads","issues_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues{/number}","pulls_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls{/number}","milestones_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/milestones{/number}","notifications_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/labels{/name}","releases_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/releases{/id}","deployments_url":"https://api.github.com/repos/joinpursuit/unit_2_assessment/deployments","created_at":"2018-11-19T17:44:21Z","updated_at":"2019-09-22T14:09:10Z","pushed_at":"2019-09-25T21:05:25Z","git_url":"git://github.com/joinpursuit/unit_2_assessment.git","ssh_url":"git@github.com:joinpursuit/unit_2_assessment.git","clone_url":"https://github.com/joinpursuit/unit_2_assessment.git","svn_url":"https://github.com/joinpursuit/unit_2_assessment","homepage":null,"size":190,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":31,"license":null,"forks":32,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8"},"html":{"href":"https://github.com/joinpursuit/unit_2_assessment/pull/8"},"issue":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues/8"},"comments":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/joinpursuit/unit_2_assessment/statuses/d88e3ba423026eebb64e4c1144499b6f295a2faf"}},"author_association":"NONE"}}
{"actor":{"display_login":"alejo4373"}}