{"action":"created","comment":{"url":"https://api.github.com/repos/andela/pibbble/pulls/comments/48972920","id":48972920,"diff_hunk":"@@ -0,0 +1,19 @@\n+function view(projectID, viewsValueOnThumbnail, viewsValueOnModal)\n+{\n+    if (window.XMLHttpRequest) {\n+        xmlhttp = new XMLHttpRequest();\n+    } else {\n+        xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n+    }\n+\n+    xmlhttp.onreadystatechange = function() {\n+        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\n+            var viewsCount = xmlhttp.responseText;\n+            document.getElementById(viewsValueOnThumbnail).innerHTML = viewsCount;\n+            document.getElementById(viewsValueOnModal).innerHTML = viewsCount;\n+        }\n+    };\n+\n+    xmlhttp.open(\"GET\", \"/project/view/\"+projectID, true);","path":"public/js/view.js","position":17,"original_position":17,"commit_id":"474c4a91f9875ae98a10a68a47e6258c5248b327","original_commit_id":"474c4a91f9875ae98a10a68a47e6258c5248b327","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'xmlhttp' is not defined.","created_at":"2016-01-06T16:04:06Z","updated_at":"2016-01-06T16:04:06Z","html_url":"https://github.com/andela/pibbble/pull/249#discussion_r48972920","pull_request_url":"https://api.github.com/repos/andela/pibbble/pulls/249","_links":{"self":{"href":"https://api.github.com/repos/andela/pibbble/pulls/comments/48972920"},"html":{"href":"https://github.com/andela/pibbble/pull/249#discussion_r48972920"},"pull_request":{"href":"https://api.github.com/repos/andela/pibbble/pulls/249"}}},"pull_request":{"url":"https://api.github.com/repos/andela/pibbble/pulls/249","id":55229202,"html_url":"https://github.com/andela/pibbble/pull/249","diff_url":"https://github.com/andela/pibbble/pull/249.diff","patch_url":"https://github.com/andela/pibbble/pull/249.patch","issue_url":"https://api.github.com/repos/andela/pibbble/issues/249","number":249,"state":"open","locked":false,"title":"[Feature #106189306] Implement project views count feature","user":{"login":"andela-womokoro","id":13233311,"avatar_url":"https://avatars.githubusercontent.com/u/13233311?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-womokoro","html_url":"https://github.com/andela-womokoro","followers_url":"https://api.github.com/users/andela-womokoro/followers","following_url":"https://api.github.com/users/andela-womokoro/following{/other_user}","gists_url":"https://api.github.com/users/andela-womokoro/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-womokoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-womokoro/subscriptions","organizations_url":"https://api.github.com/users/andela-womokoro/orgs","repos_url":"https://api.github.com/users/andela-womokoro/repos","events_url":"https://api.github.com/users/andela-womokoro/events{/privacy}","received_events_url":"https://api.github.com/users/andela-womokoro/received_events","type":"User","site_admin":false},"body":"Done with the project views count feature.","created_at":"2016-01-06T16:04:03Z","updated_at":"2016-01-06T16:04:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a0268271c300a9170808c79d7c7b5a6b3f2f328","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/pibbble/pulls/249/commits","review_comments_url":"https://api.github.com/repos/andela/pibbble/pulls/249/comments","review_comment_url":"https://api.github.com/repos/andela/pibbble/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/pibbble/issues/249/comments","statuses_url":"https://api.github.com/repos/andela/pibbble/statuses/474c4a91f9875ae98a10a68a47e6258c5248b327","head":{"label":"andela:feature/project-views","ref":"feature/project-views","sha":"474c4a91f9875ae98a10a68a47e6258c5248b327","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":40531533,"name":"pibbble","full_name":"andela/pibbble","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/pibbble","description":"Dribbble Clone for  Programmers ","fork":false,"url":"https://api.github.com/repos/andela/pibbble","forks_url":"https://api.github.com/repos/andela/pibbble/forks","keys_url":"https://api.github.com/repos/andela/pibbble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/pibbble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/pibbble/teams","hooks_url":"https://api.github.com/repos/andela/pibbble/hooks","issue_events_url":"https://api.github.com/repos/andela/pibbble/issues/events{/number}","events_url":"https://api.github.com/repos/andela/pibbble/events","assignees_url":"https://api.github.com/repos/andela/pibbble/assignees{/user}","branches_url":"https://api.github.com/repos/andela/pibbble/branches{/branch}","tags_url":"https://api.github.com/repos/andela/pibbble/tags","blobs_url":"https://api.github.com/repos/andela/pibbble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/pibbble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/pibbble/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/pibbble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/pibbble/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/pibbble/languages","stargazers_url":"https://api.github.com/repos/andela/pibbble/stargazers","contributors_url":"https://api.github.com/repos/andela/pibbble/contributors","subscribers_url":"https://api.github.com/repos/andela/pibbble/subscribers","subscription_url":"https://api.github.com/repos/andela/pibbble/subscription","commits_url":"https://api.github.com/repos/andela/pibbble/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/pibbble/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/pibbble/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/pibbble/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/pibbble/contents/{+path}","compare_url":"https://api.github.com/repos/andela/pibbble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/pibbble/merges","archive_url":"https://api.github.com/repos/andela/pibbble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/pibbble/downloads","issues_url":"https://api.github.com/repos/andela/pibbble/issues{/number}","pulls_url":"https://api.github.com/repos/andela/pibbble/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/pibbble/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/pibbble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/pibbble/labels{/name}","releases_url":"https://api.github.com/repos/andela/pibbble/releases{/id}","created_at":"2015-08-11T08:50:33Z","updated_at":"2015-10-28T13:36:51Z","pushed_at":"2016-01-06T16:04:03Z","git_url":"git://github.com/andela/pibbble.git","ssh_url":"git@github.com:andela/pibbble.git","clone_url":"https://github.com/andela/pibbble.git","svn_url":"https://github.com/andela/pibbble","homepage":"https://pibbble-staging.herokuapp.com/","size":9006,"stargazers_count":5,"watchers_count":5,"language":"CSS","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":5,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"d314e94ccf9e06819ab320ff534be72b3b073068","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":40531533,"name":"pibbble","full_name":"andela/pibbble","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/pibbble","description":"Dribbble Clone for  Programmers ","fork":false,"url":"https://api.github.com/repos/andela/pibbble","forks_url":"https://api.github.com/repos/andela/pibbble/forks","keys_url":"https://api.github.com/repos/andela/pibbble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/pibbble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/pibbble/teams","hooks_url":"https://api.github.com/repos/andela/pibbble/hooks","issue_events_url":"https://api.github.com/repos/andela/pibbble/issues/events{/number}","events_url":"https://api.github.com/repos/andela/pibbble/events","assignees_url":"https://api.github.com/repos/andela/pibbble/assignees{/user}","branches_url":"https://api.github.com/repos/andela/pibbble/branches{/branch}","tags_url":"https://api.github.com/repos/andela/pibbble/tags","blobs_url":"https://api.github.com/repos/andela/pibbble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/pibbble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/pibbble/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/pibbble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/pibbble/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/pibbble/languages","stargazers_url":"https://api.github.com/repos/andela/pibbble/stargazers","contributors_url":"https://api.github.com/repos/andela/pibbble/contributors","subscribers_url":"https://api.github.com/repos/andela/pibbble/subscribers","subscription_url":"https://api.github.com/repos/andela/pibbble/subscription","commits_url":"https://api.github.com/repos/andela/pibbble/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/pibbble/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/pibbble/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/pibbble/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/pibbble/contents/{+path}","compare_url":"https://api.github.com/repos/andela/pibbble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/pibbble/merges","archive_url":"https://api.github.com/repos/andela/pibbble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/pibbble/downloads","issues_url":"https://api.github.com/repos/andela/pibbble/issues{/number}","pulls_url":"https://api.github.com/repos/andela/pibbble/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/pibbble/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/pibbble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/pibbble/labels{/name}","releases_url":"https://api.github.com/repos/andela/pibbble/releases{/id}","created_at":"2015-08-11T08:50:33Z","updated_at":"2015-10-28T13:36:51Z","pushed_at":"2016-01-06T16:04:03Z","git_url":"git://github.com/andela/pibbble.git","ssh_url":"git@github.com:andela/pibbble.git","clone_url":"https://github.com/andela/pibbble.git","svn_url":"https://github.com/andela/pibbble","homepage":"https://pibbble-staging.herokuapp.com/","size":9006,"stargazers_count":5,"watchers_count":5,"language":"CSS","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":5,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/pibbble/pulls/249"},"html":{"href":"https://github.com/andela/pibbble/pull/249"},"issue":{"href":"https://api.github.com/repos/andela/pibbble/issues/249"},"comments":{"href":"https://api.github.com/repos/andela/pibbble/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/pibbble/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/pibbble/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/pibbble/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/andela/pibbble/statuses/474c4a91f9875ae98a10a68a47e6258c5248b327"}}}}