{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/ScarletApartments/backend/pulls/3","id":34695709,"html_url":"https://github.com/ScarletApartments/backend/pull/3","diff_url":"https://github.com/ScarletApartments/backend/pull/3.diff","patch_url":"https://github.com/ScarletApartments/backend/pull/3.patch","issue_url":"https://api.github.com/repos/ScarletApartments/backend/issues/3","number":3,"state":"open","locked":false,"title":"Refractored students.js and landlord.js","user":{"login":"kapadiamush","id":2934832,"avatar_url":"https://avatars.githubusercontent.com/u/2934832?v=3","gravatar_id":"","url":"https://api.github.com/users/kapadiamush","html_url":"https://github.com/kapadiamush","followers_url":"https://api.github.com/users/kapadiamush/followers","following_url":"https://api.github.com/users/kapadiamush/following{/other_user}","gists_url":"https://api.github.com/users/kapadiamush/gists{/gist_id}","starred_url":"https://api.github.com/users/kapadiamush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapadiamush/subscriptions","organizations_url":"https://api.github.com/users/kapadiamush/orgs","repos_url":"https://api.github.com/users/kapadiamush/repos","events_url":"https://api.github.com/users/kapadiamush/events{/privacy}","received_events_url":"https://api.github.com/users/kapadiamush/received_events","type":"User","site_admin":false},"body":"I pulled out creating and editing reviews from `routes/students.js` and `routes/landlord.js` and put it into a separate `routes/reviews.js`. It takes care of all review related routes (creating, editing, getting and deleting).\r\n\r\nDid the same things with comments.\r\n\r\nThis should help make the code a bit more modular and easy to read. The `landlord.js` and the `students.js` files were getting much too large and had too much functionality packed into them. ","created_at":"2015-05-05T04:29:19Z","updated_at":"2015-05-05T04:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ScarletApartments/backend/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ScarletApartments/backend/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ScarletApartments/backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ScarletApartments/backend/issues/3/comments","statuses_url":"https://api.github.com/repos/ScarletApartments/backend/statuses/df47284bf0f51a550222a1902040df441f9a809b","head":{"label":"kapadiamush:master","ref":"master","sha":"df47284bf0f51a550222a1902040df441f9a809b","user":{"login":"kapadiamush","id":2934832,"avatar_url":"https://avatars.githubusercontent.com/u/2934832?v=3","gravatar_id":"","url":"https://api.github.com/users/kapadiamush","html_url":"https://github.com/kapadiamush","followers_url":"https://api.github.com/users/kapadiamush/followers","following_url":"https://api.github.com/users/kapadiamush/following{/other_user}","gists_url":"https://api.github.com/users/kapadiamush/gists{/gist_id}","starred_url":"https://api.github.com/users/kapadiamush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapadiamush/subscriptions","organizations_url":"https://api.github.com/users/kapadiamush/orgs","repos_url":"https://api.github.com/users/kapadiamush/repos","events_url":"https://api.github.com/users/kapadiamush/events{/privacy}","received_events_url":"https://api.github.com/users/kapadiamush/received_events","type":"User","site_admin":false},"repo":{"id":34881071,"name":"backend","full_name":"kapadiamush/backend","owner":{"login":"kapadiamush","id":2934832,"avatar_url":"https://avatars.githubusercontent.com/u/2934832?v=3","gravatar_id":"","url":"https://api.github.com/users/kapadiamush","html_url":"https://github.com/kapadiamush","followers_url":"https://api.github.com/users/kapadiamush/followers","following_url":"https://api.github.com/users/kapadiamush/following{/other_user}","gists_url":"https://api.github.com/users/kapadiamush/gists{/gist_id}","starred_url":"https://api.github.com/users/kapadiamush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapadiamush/subscriptions","organizations_url":"https://api.github.com/users/kapadiamush/orgs","repos_url":"https://api.github.com/users/kapadiamush/repos","events_url":"https://api.github.com/users/kapadiamush/events{/privacy}","received_events_url":"https://api.github.com/users/kapadiamush/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kapadiamush/backend","description":"The backend API for the Scarlet Apartments website","fork":true,"url":"https://api.github.com/repos/kapadiamush/backend","forks_url":"https://api.github.com/repos/kapadiamush/backend/forks","keys_url":"https://api.github.com/repos/kapadiamush/backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kapadiamush/backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kapadiamush/backend/teams","hooks_url":"https://api.github.com/repos/kapadiamush/backend/hooks","issue_events_url":"https://api.github.com/repos/kapadiamush/backend/issues/events{/number}","events_url":"https://api.github.com/repos/kapadiamush/backend/events","assignees_url":"https://api.github.com/repos/kapadiamush/backend/assignees{/user}","branches_url":"https://api.github.com/repos/kapadiamush/backend/branches{/branch}","tags_url":"https://api.github.com/repos/kapadiamush/backend/tags","blobs_url":"https://api.github.com/repos/kapadiamush/backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kapadiamush/backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kapadiamush/backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/kapadiamush/backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kapadiamush/backend/statuses/{sha}","languages_url":"https://api.github.com/repos/kapadiamush/backend/languages","stargazers_url":"https://api.github.com/repos/kapadiamush/backend/stargazers","contributors_url":"https://api.github.com/repos/kapadiamush/backend/contributors","subscribers_url":"https://api.github.com/repos/kapadiamush/backend/subscribers","subscription_url":"https://api.github.com/repos/kapadiamush/backend/subscription","commits_url":"https://api.github.com/repos/kapadiamush/backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/kapadiamush/backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/kapadiamush/backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/kapadiamush/backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/kapadiamush/backend/contents/{+path}","compare_url":"https://api.github.com/repos/kapadiamush/backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kapadiamush/backend/merges","archive_url":"https://api.github.com/repos/kapadiamush/backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kapadiamush/backend/downloads","issues_url":"https://api.github.com/repos/kapadiamush/backend/issues{/number}","pulls_url":"https://api.github.com/repos/kapadiamush/backend/pulls{/number}","milestones_url":"https://api.github.com/repos/kapadiamush/backend/milestones{/number}","notifications_url":"https://api.github.com/repos/kapadiamush/backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kapadiamush/backend/labels{/name}","releases_url":"https://api.github.com/repos/kapadiamush/backend/releases{/id}","created_at":"2015-04-30T23:05:39Z","updated_at":"2015-05-05T04:20:52Z","pushed_at":"2015-05-05T04:20:52Z","git_url":"git://github.com/kapadiamush/backend.git","ssh_url":"git@github.com:kapadiamush/backend.git","clone_url":"https://github.com/kapadiamush/backend.git","svn_url":"https://github.com/kapadiamush/backend","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ScarletApartments:master","ref":"master","sha":"0d9b073ff0607f879d5ba1d69d3203648fb33a9f","user":{"login":"ScarletApartments","id":12192504,"avatar_url":"https://avatars.githubusercontent.com/u/12192504?v=3","gravatar_id":"","url":"https://api.github.com/users/ScarletApartments","html_url":"https://github.com/ScarletApartments","followers_url":"https://api.github.com/users/ScarletApartments/followers","following_url":"https://api.github.com/users/ScarletApartments/following{/other_user}","gists_url":"https://api.github.com/users/ScarletApartments/gists{/gist_id}","starred_url":"https://api.github.com/users/ScarletApartments/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScarletApartments/subscriptions","organizations_url":"https://api.github.com/users/ScarletApartments/orgs","repos_url":"https://api.github.com/users/ScarletApartments/repos","events_url":"https://api.github.com/users/ScarletApartments/events{/privacy}","received_events_url":"https://api.github.com/users/ScarletApartments/received_events","type":"Organization","site_admin":false},"repo":{"id":34880995,"name":"backend","full_name":"ScarletApartments/backend","owner":{"login":"ScarletApartments","id":12192504,"avatar_url":"https://avatars.githubusercontent.com/u/12192504?v=3","gravatar_id":"","url":"https://api.github.com/users/ScarletApartments","html_url":"https://github.com/ScarletApartments","followers_url":"https://api.github.com/users/ScarletApartments/followers","following_url":"https://api.github.com/users/ScarletApartments/following{/other_user}","gists_url":"https://api.github.com/users/ScarletApartments/gists{/gist_id}","starred_url":"https://api.github.com/users/ScarletApartments/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScarletApartments/subscriptions","organizations_url":"https://api.github.com/users/ScarletApartments/orgs","repos_url":"https://api.github.com/users/ScarletApartments/repos","events_url":"https://api.github.com/users/ScarletApartments/events{/privacy}","received_events_url":"https://api.github.com/users/ScarletApartments/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ScarletApartments/backend","description":"The backend API for the Scarlet Apartments website","fork":false,"url":"https://api.github.com/repos/ScarletApartments/backend","forks_url":"https://api.github.com/repos/ScarletApartments/backend/forks","keys_url":"https://api.github.com/repos/ScarletApartments/backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScarletApartments/backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScarletApartments/backend/teams","hooks_url":"https://api.github.com/repos/ScarletApartments/backend/hooks","issue_events_url":"https://api.github.com/repos/ScarletApartments/backend/issues/events{/number}","events_url":"https://api.github.com/repos/ScarletApartments/backend/events","assignees_url":"https://api.github.com/repos/ScarletApartments/backend/assignees{/user}","branches_url":"https://api.github.com/repos/ScarletApartments/backend/branches{/branch}","tags_url":"https://api.github.com/repos/ScarletApartments/backend/tags","blobs_url":"https://api.github.com/repos/ScarletApartments/backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScarletApartments/backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScarletApartments/backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScarletApartments/backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScarletApartments/backend/statuses/{sha}","languages_url":"https://api.github.com/repos/ScarletApartments/backend/languages","stargazers_url":"https://api.github.com/repos/ScarletApartments/backend/stargazers","contributors_url":"https://api.github.com/repos/ScarletApartments/backend/contributors","subscribers_url":"https://api.github.com/repos/ScarletApartments/backend/subscribers","subscription_url":"https://api.github.com/repos/ScarletApartments/backend/subscription","commits_url":"https://api.github.com/repos/ScarletApartments/backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScarletApartments/backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScarletApartments/backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScarletApartments/backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScarletApartments/backend/contents/{+path}","compare_url":"https://api.github.com/repos/ScarletApartments/backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScarletApartments/backend/merges","archive_url":"https://api.github.com/repos/ScarletApartments/backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScarletApartments/backend/downloads","issues_url":"https://api.github.com/repos/ScarletApartments/backend/issues{/number}","pulls_url":"https://api.github.com/repos/ScarletApartments/backend/pulls{/number}","milestones_url":"https://api.github.com/repos/ScarletApartments/backend/milestones{/number}","notifications_url":"https://api.github.com/repos/ScarletApartments/backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScarletApartments/backend/labels{/name}","releases_url":"https://api.github.com/repos/ScarletApartments/backend/releases{/id}","created_at":"2015-04-30T23:02:52Z","updated_at":"2015-05-05T02:16:12Z","pushed_at":"2015-05-05T02:16:12Z","git_url":"git://github.com/ScarletApartments/backend.git","ssh_url":"git@github.com:ScarletApartments/backend.git","clone_url":"https://github.com/ScarletApartments/backend.git","svn_url":"https://github.com/ScarletApartments/backend","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ScarletApartments/backend/pulls/3"},"html":{"href":"https://github.com/ScarletApartments/backend/pull/3"},"issue":{"href":"https://api.github.com/repos/ScarletApartments/backend/issues/3"},"comments":{"href":"https://api.github.com/repos/ScarletApartments/backend/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ScarletApartments/backend/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ScarletApartments/backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ScarletApartments/backend/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ScarletApartments/backend/statuses/df47284bf0f51a550222a1902040df441f9a809b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":590,"deletions":550,"changed_files":6}}