{"action":"created","comment":{"url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/comments/33658653","id":33658653,"diff_hunk":"@@ -5,13 +5,14 @@ class ContestantsController < ApplicationController\n \n     respond_to :json\n \n-    # GET /v1/contestants.json\n+    # GET /v1/contestants.json?email=XXX","path":"app/controllers/v1/contestants_controller.rb","position":5,"original_position":5,"commit_id":"a9798969a9b592988c7b8d4feacd27c8f86b2b8d","original_commit_id":"d22a5a9e3913bec3fff83d8a5cb1eaeee423adf7","user":{"login":"hurrycane","id":2641,"avatar_url":"https://avatars.githubusercontent.com/u/2641?v=3","gravatar_id":"","url":"https://api.github.com/users/hurrycane","html_url":"https://github.com/hurrycane","followers_url":"https://api.github.com/users/hurrycane/followers","following_url":"https://api.github.com/users/hurrycane/following{/other_user}","gists_url":"https://api.github.com/users/hurrycane/gists{/gist_id}","starred_url":"https://api.github.com/users/hurrycane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurrycane/subscriptions","organizations_url":"https://api.github.com/users/hurrycane/orgs","repos_url":"https://api.github.com/users/hurrycane/repos","events_url":"https://api.github.com/users/hurrycane/events{/privacy}","received_events_url":"https://api.github.com/users/hurrycane/received_events","type":"User","site_admin":false},"body":"Ba da boss.\r\n\r\n```\r\n# linia 17\r\n@contestants = @contestants.where(users: { email: params[:email] }) if params[:email].present?\r\n```","created_at":"2015-07-01T08:40:12Z","updated_at":"2015-07-01T08:40:12Z","html_url":"https://github.com/infoeducatie/infoeducatie-api/pull/52#discussion_r33658653","pull_request_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/comments/33658653"},"html":{"href":"https://github.com/infoeducatie/infoeducatie-api/pull/52#discussion_r33658653"},"pull_request":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52","id":38868601,"html_url":"https://github.com/infoeducatie/infoeducatie-api/pull/52","diff_url":"https://github.com/infoeducatie/infoeducatie-api/pull/52.diff","patch_url":"https://github.com/infoeducatie/infoeducatie-api/pull/52.patch","issue_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/52","number":52,"state":"closed","locked":false,"title":"Registration step 3 - projects and additional contestants.","user":{"login":"hurrycane","id":2641,"avatar_url":"https://avatars.githubusercontent.com/u/2641?v=3","gravatar_id":"","url":"https://api.github.com/users/hurrycane","html_url":"https://github.com/hurrycane","followers_url":"https://api.github.com/users/hurrycane/followers","following_url":"https://api.github.com/users/hurrycane/following{/other_user}","gists_url":"https://api.github.com/users/hurrycane/gists{/gist_id}","starred_url":"https://api.github.com/users/hurrycane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurrycane/subscriptions","organizations_url":"https://api.github.com/users/hurrycane/orgs","repos_url":"https://api.github.com/users/hurrycane/repos","events_url":"https://api.github.com/users/hurrycane/events{/privacy}","received_events_url":"https://api.github.com/users/hurrycane/received_events","type":"User","site_admin":false},"body":"Remains to be done:\r\n- [x] test additional contestants endpoint (probably refactor validation logic as it faulty)\r\n- [x] implement fetching contestants by email.\r\n- [ ] implement adding a screenshot\r\n- [ ] implement /v1/current with the structure requested by @palcu \r\n\r\nMore\r\n- [x] projects need to have finished field\r\n- [x] make endpoint to update finished\r\n- [x] projects don't appear in index if not finished and approved.","created_at":"2015-06-30T11:39:27Z","updated_at":"2015-07-01T08:40:12Z","closed_at":"2015-07-01T08:08:09Z","merged_at":"2015-07-01T08:08:09Z","merge_commit_sha":"865ef34b9c03d1f852826eca26ef7bc2e31f3069","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52/commits","review_comments_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52/comments","review_comment_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/52/comments","statuses_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/statuses/a9798969a9b592988c7b8d4feacd27c8f86b2b8d","head":{"label":"infoeducatie:br/registration_step3_projects","ref":"br/registration_step3_projects","sha":"a9798969a9b592988c7b8d4feacd27c8f86b2b8d","user":{"login":"infoeducatie","id":4788548,"avatar_url":"https://avatars.githubusercontent.com/u/4788548?v=3","gravatar_id":"","url":"https://api.github.com/users/infoeducatie","html_url":"https://github.com/infoeducatie","followers_url":"https://api.github.com/users/infoeducatie/followers","following_url":"https://api.github.com/users/infoeducatie/following{/other_user}","gists_url":"https://api.github.com/users/infoeducatie/gists{/gist_id}","starred_url":"https://api.github.com/users/infoeducatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infoeducatie/subscriptions","organizations_url":"https://api.github.com/users/infoeducatie/orgs","repos_url":"https://api.github.com/users/infoeducatie/repos","events_url":"https://api.github.com/users/infoeducatie/events{/privacy}","received_events_url":"https://api.github.com/users/infoeducatie/received_events","type":"Organization","site_admin":false},"repo":{"id":21791653,"name":"infoeducatie-api","full_name":"infoeducatie/infoeducatie-api","owner":{"login":"infoeducatie","id":4788548,"avatar_url":"https://avatars.githubusercontent.com/u/4788548?v=3","gravatar_id":"","url":"https://api.github.com/users/infoeducatie","html_url":"https://github.com/infoeducatie","followers_url":"https://api.github.com/users/infoeducatie/followers","following_url":"https://api.github.com/users/infoeducatie/following{/other_user}","gists_url":"https://api.github.com/users/infoeducatie/gists{/gist_id}","starred_url":"https://api.github.com/users/infoeducatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infoeducatie/subscriptions","organizations_url":"https://api.github.com/users/infoeducatie/orgs","repos_url":"https://api.github.com/users/infoeducatie/repos","events_url":"https://api.github.com/users/infoeducatie/events{/privacy}","received_events_url":"https://api.github.com/users/infoeducatie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infoeducatie/infoeducatie-api","description":"InfoEducatie website API","fork":false,"url":"https://api.github.com/repos/infoeducatie/infoeducatie-api","forks_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/forks","keys_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/teams","hooks_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/hooks","issue_events_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/events{/number}","events_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/events","assignees_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/assignees{/user}","branches_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/branches{/branch}","tags_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/tags","blobs_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/statuses/{sha}","languages_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/languages","stargazers_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/stargazers","contributors_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/contributors","subscribers_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/subscribers","subscription_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/subscription","commits_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/contents/{+path}","compare_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/merges","archive_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/downloads","issues_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues{/number}","pulls_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls{/number}","milestones_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/milestones{/number}","notifications_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/labels{/name}","releases_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/releases{/id}","created_at":"2014-07-13T13:59:22Z","updated_at":"2015-06-29T15:23:32Z","pushed_at":"2015-07-01T08:36:03Z","git_url":"git://github.com/infoeducatie/infoeducatie-api.git","ssh_url":"git@github.com:infoeducatie/infoeducatie-api.git","clone_url":"https://github.com/infoeducatie/infoeducatie-api.git","svn_url":"https://github.com/infoeducatie/infoeducatie-api","homepage":"","size":929,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":2,"default_branch":"master"}},"base":{"label":"infoeducatie:master","ref":"master","sha":"a4419054306ead65424eb86311bec71277b7e32f","user":{"login":"infoeducatie","id":4788548,"avatar_url":"https://avatars.githubusercontent.com/u/4788548?v=3","gravatar_id":"","url":"https://api.github.com/users/infoeducatie","html_url":"https://github.com/infoeducatie","followers_url":"https://api.github.com/users/infoeducatie/followers","following_url":"https://api.github.com/users/infoeducatie/following{/other_user}","gists_url":"https://api.github.com/users/infoeducatie/gists{/gist_id}","starred_url":"https://api.github.com/users/infoeducatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infoeducatie/subscriptions","organizations_url":"https://api.github.com/users/infoeducatie/orgs","repos_url":"https://api.github.com/users/infoeducatie/repos","events_url":"https://api.github.com/users/infoeducatie/events{/privacy}","received_events_url":"https://api.github.com/users/infoeducatie/received_events","type":"Organization","site_admin":false},"repo":{"id":21791653,"name":"infoeducatie-api","full_name":"infoeducatie/infoeducatie-api","owner":{"login":"infoeducatie","id":4788548,"avatar_url":"https://avatars.githubusercontent.com/u/4788548?v=3","gravatar_id":"","url":"https://api.github.com/users/infoeducatie","html_url":"https://github.com/infoeducatie","followers_url":"https://api.github.com/users/infoeducatie/followers","following_url":"https://api.github.com/users/infoeducatie/following{/other_user}","gists_url":"https://api.github.com/users/infoeducatie/gists{/gist_id}","starred_url":"https://api.github.com/users/infoeducatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infoeducatie/subscriptions","organizations_url":"https://api.github.com/users/infoeducatie/orgs","repos_url":"https://api.github.com/users/infoeducatie/repos","events_url":"https://api.github.com/users/infoeducatie/events{/privacy}","received_events_url":"https://api.github.com/users/infoeducatie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infoeducatie/infoeducatie-api","description":"InfoEducatie website API","fork":false,"url":"https://api.github.com/repos/infoeducatie/infoeducatie-api","forks_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/forks","keys_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/teams","hooks_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/hooks","issue_events_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/events{/number}","events_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/events","assignees_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/assignees{/user}","branches_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/branches{/branch}","tags_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/tags","blobs_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/statuses/{sha}","languages_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/languages","stargazers_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/stargazers","contributors_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/contributors","subscribers_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/subscribers","subscription_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/subscription","commits_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/contents/{+path}","compare_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/merges","archive_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/downloads","issues_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues{/number}","pulls_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls{/number}","milestones_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/milestones{/number}","notifications_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/labels{/name}","releases_url":"https://api.github.com/repos/infoeducatie/infoeducatie-api/releases{/id}","created_at":"2014-07-13T13:59:22Z","updated_at":"2015-06-29T15:23:32Z","pushed_at":"2015-07-01T08:36:03Z","git_url":"git://github.com/infoeducatie/infoeducatie-api.git","ssh_url":"git@github.com:infoeducatie/infoeducatie-api.git","clone_url":"https://github.com/infoeducatie/infoeducatie-api.git","svn_url":"https://github.com/infoeducatie/infoeducatie-api","homepage":"","size":929,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52"},"html":{"href":"https://github.com/infoeducatie/infoeducatie-api/pull/52"},"issue":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/52"},"comments":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/infoeducatie/infoeducatie-api/statuses/a9798969a9b592988c7b8d4feacd27c8f86b2b8d"}}}}