{"action":"created","comment":{"url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/comments/215264020","pull_request_review_id":152488459,"id":215264020,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTI2NDAyMA==","diff_hunk":"@@ -0,0 +1,137 @@\n+var id = getQueryVariable(\"id\");\n+\n+function loadEvent() {\n+    fetch('/api/event/' + id, {\n+        \"method\": \"GET\",\n+        headers: {\n+            'Accept': 'application/json',\n+            'Content-Type': 'application/json'\n+        }\n+    }).then(function (response) {\n+        return response.json();\n+    }).then(function (event) {\n+        console.log(JSON.stringify(event));\n+        if (event !== undefined) {\n+            document.getElementById(\"event-field\").classList.remove(\"w3-hide\");\n+            w3.displayObject(\"title\", event);\n+            w3.displayObject(\"event-field\", event);\n+        }\n+        if (event.eventStatus === \"OPEN\") {","path":"src/main/webapp/javascript/event.js","position":19,"original_position":19,"commit_id":"fde99483679a13a35b4e52f39a6b48331bc9c19f","original_commit_id":"fde99483679a13a35b4e52f39a6b48331bc9c19f","user":{"login":"olegvm","id":16876280,"node_id":"MDQ6VXNlcjE2ODc2Mjgw","avatar_url":"https://avatars2.githubusercontent.com/u/16876280?v=4","gravatar_id":"","url":"https://api.github.com/users/olegvm","html_url":"https://github.com/olegvm","followers_url":"https://api.github.com/users/olegvm/followers","following_url":"https://api.github.com/users/olegvm/following{/other_user}","gists_url":"https://api.github.com/users/olegvm/gists{/gist_id}","starred_url":"https://api.github.com/users/olegvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegvm/subscriptions","organizations_url":"https://api.github.com/users/olegvm/orgs","repos_url":"https://api.github.com/users/olegvm/repos","events_url":"https://api.github.com/users/olegvm/events{/privacy}","received_events_url":"https://api.github.com/users/olegvm/received_events","type":"User","site_admin":false},"body":"This should probably be moved inside the previous `if`, otherwise this may not work if `event` is undefined.","created_at":"2018-09-05T13:16:46Z","updated_at":"2018-09-05T13:16:46Z","html_url":"https://github.com/ctco-dev/event-organizer/pull/58#discussion_r215264020","pull_request_url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/comments/215264020"},"html":{"href":"https://github.com/ctco-dev/event-organizer/pull/58#discussion_r215264020"},"pull_request":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58","id":213286142,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMjg2MTQy","html_url":"https://github.com/ctco-dev/event-organizer/pull/58","diff_url":"https://github.com/ctco-dev/event-organizer/pull/58.diff","patch_url":"https://github.com/ctco-dev/event-organizer/pull/58.patch","issue_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues/58","number":58,"state":"open","locked":false,"title":"Fix js files","user":{"login":"vadigerman","id":29597636,"node_id":"MDQ6VXNlcjI5NTk3NjM2","avatar_url":"https://avatars0.githubusercontent.com/u/29597636?v=4","gravatar_id":"","url":"https://api.github.com/users/vadigerman","html_url":"https://github.com/vadigerman","followers_url":"https://api.github.com/users/vadigerman/followers","following_url":"https://api.github.com/users/vadigerman/following{/other_user}","gists_url":"https://api.github.com/users/vadigerman/gists{/gist_id}","starred_url":"https://api.github.com/users/vadigerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadigerman/subscriptions","organizations_url":"https://api.github.com/users/vadigerman/orgs","repos_url":"https://api.github.com/users/vadigerman/repos","events_url":"https://api.github.com/users/vadigerman/events{/privacy}","received_events_url":"https://api.github.com/users/vadigerman/received_events","type":"User","site_admin":false},"body":"<!-- Before you submit your pull request, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->\r\n\r\n### Checklist\r\n- [x] I've run `mvn test` from the root directory to see all new and existing tests pass\r\n- [x] I've followed code style and run and ensured the code style is valid\r\n- [ ] I've created new tests if necessary.\r\n\r\n### Motivation and Context\r\nhttps://github.com/ctco-dev/event-organizer/issues/57\r\n\r\n### Description\r\ncreate separate js-files\r\n","created_at":"2018-09-05T13:03:48Z","updated_at":"2018-09-05T13:16:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"057f74ed5c5c420bcf8825401e1561d48328a85d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58/commits","review_comments_url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58/comments","review_comment_url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues/58/comments","statuses_url":"https://api.github.com/repos/ctco-dev/event-organizer/statuses/fde99483679a13a35b4e52f39a6b48331bc9c19f","head":{"label":"ctco-dev:fix_js_files","ref":"fix_js_files","sha":"fde99483679a13a35b4e52f39a6b48331bc9c19f","user":{"login":"ctco-dev","id":14573325,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NTczMzI1","avatar_url":"https://avatars1.githubusercontent.com/u/14573325?v=4","gravatar_id":"","url":"https://api.github.com/users/ctco-dev","html_url":"https://github.com/ctco-dev","followers_url":"https://api.github.com/users/ctco-dev/followers","following_url":"https://api.github.com/users/ctco-dev/following{/other_user}","gists_url":"https://api.github.com/users/ctco-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ctco-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctco-dev/subscriptions","organizations_url":"https://api.github.com/users/ctco-dev/orgs","repos_url":"https://api.github.com/users/ctco-dev/repos","events_url":"https://api.github.com/users/ctco-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ctco-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":145530335,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1MzAzMzU=","name":"event-organizer","full_name":"ctco-dev/event-organizer","owner":{"login":"ctco-dev","id":14573325,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NTczMzI1","avatar_url":"https://avatars1.githubusercontent.com/u/14573325?v=4","gravatar_id":"","url":"https://api.github.com/users/ctco-dev","html_url":"https://github.com/ctco-dev","followers_url":"https://api.github.com/users/ctco-dev/followers","following_url":"https://api.github.com/users/ctco-dev/following{/other_user}","gists_url":"https://api.github.com/users/ctco-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ctco-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctco-dev/subscriptions","organizations_url":"https://api.github.com/users/ctco-dev/orgs","repos_url":"https://api.github.com/users/ctco-dev/repos","events_url":"https://api.github.com/users/ctco-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ctco-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ctco-dev/event-organizer","description":null,"fork":false,"url":"https://api.github.com/repos/ctco-dev/event-organizer","forks_url":"https://api.github.com/repos/ctco-dev/event-organizer/forks","keys_url":"https://api.github.com/repos/ctco-dev/event-organizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctco-dev/event-organizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctco-dev/event-organizer/teams","hooks_url":"https://api.github.com/repos/ctco-dev/event-organizer/hooks","issue_events_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues/events{/number}","events_url":"https://api.github.com/repos/ctco-dev/event-organizer/events","assignees_url":"https://api.github.com/repos/ctco-dev/event-organizer/assignees{/user}","branches_url":"https://api.github.com/repos/ctco-dev/event-organizer/branches{/branch}","tags_url":"https://api.github.com/repos/ctco-dev/event-organizer/tags","blobs_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctco-dev/event-organizer/statuses/{sha}","languages_url":"https://api.github.com/repos/ctco-dev/event-organizer/languages","stargazers_url":"https://api.github.com/repos/ctco-dev/event-organizer/stargazers","contributors_url":"https://api.github.com/repos/ctco-dev/event-organizer/contributors","subscribers_url":"https://api.github.com/repos/ctco-dev/event-organizer/subscribers","subscription_url":"https://api.github.com/repos/ctco-dev/event-organizer/subscription","commits_url":"https://api.github.com/repos/ctco-dev/event-organizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctco-dev/event-organizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctco-dev/event-organizer/contents/{+path}","compare_url":"https://api.github.com/repos/ctco-dev/event-organizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctco-dev/event-organizer/merges","archive_url":"https://api.github.com/repos/ctco-dev/event-organizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctco-dev/event-organizer/downloads","issues_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues{/number}","pulls_url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls{/number}","milestones_url":"https://api.github.com/repos/ctco-dev/event-organizer/milestones{/number}","notifications_url":"https://api.github.com/repos/ctco-dev/event-organizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctco-dev/event-organizer/labels{/name}","releases_url":"https://api.github.com/repos/ctco-dev/event-organizer/releases{/id}","deployments_url":"https://api.github.com/repos/ctco-dev/event-organizer/deployments","created_at":"2018-08-21T08:15:32Z","updated_at":"2018-09-04T13:04:51Z","pushed_at":"2018-09-05T13:03:48Z","git_url":"git://github.com/ctco-dev/event-organizer.git","ssh_url":"git@github.com:ctco-dev/event-organizer.git","clone_url":"https://github.com/ctco-dev/event-organizer.git","svn_url":"https://github.com/ctco-dev/event-organizer","homepage":null,"size":233,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":22,"license":null,"forks":2,"open_issues":22,"watchers":1,"default_branch":"master"}},"base":{"label":"ctco-dev:master","ref":"master","sha":"90e5d6ddc4f8dc3280650e17a7114bcb0cb4b1b7","user":{"login":"ctco-dev","id":14573325,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NTczMzI1","avatar_url":"https://avatars1.githubusercontent.com/u/14573325?v=4","gravatar_id":"","url":"https://api.github.com/users/ctco-dev","html_url":"https://github.com/ctco-dev","followers_url":"https://api.github.com/users/ctco-dev/followers","following_url":"https://api.github.com/users/ctco-dev/following{/other_user}","gists_url":"https://api.github.com/users/ctco-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ctco-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctco-dev/subscriptions","organizations_url":"https://api.github.com/users/ctco-dev/orgs","repos_url":"https://api.github.com/users/ctco-dev/repos","events_url":"https://api.github.com/users/ctco-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ctco-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":145530335,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1MzAzMzU=","name":"event-organizer","full_name":"ctco-dev/event-organizer","owner":{"login":"ctco-dev","id":14573325,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NTczMzI1","avatar_url":"https://avatars1.githubusercontent.com/u/14573325?v=4","gravatar_id":"","url":"https://api.github.com/users/ctco-dev","html_url":"https://github.com/ctco-dev","followers_url":"https://api.github.com/users/ctco-dev/followers","following_url":"https://api.github.com/users/ctco-dev/following{/other_user}","gists_url":"https://api.github.com/users/ctco-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ctco-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctco-dev/subscriptions","organizations_url":"https://api.github.com/users/ctco-dev/orgs","repos_url":"https://api.github.com/users/ctco-dev/repos","events_url":"https://api.github.com/users/ctco-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ctco-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ctco-dev/event-organizer","description":null,"fork":false,"url":"https://api.github.com/repos/ctco-dev/event-organizer","forks_url":"https://api.github.com/repos/ctco-dev/event-organizer/forks","keys_url":"https://api.github.com/repos/ctco-dev/event-organizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctco-dev/event-organizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctco-dev/event-organizer/teams","hooks_url":"https://api.github.com/repos/ctco-dev/event-organizer/hooks","issue_events_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues/events{/number}","events_url":"https://api.github.com/repos/ctco-dev/event-organizer/events","assignees_url":"https://api.github.com/repos/ctco-dev/event-organizer/assignees{/user}","branches_url":"https://api.github.com/repos/ctco-dev/event-organizer/branches{/branch}","tags_url":"https://api.github.com/repos/ctco-dev/event-organizer/tags","blobs_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctco-dev/event-organizer/statuses/{sha}","languages_url":"https://api.github.com/repos/ctco-dev/event-organizer/languages","stargazers_url":"https://api.github.com/repos/ctco-dev/event-organizer/stargazers","contributors_url":"https://api.github.com/repos/ctco-dev/event-organizer/contributors","subscribers_url":"https://api.github.com/repos/ctco-dev/event-organizer/subscribers","subscription_url":"https://api.github.com/repos/ctco-dev/event-organizer/subscription","commits_url":"https://api.github.com/repos/ctco-dev/event-organizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctco-dev/event-organizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctco-dev/event-organizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctco-dev/event-organizer/contents/{+path}","compare_url":"https://api.github.com/repos/ctco-dev/event-organizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctco-dev/event-organizer/merges","archive_url":"https://api.github.com/repos/ctco-dev/event-organizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctco-dev/event-organizer/downloads","issues_url":"https://api.github.com/repos/ctco-dev/event-organizer/issues{/number}","pulls_url":"https://api.github.com/repos/ctco-dev/event-organizer/pulls{/number}","milestones_url":"https://api.github.com/repos/ctco-dev/event-organizer/milestones{/number}","notifications_url":"https://api.github.com/repos/ctco-dev/event-organizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctco-dev/event-organizer/labels{/name}","releases_url":"https://api.github.com/repos/ctco-dev/event-organizer/releases{/id}","deployments_url":"https://api.github.com/repos/ctco-dev/event-organizer/deployments","created_at":"2018-08-21T08:15:32Z","updated_at":"2018-09-04T13:04:51Z","pushed_at":"2018-09-05T13:03:48Z","git_url":"git://github.com/ctco-dev/event-organizer.git","ssh_url":"git@github.com:ctco-dev/event-organizer.git","clone_url":"https://github.com/ctco-dev/event-organizer.git","svn_url":"https://github.com/ctco-dev/event-organizer","homepage":null,"size":233,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":22,"license":null,"forks":2,"open_issues":22,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58"},"html":{"href":"https://github.com/ctco-dev/event-organizer/pull/58"},"issue":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/issues/58"},"comments":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/ctco-dev/event-organizer/statuses/fde99483679a13a35b4e52f39a6b48331bc9c19f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"olegvm"}}