{"action":"created","comment":{"url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/comments/70183233","id":70183233,"diff_hunk":"@@ -131,4 +136,26 @@ public function deleteAction($args) {\n             Echo \"Event not found.\";\n         }\n     }\n+\n+    public function joinAction($args) {\n+        if (isset($args[0])) {\n+            $event = Event::findById(intval($args[0]));\n+            $event->addUser(intval($_SESSION[\"user_id\"]));\n+            header(\"location:\" . WEBROOT . \"event/list\");\n+        } else {\n+            http_response_code(404);\n+            echo \"User not found\";","path":"controllers/eventController.class.php","position":125,"original_position":109,"commit_id":"cc6d17239b2d643f66cf6e8bc189ffc829aeff12","original_commit_id":"7e21ef8d2cb946009d8cfe97e1539bf260c36ffb","user":{"login":"GoRFy","id":6999054,"avatar_url":"https://avatars.githubusercontent.com/u/6999054?v=3","gravatar_id":"","url":"https://api.github.com/users/GoRFy","html_url":"https://github.com/GoRFy","followers_url":"https://api.github.com/users/GoRFy/followers","following_url":"https://api.github.com/users/GoRFy/following{/other_user}","gists_url":"https://api.github.com/users/GoRFy/gists{/gist_id}","starred_url":"https://api.github.com/users/GoRFy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoRFy/subscriptions","organizations_url":"https://api.github.com/users/GoRFy/orgs","repos_url":"https://api.github.com/users/GoRFy/repos","events_url":"https://api.github.com/users/GoRFy/events{/privacy}","received_events_url":"https://api.github.com/users/GoRFy/received_events","type":"User","site_admin":false},"body":"Je suis désolé de recommenter cette line, mais juste pour le message d'erreur c'est pas plutot event not found ?","created_at":"2016-07-10T15:00:17Z","updated_at":"2016-07-10T15:00:17Z","html_url":"https://github.com/esgiprojetninja/ninja/pull/59#discussion_r70183233","pull_request_url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/comments/70183233"},"html":{"href":"https://github.com/esgiprojetninja/ninja/pull/59#discussion_r70183233"},"pull_request":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59","id":76875063,"html_url":"https://github.com/esgiprojetninja/ninja/pull/59","diff_url":"https://github.com/esgiprojetninja/ninja/pull/59.diff","patch_url":"https://github.com/esgiprojetninja/ninja/pull/59.patch","issue_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues/59","number":59,"state":"open","locked":false,"title":"User event","user":{"login":"Rolandkuku","id":6169736,"avatar_url":"https://avatars.githubusercontent.com/u/6169736?v=3","gravatar_id":"","url":"https://api.github.com/users/Rolandkuku","html_url":"https://github.com/Rolandkuku","followers_url":"https://api.github.com/users/Rolandkuku/followers","following_url":"https://api.github.com/users/Rolandkuku/following{/other_user}","gists_url":"https://api.github.com/users/Rolandkuku/gists{/gist_id}","starred_url":"https://api.github.com/users/Rolandkuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rolandkuku/subscriptions","organizations_url":"https://api.github.com/users/Rolandkuku/orgs","repos_url":"https://api.github.com/users/Rolandkuku/repos","events_url":"https://api.github.com/users/Rolandkuku/events{/privacy}","received_events_url":"https://api.github.com/users/Rolandkuku/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-10T14:45:29Z","updated_at":"2016-07-10T15:00:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc7b51687cd9f91addcef0baa1eed64fb97d1cb9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59/commits","review_comments_url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59/comments","review_comment_url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues/59/comments","statuses_url":"https://api.github.com/repos/esgiprojetninja/ninja/statuses/cc6d17239b2d643f66cf6e8bc189ffc829aeff12","head":{"label":"esgiprojetninja:user-event","ref":"user-event","sha":"cc6d17239b2d643f66cf6e8bc189ffc829aeff12","user":{"login":"esgiprojetninja","id":16001679,"avatar_url":"https://avatars.githubusercontent.com/u/16001679?v=3","gravatar_id":"","url":"https://api.github.com/users/esgiprojetninja","html_url":"https://github.com/esgiprojetninja","followers_url":"https://api.github.com/users/esgiprojetninja/followers","following_url":"https://api.github.com/users/esgiprojetninja/following{/other_user}","gists_url":"https://api.github.com/users/esgiprojetninja/gists{/gist_id}","starred_url":"https://api.github.com/users/esgiprojetninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgiprojetninja/subscriptions","organizations_url":"https://api.github.com/users/esgiprojetninja/orgs","repos_url":"https://api.github.com/users/esgiprojetninja/repos","events_url":"https://api.github.com/users/esgiprojetninja/events{/privacy}","received_events_url":"https://api.github.com/users/esgiprojetninja/received_events","type":"Organization","site_admin":false},"repo":{"id":53841474,"name":"ninja","full_name":"esgiprojetninja/ninja","owner":{"login":"esgiprojetninja","id":16001679,"avatar_url":"https://avatars.githubusercontent.com/u/16001679?v=3","gravatar_id":"","url":"https://api.github.com/users/esgiprojetninja","html_url":"https://github.com/esgiprojetninja","followers_url":"https://api.github.com/users/esgiprojetninja/followers","following_url":"https://api.github.com/users/esgiprojetninja/following{/other_user}","gists_url":"https://api.github.com/users/esgiprojetninja/gists{/gist_id}","starred_url":"https://api.github.com/users/esgiprojetninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgiprojetninja/subscriptions","organizations_url":"https://api.github.com/users/esgiprojetninja/orgs","repos_url":"https://api.github.com/users/esgiprojetninja/repos","events_url":"https://api.github.com/users/esgiprojetninja/events{/privacy}","received_events_url":"https://api.github.com/users/esgiprojetninja/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esgiprojetninja/ninja","description":"","fork":false,"url":"https://api.github.com/repos/esgiprojetninja/ninja","forks_url":"https://api.github.com/repos/esgiprojetninja/ninja/forks","keys_url":"https://api.github.com/repos/esgiprojetninja/ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esgiprojetninja/ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esgiprojetninja/ninja/teams","hooks_url":"https://api.github.com/repos/esgiprojetninja/ninja/hooks","issue_events_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues/events{/number}","events_url":"https://api.github.com/repos/esgiprojetninja/ninja/events","assignees_url":"https://api.github.com/repos/esgiprojetninja/ninja/assignees{/user}","branches_url":"https://api.github.com/repos/esgiprojetninja/ninja/branches{/branch}","tags_url":"https://api.github.com/repos/esgiprojetninja/ninja/tags","blobs_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esgiprojetninja/ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/esgiprojetninja/ninja/languages","stargazers_url":"https://api.github.com/repos/esgiprojetninja/ninja/stargazers","contributors_url":"https://api.github.com/repos/esgiprojetninja/ninja/contributors","subscribers_url":"https://api.github.com/repos/esgiprojetninja/ninja/subscribers","subscription_url":"https://api.github.com/repos/esgiprojetninja/ninja/subscription","commits_url":"https://api.github.com/repos/esgiprojetninja/ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/esgiprojetninja/ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues/comments{/number}","contents_url":"https://api.github.com/repos/esgiprojetninja/ninja/contents/{+path}","compare_url":"https://api.github.com/repos/esgiprojetninja/ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esgiprojetninja/ninja/merges","archive_url":"https://api.github.com/repos/esgiprojetninja/ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esgiprojetninja/ninja/downloads","issues_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues{/number}","pulls_url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/esgiprojetninja/ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/esgiprojetninja/ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esgiprojetninja/ninja/labels{/name}","releases_url":"https://api.github.com/repos/esgiprojetninja/ninja/releases{/id}","deployments_url":"https://api.github.com/repos/esgiprojetninja/ninja/deployments","created_at":"2016-03-14T09:04:30Z","updated_at":"2016-03-16T16:45:05Z","pushed_at":"2016-07-10T14:48:23Z","git_url":"git://github.com/esgiprojetninja/ninja.git","ssh_url":"git@github.com:esgiprojetninja/ninja.git","clone_url":"https://github.com/esgiprojetninja/ninja.git","svn_url":"https://github.com/esgiprojetninja/ninja","homepage":null,"size":4818,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"esgiprojetninja:master","ref":"master","sha":"f98daf899379c1bfef690dd8b8b18a18dd581fc8","user":{"login":"esgiprojetninja","id":16001679,"avatar_url":"https://avatars.githubusercontent.com/u/16001679?v=3","gravatar_id":"","url":"https://api.github.com/users/esgiprojetninja","html_url":"https://github.com/esgiprojetninja","followers_url":"https://api.github.com/users/esgiprojetninja/followers","following_url":"https://api.github.com/users/esgiprojetninja/following{/other_user}","gists_url":"https://api.github.com/users/esgiprojetninja/gists{/gist_id}","starred_url":"https://api.github.com/users/esgiprojetninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgiprojetninja/subscriptions","organizations_url":"https://api.github.com/users/esgiprojetninja/orgs","repos_url":"https://api.github.com/users/esgiprojetninja/repos","events_url":"https://api.github.com/users/esgiprojetninja/events{/privacy}","received_events_url":"https://api.github.com/users/esgiprojetninja/received_events","type":"Organization","site_admin":false},"repo":{"id":53841474,"name":"ninja","full_name":"esgiprojetninja/ninja","owner":{"login":"esgiprojetninja","id":16001679,"avatar_url":"https://avatars.githubusercontent.com/u/16001679?v=3","gravatar_id":"","url":"https://api.github.com/users/esgiprojetninja","html_url":"https://github.com/esgiprojetninja","followers_url":"https://api.github.com/users/esgiprojetninja/followers","following_url":"https://api.github.com/users/esgiprojetninja/following{/other_user}","gists_url":"https://api.github.com/users/esgiprojetninja/gists{/gist_id}","starred_url":"https://api.github.com/users/esgiprojetninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgiprojetninja/subscriptions","organizations_url":"https://api.github.com/users/esgiprojetninja/orgs","repos_url":"https://api.github.com/users/esgiprojetninja/repos","events_url":"https://api.github.com/users/esgiprojetninja/events{/privacy}","received_events_url":"https://api.github.com/users/esgiprojetninja/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esgiprojetninja/ninja","description":"","fork":false,"url":"https://api.github.com/repos/esgiprojetninja/ninja","forks_url":"https://api.github.com/repos/esgiprojetninja/ninja/forks","keys_url":"https://api.github.com/repos/esgiprojetninja/ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esgiprojetninja/ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esgiprojetninja/ninja/teams","hooks_url":"https://api.github.com/repos/esgiprojetninja/ninja/hooks","issue_events_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues/events{/number}","events_url":"https://api.github.com/repos/esgiprojetninja/ninja/events","assignees_url":"https://api.github.com/repos/esgiprojetninja/ninja/assignees{/user}","branches_url":"https://api.github.com/repos/esgiprojetninja/ninja/branches{/branch}","tags_url":"https://api.github.com/repos/esgiprojetninja/ninja/tags","blobs_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esgiprojetninja/ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/esgiprojetninja/ninja/languages","stargazers_url":"https://api.github.com/repos/esgiprojetninja/ninja/stargazers","contributors_url":"https://api.github.com/repos/esgiprojetninja/ninja/contributors","subscribers_url":"https://api.github.com/repos/esgiprojetninja/ninja/subscribers","subscription_url":"https://api.github.com/repos/esgiprojetninja/ninja/subscription","commits_url":"https://api.github.com/repos/esgiprojetninja/ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/esgiprojetninja/ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/esgiprojetninja/ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues/comments{/number}","contents_url":"https://api.github.com/repos/esgiprojetninja/ninja/contents/{+path}","compare_url":"https://api.github.com/repos/esgiprojetninja/ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esgiprojetninja/ninja/merges","archive_url":"https://api.github.com/repos/esgiprojetninja/ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esgiprojetninja/ninja/downloads","issues_url":"https://api.github.com/repos/esgiprojetninja/ninja/issues{/number}","pulls_url":"https://api.github.com/repos/esgiprojetninja/ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/esgiprojetninja/ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/esgiprojetninja/ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esgiprojetninja/ninja/labels{/name}","releases_url":"https://api.github.com/repos/esgiprojetninja/ninja/releases{/id}","deployments_url":"https://api.github.com/repos/esgiprojetninja/ninja/deployments","created_at":"2016-03-14T09:04:30Z","updated_at":"2016-03-16T16:45:05Z","pushed_at":"2016-07-10T14:48:23Z","git_url":"git://github.com/esgiprojetninja/ninja.git","ssh_url":"git@github.com:esgiprojetninja/ninja.git","clone_url":"https://github.com/esgiprojetninja/ninja.git","svn_url":"https://github.com/esgiprojetninja/ninja","homepage":null,"size":4818,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59"},"html":{"href":"https://github.com/esgiprojetninja/ninja/pull/59"},"issue":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/issues/59"},"comments":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/esgiprojetninja/ninja/statuses/cc6d17239b2d643f66cf6e8bc189ffc829aeff12"}}}}
{"actor":{"display_login":"GoRFy"}}