{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/101807939","pull_request_review_id":22550745,"id":101807939,"diff_hunk":"@@ -15,34 +16,45 @@ function updateUploadProgress(perc) {\n   uploadProgressVal.html(parseInt(perc, 10) + '%');\n }\n \n+function createCookie(name,value,days) {\n+    var expires = \"\";\n+    if (days) {\n+      var date = new Date();\n+      date.setTime(date.getTime() + (days*24*60*60*1000));\n+      expires = \"; expires=\" + date.toUTCString();\n+\n+    }\n+    document.cookie = name + \"=\" + encodeURIComponent(value) + expires + \"; path=/\";\n+\n+}\n+\n $(document).ready(function () {\n   var socket = io();\n   var uploader = new SocketIOFileUpload(socket);\n   uploader.resetFileInputs = false;\n   uploader.listenOnInput(document.getElementById('siofu_input'));\n \n   uploader.addEventListener('choose', function(event) {\n-      if($(\"#siofu_input\").val().search('.zip') === -1) {\n-        $(\"#siofu_input\").val('');\n-        statusText.css({'color' : 'red'});\n-        statusText.text(\"Upload zip extension\");\n-        return false;\n-      }\n+    if($(\"#siofu_input\").val().search('.zip') === -1) {\n+      $(\"#siofu_input\").val('');\n+      statusText.css({'color' : 'red'});\n+      statusText.text(\"Upload zip extension\");\n+      return false;\n+    }\n   });\n \n   uploader.addEventListener('start', function(event) {\n-    $('#siofu_input').hide()\n+    $('#siofu_input').hide();\n     $('#upload-info').show();\n     // $('#upload-progress-bar').show();\n-    $('#upload-filename').html(event.file.name.substring(0,14))\n-    var size = (event.file.size/(1024*1024)).toString().substring(0,3)\n-    $('#upload-filesize').html( size + \"M\")\n+    $('#upload-filename').html(event.file.name.substring(0,14));","path":"src/www/js/form.js","position":53,"original_position":53,"commit_id":"9a758cda269c134b32488986492a75aed4ba8ae7","original_commit_id":"9a758cda269c134b32488986492a75aed4ba8ae7","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","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://www.codacy.com/assets/images/favicon.png) Issue found: [A space is required after ','. (comma-spacing)](https://www.codacy.com/app/dev_19/open-event-webapp/pullRequest?prid=523441)","created_at":"2017-02-17T17:40:37Z","updated_at":"2017-02-17T17:40:37Z","html_url":"https://github.com/fossasia/open-event-webapp/pull/1032#discussion_r101807939","pull_request_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/101807939"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/1032#discussion_r101807939"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032","id":106720480,"html_url":"https://github.com/fossasia/open-event-webapp/pull/1032","diff_url":"https://github.com/fossasia/open-event-webapp/pull/1032.diff","patch_url":"https://github.com/fossasia/open-event-webapp/pull/1032.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1032","number":1032,"state":"open","locked":false,"title":"Adds the feature of Automatic Deployment to Github","user":{"login":"Princu7","id":8847265,"avatar_url":"https://avatars.githubusercontent.com/u/8847265?v=3","gravatar_id":"","url":"https://api.github.com/users/Princu7","html_url":"https://github.com/Princu7","followers_url":"https://api.github.com/users/Princu7/followers","following_url":"https://api.github.com/users/Princu7/following{/other_user}","gists_url":"https://api.github.com/users/Princu7/gists{/gist_id}","starred_url":"https://api.github.com/users/Princu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Princu7/subscriptions","organizations_url":"https://api.github.com/users/Princu7/orgs","repos_url":"https://api.github.com/users/Princu7/repos","events_url":"https://api.github.com/users/Princu7/events{/privacy}","received_events_url":"https://api.github.com/users/Princu7/received_events","type":"User","site_admin":false},"body":"@aayusharora @mariobehling  Resolves #947 \r\nTest Server: http://secure-meadow-20680.herokuapp.com\r\n\r\nPlease test the working of the server. Also, the feature won't work right away on the official server as we will have to do some modifications to the Heroku config variables and other things. Will do that after this gets reviewed :)","created_at":"2017-02-17T12:03:06Z","updated_at":"2017-02-17T17:40:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c7e3e6e282d37ba7690783ab11626f0bee6268e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1032/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/9a758cda269c134b32488986492a75aed4ba8ae7","head":{"label":"Princu7:finalDeploy","ref":"finalDeploy","sha":"9a758cda269c134b32488986492a75aed4ba8ae7","user":{"login":"Princu7","id":8847265,"avatar_url":"https://avatars.githubusercontent.com/u/8847265?v=3","gravatar_id":"","url":"https://api.github.com/users/Princu7","html_url":"https://github.com/Princu7","followers_url":"https://api.github.com/users/Princu7/followers","following_url":"https://api.github.com/users/Princu7/following{/other_user}","gists_url":"https://api.github.com/users/Princu7/gists{/gist_id}","starred_url":"https://api.github.com/users/Princu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Princu7/subscriptions","organizations_url":"https://api.github.com/users/Princu7/orgs","repos_url":"https://api.github.com/users/Princu7/repos","events_url":"https://api.github.com/users/Princu7/events{/privacy}","received_events_url":"https://api.github.com/users/Princu7/received_events","type":"User","site_admin":false},"repo":{"id":67641576,"name":"open-event-webapp","full_name":"Princu7/open-event-webapp","owner":{"login":"Princu7","id":8847265,"avatar_url":"https://avatars.githubusercontent.com/u/8847265?v=3","gravatar_id":"","url":"https://api.github.com/users/Princu7","html_url":"https://github.com/Princu7","followers_url":"https://api.github.com/users/Princu7/followers","following_url":"https://api.github.com/users/Princu7/following{/other_user}","gists_url":"https://api.github.com/users/Princu7/gists{/gist_id}","starred_url":"https://api.github.com/users/Princu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Princu7/subscriptions","organizations_url":"https://api.github.com/users/Princu7/orgs","repos_url":"https://api.github.com/users/Princu7/repos","events_url":"https://api.github.com/users/Princu7/events{/privacy}","received_events_url":"https://api.github.com/users/Princu7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Princu7/open-event-webapp","description":"Open Event Web App Generator","fork":true,"url":"https://api.github.com/repos/Princu7/open-event-webapp","forks_url":"https://api.github.com/repos/Princu7/open-event-webapp/forks","keys_url":"https://api.github.com/repos/Princu7/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Princu7/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Princu7/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/Princu7/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/Princu7/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/Princu7/open-event-webapp/events","assignees_url":"https://api.github.com/repos/Princu7/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/Princu7/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/Princu7/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/Princu7/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Princu7/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Princu7/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/Princu7/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Princu7/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/Princu7/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/Princu7/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/Princu7/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/Princu7/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/Princu7/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/Princu7/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/Princu7/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/Princu7/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/Princu7/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/Princu7/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/Princu7/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Princu7/open-event-webapp/merges","archive_url":"https://api.github.com/repos/Princu7/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Princu7/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/Princu7/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/Princu7/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/Princu7/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/Princu7/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Princu7/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/Princu7/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/Princu7/open-event-webapp/deployments","created_at":"2016-09-07T20:36:22Z","updated_at":"2016-09-07T20:36:23Z","pushed_at":"2017-02-17T17:35:39Z","git_url":"git://github.com/Princu7/open-event-webapp.git","ssh_url":"git@github.com:Princu7/open-event-webapp.git","clone_url":"https://github.com/Princu7/open-event-webapp.git","svn_url":"https://github.com/Princu7/open-event-webapp","homepage":"http://opev-webgen-dev.herokuapp.com","size":58553,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"9d620434dc24f5db277fefb0cab84e83c2b79f55","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269905,"name":"open-event-webapp","full_name":"fossasia/open-event-webapp","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-webapp","description":"Open Event Web App Generator http://opev-webgen-dev.herokuapp.com","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-webapp","forks_url":"https://api.github.com/repos/fossasia/open-event-webapp/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-webapp/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-webapp/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-webapp/deployments","created_at":"2015-05-08T09:11:00Z","updated_at":"2017-02-16T21:20:27Z","pushed_at":"2017-02-17T17:35:41Z","git_url":"git://github.com/fossasia/open-event-webapp.git","ssh_url":"git@github.com:fossasia/open-event-webapp.git","clone_url":"https://github.com/fossasia/open-event-webapp.git","svn_url":"https://github.com/fossasia/open-event-webapp","homepage":"http://fossasia.github.io/open-event-webapp/","size":51066,"stargazers_count":182,"watchers_count":182,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":211,"mirror_url":null,"open_issues_count":28,"forks":211,"open_issues":28,"watchers":182,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/1032"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1032"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1032/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1032/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/9a758cda269c134b32488986492a75aed4ba8ae7"}}}}
{"actor":{"display_login":"codacy-bot"}}