{"action":"created","comment":{"url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/comments/220198803","pull_request_review_id":158549790,"id":220198803,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDE5ODgwMw==","diff_hunk":"@@ -0,0 +1,182 @@\n+const baseUrlSearch = \"http://www.omdbapi.com/?apikey=305417ec&s=\";\n+const baseUrlSpecific = \"http://www.omdbapi.com/?apikey=305417ec&t=\";\n+const filmContainer = document.querySelector(\".films\");\n+\n+const formInput = document.querySelector(\"form\");\n+formInput.addEventListener(\"submit\", function(searchEvent) {\n+  filmContainer.innerHTML = \"\";\n+  searchEvent.preventDefault();\n+  let searchInput = document.querySelector(\".search__input\");\n+  refineUrl(searchInput.value);\n+});\n+\n+const refineUrl = search => {\n+  let pageNum = 1;","path":"index.js","position":14,"original_position":14,"commit_id":"88d26312923b38d175eb968cc06a4b7c17c114b5","original_commit_id":"88d26312923b38d175eb968cc06a4b7c17c114b5","user":{"login":"dmitrigrabov","id":102119,"node_id":"MDQ6VXNlcjEwMjExOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/102119?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrigrabov","html_url":"https://github.com/dmitrigrabov","followers_url":"https://api.github.com/users/dmitrigrabov/followers","following_url":"https://api.github.com/users/dmitrigrabov/following{/other_user}","gists_url":"https://api.github.com/users/dmitrigrabov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrigrabov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrigrabov/subscriptions","organizations_url":"https://api.github.com/users/dmitrigrabov/orgs","repos_url":"https://api.github.com/users/dmitrigrabov/repos","events_url":"https://api.github.com/users/dmitrigrabov/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrigrabov/received_events","type":"User","site_admin":false},"body":"Wouldn't pageNum be reset to 1 every time this function is called this making pageNum++ redundant","created_at":"2018-09-25T13:46:55Z","updated_at":"2018-09-25T13:46:55Z","html_url":"https://github.com/constructorlabs/project-cinema/pull/24#discussion_r220198803","pull_request_url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/comments/220198803"},"html":{"href":"https://github.com/constructorlabs/project-cinema/pull/24#discussion_r220198803"},"pull_request":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24","id":217599529,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NTk5NTI5","html_url":"https://github.com/constructorlabs/project-cinema/pull/24","diff_url":"https://github.com/constructorlabs/project-cinema/pull/24.diff","patch_url":"https://github.com/constructorlabs/project-cinema/pull/24.patch","issue_url":"https://api.github.com/repos/constructorlabs/project-cinema/issues/24","number":24,"state":"open","locked":false,"title":"Luke Sikuade Project Cinema","user":{"login":"ljsikuade","id":40580944,"node_id":"MDQ6VXNlcjQwNTgwOTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/40580944?v=4","gravatar_id":"","url":"https://api.github.com/users/ljsikuade","html_url":"https://github.com/ljsikuade","followers_url":"https://api.github.com/users/ljsikuade/followers","following_url":"https://api.github.com/users/ljsikuade/following{/other_user}","gists_url":"https://api.github.com/users/ljsikuade/gists{/gist_id}","starred_url":"https://api.github.com/users/ljsikuade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljsikuade/subscriptions","organizations_url":"https://api.github.com/users/ljsikuade/orgs","repos_url":"https://api.github.com/users/ljsikuade/repos","events_url":"https://api.github.com/users/ljsikuade/events{/privacy}","received_events_url":"https://api.github.com/users/ljsikuade/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-24T09:35:28Z","updated_at":"2018-09-25T13:46:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24/commits","review_comments_url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24/comments","review_comment_url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/constructorlabs/project-cinema/issues/24/comments","statuses_url":"https://api.github.com/repos/constructorlabs/project-cinema/statuses/88d26312923b38d175eb968cc06a4b7c17c114b5","head":{"label":"ljsikuade:master","ref":"master","sha":"88d26312923b38d175eb968cc06a4b7c17c114b5","user":{"login":"ljsikuade","id":40580944,"node_id":"MDQ6VXNlcjQwNTgwOTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/40580944?v=4","gravatar_id":"","url":"https://api.github.com/users/ljsikuade","html_url":"https://github.com/ljsikuade","followers_url":"https://api.github.com/users/ljsikuade/followers","following_url":"https://api.github.com/users/ljsikuade/following{/other_user}","gists_url":"https://api.github.com/users/ljsikuade/gists{/gist_id}","starred_url":"https://api.github.com/users/ljsikuade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljsikuade/subscriptions","organizations_url":"https://api.github.com/users/ljsikuade/orgs","repos_url":"https://api.github.com/users/ljsikuade/repos","events_url":"https://api.github.com/users/ljsikuade/events{/privacy}","received_events_url":"https://api.github.com/users/ljsikuade/received_events","type":"User","site_admin":false},"repo":{"id":149737129,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk3MzcxMjk=","name":"project-cinema","full_name":"ljsikuade/project-cinema","private":false,"owner":{"login":"ljsikuade","id":40580944,"node_id":"MDQ6VXNlcjQwNTgwOTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/40580944?v=4","gravatar_id":"","url":"https://api.github.com/users/ljsikuade","html_url":"https://github.com/ljsikuade","followers_url":"https://api.github.com/users/ljsikuade/followers","following_url":"https://api.github.com/users/ljsikuade/following{/other_user}","gists_url":"https://api.github.com/users/ljsikuade/gists{/gist_id}","starred_url":"https://api.github.com/users/ljsikuade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljsikuade/subscriptions","organizations_url":"https://api.github.com/users/ljsikuade/orgs","repos_url":"https://api.github.com/users/ljsikuade/repos","events_url":"https://api.github.com/users/ljsikuade/events{/privacy}","received_events_url":"https://api.github.com/users/ljsikuade/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ljsikuade/project-cinema","description":"Weekend take-home project for week 2 of Constructor Labs","fork":true,"url":"https://api.github.com/repos/ljsikuade/project-cinema","forks_url":"https://api.github.com/repos/ljsikuade/project-cinema/forks","keys_url":"https://api.github.com/repos/ljsikuade/project-cinema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ljsikuade/project-cinema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ljsikuade/project-cinema/teams","hooks_url":"https://api.github.com/repos/ljsikuade/project-cinema/hooks","issue_events_url":"https://api.github.com/repos/ljsikuade/project-cinema/issues/events{/number}","events_url":"https://api.github.com/repos/ljsikuade/project-cinema/events","assignees_url":"https://api.github.com/repos/ljsikuade/project-cinema/assignees{/user}","branches_url":"https://api.github.com/repos/ljsikuade/project-cinema/branches{/branch}","tags_url":"https://api.github.com/repos/ljsikuade/project-cinema/tags","blobs_url":"https://api.github.com/repos/ljsikuade/project-cinema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ljsikuade/project-cinema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ljsikuade/project-cinema/git/refs{/sha}","trees_url":"https://api.github.com/repos/ljsikuade/project-cinema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ljsikuade/project-cinema/statuses/{sha}","languages_url":"https://api.github.com/repos/ljsikuade/project-cinema/languages","stargazers_url":"https://api.github.com/repos/ljsikuade/project-cinema/stargazers","contributors_url":"https://api.github.com/repos/ljsikuade/project-cinema/contributors","subscribers_url":"https://api.github.com/repos/ljsikuade/project-cinema/subscribers","subscription_url":"https://api.github.com/repos/ljsikuade/project-cinema/subscription","commits_url":"https://api.github.com/repos/ljsikuade/project-cinema/commits{/sha}","git_commits_url":"https://api.github.com/repos/ljsikuade/project-cinema/git/commits{/sha}","comments_url":"https://api.github.com/repos/ljsikuade/project-cinema/comments{/number}","issue_comment_url":"https://api.github.com/repos/ljsikuade/project-cinema/issues/comments{/number}","contents_url":"https://api.github.com/repos/ljsikuade/project-cinema/contents/{+path}","compare_url":"https://api.github.com/repos/ljsikuade/project-cinema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ljsikuade/project-cinema/merges","archive_url":"https://api.github.com/repos/ljsikuade/project-cinema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ljsikuade/project-cinema/downloads","issues_url":"https://api.github.com/repos/ljsikuade/project-cinema/issues{/number}","pulls_url":"https://api.github.com/repos/ljsikuade/project-cinema/pulls{/number}","milestones_url":"https://api.github.com/repos/ljsikuade/project-cinema/milestones{/number}","notifications_url":"https://api.github.com/repos/ljsikuade/project-cinema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ljsikuade/project-cinema/labels{/name}","releases_url":"https://api.github.com/repos/ljsikuade/project-cinema/releases{/id}","deployments_url":"https://api.github.com/repos/ljsikuade/project-cinema/deployments","created_at":"2018-09-21T08:54:11Z","updated_at":"2018-09-24T08:42:42Z","pushed_at":"2018-09-24T08:42:41Z","git_url":"git://github.com/ljsikuade/project-cinema.git","ssh_url":"git@github.com:ljsikuade/project-cinema.git","clone_url":"https://github.com/ljsikuade/project-cinema.git","svn_url":"https://github.com/ljsikuade/project-cinema","homepage":"","size":117,"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,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"constructorlabs:master","ref":"master","sha":"131b4cd78a0ddf62b537981276edf04441917525","user":{"login":"constructorlabs","id":33395061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzMzk1MDYx","avatar_url":"https://avatars0.githubusercontent.com/u/33395061?v=4","gravatar_id":"","url":"https://api.github.com/users/constructorlabs","html_url":"https://github.com/constructorlabs","followers_url":"https://api.github.com/users/constructorlabs/followers","following_url":"https://api.github.com/users/constructorlabs/following{/other_user}","gists_url":"https://api.github.com/users/constructorlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/constructorlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constructorlabs/subscriptions","organizations_url":"https://api.github.com/users/constructorlabs/orgs","repos_url":"https://api.github.com/users/constructorlabs/repos","events_url":"https://api.github.com/users/constructorlabs/events{/privacy}","received_events_url":"https://api.github.com/users/constructorlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":119812605,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk4MTI2MDU=","name":"project-cinema","full_name":"constructorlabs/project-cinema","private":false,"owner":{"login":"constructorlabs","id":33395061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzMzk1MDYx","avatar_url":"https://avatars0.githubusercontent.com/u/33395061?v=4","gravatar_id":"","url":"https://api.github.com/users/constructorlabs","html_url":"https://github.com/constructorlabs","followers_url":"https://api.github.com/users/constructorlabs/followers","following_url":"https://api.github.com/users/constructorlabs/following{/other_user}","gists_url":"https://api.github.com/users/constructorlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/constructorlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constructorlabs/subscriptions","organizations_url":"https://api.github.com/users/constructorlabs/orgs","repos_url":"https://api.github.com/users/constructorlabs/repos","events_url":"https://api.github.com/users/constructorlabs/events{/privacy}","received_events_url":"https://api.github.com/users/constructorlabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/constructorlabs/project-cinema","description":"Weekend take-home project for week 3 of Constructor Labs","fork":false,"url":"https://api.github.com/repos/constructorlabs/project-cinema","forks_url":"https://api.github.com/repos/constructorlabs/project-cinema/forks","keys_url":"https://api.github.com/repos/constructorlabs/project-cinema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/constructorlabs/project-cinema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/constructorlabs/project-cinema/teams","hooks_url":"https://api.github.com/repos/constructorlabs/project-cinema/hooks","issue_events_url":"https://api.github.com/repos/constructorlabs/project-cinema/issues/events{/number}","events_url":"https://api.github.com/repos/constructorlabs/project-cinema/events","assignees_url":"https://api.github.com/repos/constructorlabs/project-cinema/assignees{/user}","branches_url":"https://api.github.com/repos/constructorlabs/project-cinema/branches{/branch}","tags_url":"https://api.github.com/repos/constructorlabs/project-cinema/tags","blobs_url":"https://api.github.com/repos/constructorlabs/project-cinema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/constructorlabs/project-cinema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/constructorlabs/project-cinema/git/refs{/sha}","trees_url":"https://api.github.com/repos/constructorlabs/project-cinema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/constructorlabs/project-cinema/statuses/{sha}","languages_url":"https://api.github.com/repos/constructorlabs/project-cinema/languages","stargazers_url":"https://api.github.com/repos/constructorlabs/project-cinema/stargazers","contributors_url":"https://api.github.com/repos/constructorlabs/project-cinema/contributors","subscribers_url":"https://api.github.com/repos/constructorlabs/project-cinema/subscribers","subscription_url":"https://api.github.com/repos/constructorlabs/project-cinema/subscription","commits_url":"https://api.github.com/repos/constructorlabs/project-cinema/commits{/sha}","git_commits_url":"https://api.github.com/repos/constructorlabs/project-cinema/git/commits{/sha}","comments_url":"https://api.github.com/repos/constructorlabs/project-cinema/comments{/number}","issue_comment_url":"https://api.github.com/repos/constructorlabs/project-cinema/issues/comments{/number}","contents_url":"https://api.github.com/repos/constructorlabs/project-cinema/contents/{+path}","compare_url":"https://api.github.com/repos/constructorlabs/project-cinema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/constructorlabs/project-cinema/merges","archive_url":"https://api.github.com/repos/constructorlabs/project-cinema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/constructorlabs/project-cinema/downloads","issues_url":"https://api.github.com/repos/constructorlabs/project-cinema/issues{/number}","pulls_url":"https://api.github.com/repos/constructorlabs/project-cinema/pulls{/number}","milestones_url":"https://api.github.com/repos/constructorlabs/project-cinema/milestones{/number}","notifications_url":"https://api.github.com/repos/constructorlabs/project-cinema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/constructorlabs/project-cinema/labels{/name}","releases_url":"https://api.github.com/repos/constructorlabs/project-cinema/releases{/id}","deployments_url":"https://api.github.com/repos/constructorlabs/project-cinema/deployments","created_at":"2018-02-01T09:21:16Z","updated_at":"2018-09-21T09:31:40Z","pushed_at":"2018-09-25T10:05:42Z","git_url":"git://github.com/constructorlabs/project-cinema.git","ssh_url":"git@github.com:constructorlabs/project-cinema.git","clone_url":"https://github.com/constructorlabs/project-cinema.git","svn_url":"https://github.com/constructorlabs/project-cinema","homepage":"","size":6,"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":45,"mirror_url":null,"archived":false,"open_issues_count":29,"license":null,"forks":45,"open_issues":29,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24"},"html":{"href":"https://github.com/constructorlabs/project-cinema/pull/24"},"issue":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/issues/24"},"comments":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/constructorlabs/project-cinema/statuses/88d26312923b38d175eb968cc06a4b7c17c114b5"}},"author_association":"NONE"}}
{"actor":{"display_login":"dmitrigrabov"}}