payload: {"action":"created","comment":{"url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/comments/284648086","pull_request_review_id":238315842,"id":284648086,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDY0ODA4Ng==","diff_hunk":"@@ -0,0 +1,113 @@\n+//CSRF-Token gets created for Post request validation\n+//Through an API the logoname of the object on an uploaded picture is recognized\n+//Through a database request all associated information is displayed\n+//Alternativly there is a videostream where you can take snapshots of the product\n+//Through a post request to the server where the picture is transformed into a png \n+//and then send to the API to do the same as in the first method\n+\n+\n+//CSRF-Token\n+function getCookie(name) {\n+    var cookieValue = null;\n+    if (document.cookie && document.cookie !== \"\"   ) {\n+        var cookies = document.cookie.split(\";\");\n+        for (var i = 0; i < cookies.length; i++) {\n+            var cookie = jQuery.trim(cookies[i]);\n+            if (cookie.substring(0, name.length + 1) === (name + \"=\")) {\n+                cookieValue = decodeURIComponent(cookie.substring(name.length + 1));\n+                break;\n+            }\n+        }\n+    }\n+    return cookieValue;\n+    }\n+    \n+    //Creates a video stream\n+    var video = document.querySelector(\"#videoElement\");\n+    if (navigator.mediaDevices.getUserMedia) {\n+        navigator.mediaDevices.getUserMedia({ video: true })\n+        .then(function (stream) {\n+        video.srcObject = stream;\n+        })\n+        .catch(function (err0r) {\n+        });\n+    }\n+    // Get a handle on the 2d context of the canvas element\n+    var context = canvas.getContext(\"2d\");\n+    // Define some vars required later\n+    var w, h, ratio;\n+    \n+    // Add a listener to wait for the 'loadedmetadata' state so the video's dimensions can be read\n+    video.addEventListener(\"loadedmetadata\", function() {\n+        // Calculate the ratio of the video's width to height\n+        ratio = video.videoWidth / video.videoHeight;\n+        // Define the required width as 100 pixels smaller than the actual video's width\n+        w = video.videoWidth - 100;\n+        // Calculate the height based on the video's width and the ratio\n+        h = parseInt(w / ratio, 10);\n+        // Set the canvas width and height to the values just calculated\n+        canvas.width = w / 4;\n+        canvas.height = h /4;\t\t\t\n+    }, false);\n+    \n+    // Takes a snapshot of the video\n+    function snap() {\n+        context.fillRect(0, 0, w / 4, h / 4);\n+        // Grab the image from the video\n+        context.drawImage(video, 0, 0, w / 4, h / 4);\n+        var canvas = document.getElementById(\"canvas\");\n+        var dataUrl = canvas.toDataURL();\n+        //uploadAndGetImgurLink(dataUrl);\n+        sendSnapToServerTwo(dataUrl);\n+    };\n+    /*\n+    function sendToBackEnd(dataUrl){\n+        alert(\"POST clicked\");\n+        var csrftoken = getCookie('csrftoken');\n+        const url = \"http://127.0.0.1:8000/mvpLogoGrab/post/\"\n+        fetch(url,{\n+                    method: 'POST', \n+                    body: JSON.stringify(dataUrl), \n+                    headers: {\n+                            'Content-Type': \"application/json\",\n+                            'X-CSRFToken': csrftoken,\n+                    },\n+                    credentials: \"include\",\n+        })\n+        .then(response => response.json())\n+        .then(console.log);\n+       // window.location.replace(url);\n+    };\n+    */\n+    \n+    function sendSnapToServerTwo(dataUrl){\n+        var settings = {\n+            \"async\": true,\n+            \"crossDomain\": true,\n+            \"url\": \"https://api.logograb.com/detect?mediaUrl=\"+ dataUrl +\"&developerKey=nb9n3ra9fpmrk0u0binh2b03jr3acq510tqhldmr\",\n+            \"method\": \"POST\",\n+            \"headers\": {}\n+          }","path":"mvpLogoGrab/static/snap.js","position":90,"original_position":90,"commit_id":"3e9be7daf16d7878d19169277a63d5fb63fd1f20","original_commit_id":"3e9be7daf16d7878d19169277a63d5fb63fd1f20","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Missing semicolon. (semi)](https://app.codacy.com/app/5h3rr1ll/ratelyyGitHub/pullRequest?prid=3547982)","created_at":"2019-05-16T10:47:35Z","updated_at":"2019-05-16T10:47:35Z","html_url":"https://github.com/5h3rr1ll/Goodbuy/pull/32#discussion_r284648086","pull_request_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/comments/284648086"},"html":{"href":"https://github.com/5h3rr1ll/Goodbuy/pull/32#discussion_r284648086"},"pull_request":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32","id":276536134,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc2NTM2MTM0","html_url":"https://github.com/5h3rr1ll/Goodbuy/pull/32","diff_url":"https://github.com/5h3rr1ll/Goodbuy/pull/32.diff","patch_url":"https://github.com/5h3rr1ll/Goodbuy/pull/32.patch","issue_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/32","number":32,"state":"open","locked":false,"title":"Dev","user":{"login":"5h3rr1ll","id":23193392,"node_id":"MDQ6VXNlcjIzMTkzMzky","avatar_url":"https://avatars1.githubusercontent.com/u/23193392?v=4","gravatar_id":"","url":"https://api.github.com/users/5h3rr1ll","html_url":"https://github.com/5h3rr1ll","followers_url":"https://api.github.com/users/5h3rr1ll/followers","following_url":"https://api.github.com/users/5h3rr1ll/following{/other_user}","gists_url":"https://api.github.com/users/5h3rr1ll/gists{/gist_id}","starred_url":"https://api.github.com/users/5h3rr1ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5h3rr1ll/subscriptions","organizations_url":"https://api.github.com/users/5h3rr1ll/orgs","repos_url":"https://api.github.com/users/5h3rr1ll/repos","events_url":"https://api.github.com/users/5h3rr1ll/events{/privacy}","received_events_url":"https://api.github.com/users/5h3rr1ll/received_events","type":"User","site_admin":false},"body":"Implemented Code-Scanner and Logo-Grab. Having now a Working MVP. Changed to PostgreSQL and deployed Django project on heroku.com","created_at":"2019-05-07T10:16:46Z","updated_at":"2019-05-16T10:47:35Z","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/5h3rr1ll/Goodbuy/pulls/32/commits","review_comments_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32/comments","review_comment_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/32/comments","statuses_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/statuses/3e9be7daf16d7878d19169277a63d5fb63fd1f20","head":{"label":"5h3rr1ll:dev","ref":"dev","sha":"3e9be7daf16d7878d19169277a63d5fb63fd1f20","user":{"login":"5h3rr1ll","id":23193392,"node_id":"MDQ6VXNlcjIzMTkzMzky","avatar_url":"https://avatars1.githubusercontent.com/u/23193392?v=4","gravatar_id":"","url":"https://api.github.com/users/5h3rr1ll","html_url":"https://github.com/5h3rr1ll","followers_url":"https://api.github.com/users/5h3rr1ll/followers","following_url":"https://api.github.com/users/5h3rr1ll/following{/other_user}","gists_url":"https://api.github.com/users/5h3rr1ll/gists{/gist_id}","starred_url":"https://api.github.com/users/5h3rr1ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5h3rr1ll/subscriptions","organizations_url":"https://api.github.com/users/5h3rr1ll/orgs","repos_url":"https://api.github.com/users/5h3rr1ll/repos","events_url":"https://api.github.com/users/5h3rr1ll/events{/privacy}","received_events_url":"https://api.github.com/users/5h3rr1ll/received_events","type":"User","site_admin":false},"repo":{"id":169447062,"node_id":"MDEwOlJlcG9zaXRvcnkxNjk0NDcwNjI=","name":"Goodbuy","full_name":"5h3rr1ll/Goodbuy","private":false,"owner":{"login":"5h3rr1ll","id":23193392,"node_id":"MDQ6VXNlcjIzMTkzMzky","avatar_url":"https://avatars1.githubusercontent.com/u/23193392?v=4","gravatar_id":"","url":"https://api.github.com/users/5h3rr1ll","html_url":"https://github.com/5h3rr1ll","followers_url":"https://api.github.com/users/5h3rr1ll/followers","following_url":"https://api.github.com/users/5h3rr1ll/following{/other_user}","gists_url":"https://api.github.com/users/5h3rr1ll/gists{/gist_id}","starred_url":"https://api.github.com/users/5h3rr1ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5h3rr1ll/subscriptions","organizations_url":"https://api.github.com/users/5h3rr1ll/orgs","repos_url":"https://api.github.com/users/5h3rr1ll/repos","events_url":"https://api.github.com/users/5h3rr1ll/events{/privacy}","received_events_url":"https://api.github.com/users/5h3rr1ll/received_events","type":"User","site_admin":false},"html_url":"https://github.com/5h3rr1ll/Goodbuy","description":"It’s about building a tool to raise awareness what impact your consumptions have on the plane, the society and nature and also empowers people to consume based on their own ethical and moral consumer profile.","fork":false,"url":"https://api.github.com/repos/5h3rr1ll/Goodbuy","forks_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/forks","keys_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/teams","hooks_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/hooks","issue_events_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/events{/number}","events_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/events","assignees_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/assignees{/user}","branches_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/branches{/branch}","tags_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/tags","blobs_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/refs{/sha}","trees_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/statuses/{sha}","languages_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/languages","stargazers_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/stargazers","contributors_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/contributors","subscribers_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/subscribers","subscription_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/subscription","commits_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/commits{/sha}","git_commits_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/commits{/sha}","comments_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/comments{/number}","issue_comment_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/comments{/number}","contents_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/contents/{+path}","compare_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/merges","archive_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/downloads","issues_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues{/number}","pulls_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls{/number}","milestones_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/milestones{/number}","notifications_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/labels{/name}","releases_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/releases{/id}","deployments_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/deployments","created_at":"2019-02-06T17:32:50Z","updated_at":"2019-05-15T09:43:55Z","pushed_at":"2019-05-16T10:45:13Z","git_url":"git://github.com/5h3rr1ll/Goodbuy.git","ssh_url":"git@github.com:5h3rr1ll/Goodbuy.git","clone_url":"https://github.com/5h3rr1ll/Goodbuy.git","svn_url":"https://github.com/5h3rr1ll/Goodbuy","homepage":"https://goodbuy.herokuapp.com","size":1359,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":17,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense","node_id":"MDc6TGljZW5zZTE1"},"forks":1,"open_issues":17,"watchers":2,"default_branch":"master"}},"base":{"label":"5h3rr1ll:master","ref":"master","sha":"3db77398adbf573d7c7fbf4cf36257f3ec2cd042","user":{"login":"5h3rr1ll","id":23193392,"node_id":"MDQ6VXNlcjIzMTkzMzky","avatar_url":"https://avatars1.githubusercontent.com/u/23193392?v=4","gravatar_id":"","url":"https://api.github.com/users/5h3rr1ll","html_url":"https://github.com/5h3rr1ll","followers_url":"https://api.github.com/users/5h3rr1ll/followers","following_url":"https://api.github.com/users/5h3rr1ll/following{/other_user}","gists_url":"https://api.github.com/users/5h3rr1ll/gists{/gist_id}","starred_url":"https://api.github.com/users/5h3rr1ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5h3rr1ll/subscriptions","organizations_url":"https://api.github.com/users/5h3rr1ll/orgs","repos_url":"https://api.github.com/users/5h3rr1ll/repos","events_url":"https://api.github.com/users/5h3rr1ll/events{/privacy}","received_events_url":"https://api.github.com/users/5h3rr1ll/received_events","type":"User","site_admin":false},"repo":{"id":169447062,"node_id":"MDEwOlJlcG9zaXRvcnkxNjk0NDcwNjI=","name":"Goodbuy","full_name":"5h3rr1ll/Goodbuy","private":false,"owner":{"login":"5h3rr1ll","id":23193392,"node_id":"MDQ6VXNlcjIzMTkzMzky","avatar_url":"https://avatars1.githubusercontent.com/u/23193392?v=4","gravatar_id":"","url":"https://api.github.com/users/5h3rr1ll","html_url":"https://github.com/5h3rr1ll","followers_url":"https://api.github.com/users/5h3rr1ll/followers","following_url":"https://api.github.com/users/5h3rr1ll/following{/other_user}","gists_url":"https://api.github.com/users/5h3rr1ll/gists{/gist_id}","starred_url":"https://api.github.com/users/5h3rr1ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5h3rr1ll/subscriptions","organizations_url":"https://api.github.com/users/5h3rr1ll/orgs","repos_url":"https://api.github.com/users/5h3rr1ll/repos","events_url":"https://api.github.com/users/5h3rr1ll/events{/privacy}","received_events_url":"https://api.github.com/users/5h3rr1ll/received_events","type":"User","site_admin":false},"html_url":"https://github.com/5h3rr1ll/Goodbuy","description":"It’s about building a tool to raise awareness what impact your consumptions have on the plane, the society and nature and also empowers people to consume based on their own ethical and moral consumer profile.","fork":false,"url":"https://api.github.com/repos/5h3rr1ll/Goodbuy","forks_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/forks","keys_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/teams","hooks_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/hooks","issue_events_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/events{/number}","events_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/events","assignees_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/assignees{/user}","branches_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/branches{/branch}","tags_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/tags","blobs_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/refs{/sha}","trees_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/statuses/{sha}","languages_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/languages","stargazers_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/stargazers","contributors_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/contributors","subscribers_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/subscribers","subscription_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/subscription","commits_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/commits{/sha}","git_commits_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/git/commits{/sha}","comments_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/comments{/number}","issue_comment_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/comments{/number}","contents_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/contents/{+path}","compare_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/merges","archive_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/downloads","issues_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues{/number}","pulls_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls{/number}","milestones_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/milestones{/number}","notifications_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/labels{/name}","releases_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/releases{/id}","deployments_url":"https://api.github.com/repos/5h3rr1ll/Goodbuy/deployments","created_at":"2019-02-06T17:32:50Z","updated_at":"2019-05-15T09:43:55Z","pushed_at":"2019-05-16T10:45:13Z","git_url":"git://github.com/5h3rr1ll/Goodbuy.git","ssh_url":"git@github.com:5h3rr1ll/Goodbuy.git","clone_url":"https://github.com/5h3rr1ll/Goodbuy.git","svn_url":"https://github.com/5h3rr1ll/Goodbuy","homepage":"https://goodbuy.herokuapp.com","size":1359,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":17,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense","node_id":"MDc6TGljZW5zZTE1"},"forks":1,"open_issues":17,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32"},"html":{"href":"https://github.com/5h3rr1ll/Goodbuy/pull/32"},"issue":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/32"},"comments":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/5h3rr1ll/Goodbuy/statuses/3e9be7daf16d7878d19169277a63d5fb63fd1f20"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"codacy-bot"}}