{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/travist/resourcejs/pulls/23","id":43825645,"html_url":"https://github.com/travist/resourcejs/pull/23","diff_url":"https://github.com/travist/resourcejs/pull/23.diff","patch_url":"https://github.com/travist/resourcejs/pull/23.patch","issue_url":"https://api.github.com/repos/travist/resourcejs/issues/23","number":23,"state":"open","locked":false,"title":"Bugfix/fix middleware issues with find by id and update","user":{"login":"zackurben","id":2689122,"avatar_url":"https://avatars.githubusercontent.com/u/2689122?v=3","gravatar_id":"","url":"https://api.github.com/users/zackurben","html_url":"https://github.com/zackurben","followers_url":"https://api.github.com/users/zackurben/followers","following_url":"https://api.github.com/users/zackurben/following{/other_user}","gists_url":"https://api.github.com/users/zackurben/gists{/gist_id}","starred_url":"https://api.github.com/users/zackurben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackurben/subscriptions","organizations_url":"https://api.github.com/users/zackurben/orgs","repos_url":"https://api.github.com/users/zackurben/repos","events_url":"https://api.github.com/users/zackurben/events{/privacy}","received_events_url":"https://api.github.com/users/zackurben/received_events","type":"User","site_admin":false},"body":"Fixing issue with put calls to resources. Currently put calls do not invoke mongoose middleware. The bug was introduced by my last PR while I attempted to fix other issues with subdocuments not being saved correctly (https://github.com/travist/resourcejs/pull/19).\r\n\r\nThe subdocument issue has been fixed, so the update change was reverted.","created_at":"2015-09-01T00:26:39Z","updated_at":"2015-09-01T00:26:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/travist/resourcejs/pulls/23/commits","review_comments_url":"https://api.github.com/repos/travist/resourcejs/pulls/23/comments","review_comment_url":"https://api.github.com/repos/travist/resourcejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travist/resourcejs/issues/23/comments","statuses_url":"https://api.github.com/repos/travist/resourcejs/statuses/3f2ba2a5efbcd081eed72a462c508cf3f452f8ef","head":{"label":"zackurben:bugfix/fix-middleware-issues-with-findByIdAndUpdate","ref":"bugfix/fix-middleware-issues-with-findByIdAndUpdate","sha":"3f2ba2a5efbcd081eed72a462c508cf3f452f8ef","user":{"login":"zackurben","id":2689122,"avatar_url":"https://avatars.githubusercontent.com/u/2689122?v=3","gravatar_id":"","url":"https://api.github.com/users/zackurben","html_url":"https://github.com/zackurben","followers_url":"https://api.github.com/users/zackurben/followers","following_url":"https://api.github.com/users/zackurben/following{/other_user}","gists_url":"https://api.github.com/users/zackurben/gists{/gist_id}","starred_url":"https://api.github.com/users/zackurben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackurben/subscriptions","organizations_url":"https://api.github.com/users/zackurben/orgs","repos_url":"https://api.github.com/users/zackurben/repos","events_url":"https://api.github.com/users/zackurben/events{/privacy}","received_events_url":"https://api.github.com/users/zackurben/received_events","type":"User","site_admin":false},"repo":{"id":36342020,"name":"resourcejs","full_name":"zackurben/resourcejs","owner":{"login":"zackurben","id":2689122,"avatar_url":"https://avatars.githubusercontent.com/u/2689122?v=3","gravatar_id":"","url":"https://api.github.com/users/zackurben","html_url":"https://github.com/zackurben","followers_url":"https://api.github.com/users/zackurben/followers","following_url":"https://api.github.com/users/zackurben/following{/other_user}","gists_url":"https://api.github.com/users/zackurben/gists{/gist_id}","starred_url":"https://api.github.com/users/zackurben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackurben/subscriptions","organizations_url":"https://api.github.com/users/zackurben/orgs","repos_url":"https://api.github.com/users/zackurben/repos","events_url":"https://api.github.com/users/zackurben/events{/privacy}","received_events_url":"https://api.github.com/users/zackurben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zackurben/resourcejs","description":"An minimalistic Express.js library that will reflect a Mongoose model onto a RESTful interface with a splash of Swagger.io love.","fork":true,"url":"https://api.github.com/repos/zackurben/resourcejs","forks_url":"https://api.github.com/repos/zackurben/resourcejs/forks","keys_url":"https://api.github.com/repos/zackurben/resourcejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zackurben/resourcejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zackurben/resourcejs/teams","hooks_url":"https://api.github.com/repos/zackurben/resourcejs/hooks","issue_events_url":"https://api.github.com/repos/zackurben/resourcejs/issues/events{/number}","events_url":"https://api.github.com/repos/zackurben/resourcejs/events","assignees_url":"https://api.github.com/repos/zackurben/resourcejs/assignees{/user}","branches_url":"https://api.github.com/repos/zackurben/resourcejs/branches{/branch}","tags_url":"https://api.github.com/repos/zackurben/resourcejs/tags","blobs_url":"https://api.github.com/repos/zackurben/resourcejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zackurben/resourcejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zackurben/resourcejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/zackurben/resourcejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zackurben/resourcejs/statuses/{sha}","languages_url":"https://api.github.com/repos/zackurben/resourcejs/languages","stargazers_url":"https://api.github.com/repos/zackurben/resourcejs/stargazers","contributors_url":"https://api.github.com/repos/zackurben/resourcejs/contributors","subscribers_url":"https://api.github.com/repos/zackurben/resourcejs/subscribers","subscription_url":"https://api.github.com/repos/zackurben/resourcejs/subscription","commits_url":"https://api.github.com/repos/zackurben/resourcejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/zackurben/resourcejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/zackurben/resourcejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/zackurben/resourcejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/zackurben/resourcejs/contents/{+path}","compare_url":"https://api.github.com/repos/zackurben/resourcejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zackurben/resourcejs/merges","archive_url":"https://api.github.com/repos/zackurben/resourcejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zackurben/resourcejs/downloads","issues_url":"https://api.github.com/repos/zackurben/resourcejs/issues{/number}","pulls_url":"https://api.github.com/repos/zackurben/resourcejs/pulls{/number}","milestones_url":"https://api.github.com/repos/zackurben/resourcejs/milestones{/number}","notifications_url":"https://api.github.com/repos/zackurben/resourcejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zackurben/resourcejs/labels{/name}","releases_url":"https://api.github.com/repos/zackurben/resourcejs/releases{/id}","created_at":"2015-05-27T04:08:34Z","updated_at":"2015-05-27T04:08:34Z","pushed_at":"2015-09-01T00:13:34Z","git_url":"git://github.com/zackurben/resourcejs.git","ssh_url":"git@github.com:zackurben/resourcejs.git","clone_url":"https://github.com/zackurben/resourcejs.git","svn_url":"https://github.com/zackurben/resourcejs","homepage":"","size":190,"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":"travist:master","ref":"master","sha":"8172c25333dbc3667f1cadb7de1dfad68a2567a7","user":{"login":"travist","id":130052,"avatar_url":"https://avatars.githubusercontent.com/u/130052?v=3","gravatar_id":"","url":"https://api.github.com/users/travist","html_url":"https://github.com/travist","followers_url":"https://api.github.com/users/travist/followers","following_url":"https://api.github.com/users/travist/following{/other_user}","gists_url":"https://api.github.com/users/travist/gists{/gist_id}","starred_url":"https://api.github.com/users/travist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travist/subscriptions","organizations_url":"https://api.github.com/users/travist/orgs","repos_url":"https://api.github.com/users/travist/repos","events_url":"https://api.github.com/users/travist/events{/privacy}","received_events_url":"https://api.github.com/users/travist/received_events","type":"User","site_admin":false},"repo":{"id":29701236,"name":"resourcejs","full_name":"travist/resourcejs","owner":{"login":"travist","id":130052,"avatar_url":"https://avatars.githubusercontent.com/u/130052?v=3","gravatar_id":"","url":"https://api.github.com/users/travist","html_url":"https://github.com/travist","followers_url":"https://api.github.com/users/travist/followers","following_url":"https://api.github.com/users/travist/following{/other_user}","gists_url":"https://api.github.com/users/travist/gists{/gist_id}","starred_url":"https://api.github.com/users/travist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travist/subscriptions","organizations_url":"https://api.github.com/users/travist/orgs","repos_url":"https://api.github.com/users/travist/repos","events_url":"https://api.github.com/users/travist/events{/privacy}","received_events_url":"https://api.github.com/users/travist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/travist/resourcejs","description":"An minimalistic Express.js library that will reflect a Mongoose model onto a RESTful interface with a splash of Swagger.io love.","fork":false,"url":"https://api.github.com/repos/travist/resourcejs","forks_url":"https://api.github.com/repos/travist/resourcejs/forks","keys_url":"https://api.github.com/repos/travist/resourcejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travist/resourcejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travist/resourcejs/teams","hooks_url":"https://api.github.com/repos/travist/resourcejs/hooks","issue_events_url":"https://api.github.com/repos/travist/resourcejs/issues/events{/number}","events_url":"https://api.github.com/repos/travist/resourcejs/events","assignees_url":"https://api.github.com/repos/travist/resourcejs/assignees{/user}","branches_url":"https://api.github.com/repos/travist/resourcejs/branches{/branch}","tags_url":"https://api.github.com/repos/travist/resourcejs/tags","blobs_url":"https://api.github.com/repos/travist/resourcejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travist/resourcejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travist/resourcejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/travist/resourcejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travist/resourcejs/statuses/{sha}","languages_url":"https://api.github.com/repos/travist/resourcejs/languages","stargazers_url":"https://api.github.com/repos/travist/resourcejs/stargazers","contributors_url":"https://api.github.com/repos/travist/resourcejs/contributors","subscribers_url":"https://api.github.com/repos/travist/resourcejs/subscribers","subscription_url":"https://api.github.com/repos/travist/resourcejs/subscription","commits_url":"https://api.github.com/repos/travist/resourcejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/travist/resourcejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/travist/resourcejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/travist/resourcejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/travist/resourcejs/contents/{+path}","compare_url":"https://api.github.com/repos/travist/resourcejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travist/resourcejs/merges","archive_url":"https://api.github.com/repos/travist/resourcejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travist/resourcejs/downloads","issues_url":"https://api.github.com/repos/travist/resourcejs/issues{/number}","pulls_url":"https://api.github.com/repos/travist/resourcejs/pulls{/number}","milestones_url":"https://api.github.com/repos/travist/resourcejs/milestones{/number}","notifications_url":"https://api.github.com/repos/travist/resourcejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travist/resourcejs/labels{/name}","releases_url":"https://api.github.com/repos/travist/resourcejs/releases{/id}","created_at":"2015-01-22T21:29:05Z","updated_at":"2015-08-15T21:32:31Z","pushed_at":"2015-09-01T00:26:39Z","git_url":"git://github.com/travist/resourcejs.git","ssh_url":"git@github.com:travist/resourcejs.git","clone_url":"https://github.com/travist/resourcejs.git","svn_url":"https://github.com/travist/resourcejs","homepage":"","size":477,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travist/resourcejs/pulls/23"},"html":{"href":"https://github.com/travist/resourcejs/pull/23"},"issue":{"href":"https://api.github.com/repos/travist/resourcejs/issues/23"},"comments":{"href":"https://api.github.com/repos/travist/resourcejs/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/travist/resourcejs/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/travist/resourcejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travist/resourcejs/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/travist/resourcejs/statuses/3f2ba2a5efbcd081eed72a462c508cf3f452f8ef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":43,"deletions":27,"changed_files":2}}