{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/2","id":228158531,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MTU4NTMx","html_url":"https://github.com/countrysidebible/cbc-media-api/pull/2","diff_url":"https://github.com/countrysidebible/cbc-media-api/pull/2.diff","patch_url":"https://github.com/countrysidebible/cbc-media-api/pull/2.patch","issue_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/2","number":2,"state":"closed","locked":false,"title":"Models and entities","user":{"login":"Josh-TX","id":12686624,"node_id":"MDQ6VXNlcjEyNjg2NjI0","avatar_url":"https://avatars3.githubusercontent.com/u/12686624?v=4","gravatar_id":"","url":"https://api.github.com/users/Josh-TX","html_url":"https://github.com/Josh-TX","followers_url":"https://api.github.com/users/Josh-TX/followers","following_url":"https://api.github.com/users/Josh-TX/following{/other_user}","gists_url":"https://api.github.com/users/Josh-TX/gists{/gist_id}","starred_url":"https://api.github.com/users/Josh-TX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Josh-TX/subscriptions","organizations_url":"https://api.github.com/users/Josh-TX/orgs","repos_url":"https://api.github.com/users/Josh-TX/repos","events_url":"https://api.github.com/users/Josh-TX/events{/privacy}","received_events_url":"https://api.github.com/users/Josh-TX/received_events","type":"User","site_admin":false},"body":"features of this PR:\r\n* added models and entities based on our meeting discussion\r\n* updated openAPI doc\r\n* added Validator class that provides re-usable & chainable validation rules\r\n* updated media routes to use new models, entities, and validators\r\n\r\nNote that I haven't actually confirmed that all the APIs are working properly, since the Posting media requires you to have _Ids for both a teacher and a series, and I don't have those APIs made yet. I was mostly just testing that the validation rules work. ","created_at":"2018-11-04T05:25:58Z","updated_at":"2018-11-05T16:36:42Z","closed_at":"2018-11-05T16:36:42Z","merged_at":"2018-11-05T16:36:42Z","merge_commit_sha":"5dd418dc0f11cf97500bf935a2094f779a483ea9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/2/commits","review_comments_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/2/comments","review_comment_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/2/comments","statuses_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/statuses/86982e5ca1ab3e432f3de1ff0c723e05d43485f4","head":{"label":"countrysidebible:models-and-entities","ref":"models-and-entities","sha":"86982e5ca1ab3e432f3de1ff0c723e05d43485f4","user":{"login":"countrysidebible","id":44127991,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MTI3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/44127991?v=4","gravatar_id":"","url":"https://api.github.com/users/countrysidebible","html_url":"https://github.com/countrysidebible","followers_url":"https://api.github.com/users/countrysidebible/followers","following_url":"https://api.github.com/users/countrysidebible/following{/other_user}","gists_url":"https://api.github.com/users/countrysidebible/gists{/gist_id}","starred_url":"https://api.github.com/users/countrysidebible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/countrysidebible/subscriptions","organizations_url":"https://api.github.com/users/countrysidebible/orgs","repos_url":"https://api.github.com/users/countrysidebible/repos","events_url":"https://api.github.com/users/countrysidebible/events{/privacy}","received_events_url":"https://api.github.com/users/countrysidebible/received_events","type":"Organization","site_admin":false},"repo":{"id":154001918,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQwMDE5MTg=","name":"cbc-media-api","full_name":"countrysidebible/cbc-media-api","private":false,"owner":{"login":"countrysidebible","id":44127991,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MTI3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/44127991?v=4","gravatar_id":"","url":"https://api.github.com/users/countrysidebible","html_url":"https://github.com/countrysidebible","followers_url":"https://api.github.com/users/countrysidebible/followers","following_url":"https://api.github.com/users/countrysidebible/following{/other_user}","gists_url":"https://api.github.com/users/countrysidebible/gists{/gist_id}","starred_url":"https://api.github.com/users/countrysidebible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/countrysidebible/subscriptions","organizations_url":"https://api.github.com/users/countrysidebible/orgs","repos_url":"https://api.github.com/users/countrysidebible/repos","events_url":"https://api.github.com/users/countrysidebible/events{/privacy}","received_events_url":"https://api.github.com/users/countrysidebible/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/countrysidebible/cbc-media-api","description":"Proof of concept CRUD using Node, Express, and MongoDB","fork":false,"url":"https://api.github.com/repos/countrysidebible/cbc-media-api","forks_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/forks","keys_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/teams","hooks_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/hooks","issue_events_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/events{/number}","events_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/events","assignees_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/assignees{/user}","branches_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/branches{/branch}","tags_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/tags","blobs_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/statuses/{sha}","languages_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/languages","stargazers_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/stargazers","contributors_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/contributors","subscribers_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/subscribers","subscription_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/subscription","commits_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/contents/{+path}","compare_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/merges","archive_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/downloads","issues_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues{/number}","pulls_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls{/number}","milestones_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/milestones{/number}","notifications_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/labels{/name}","releases_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/releases{/id}","deployments_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/deployments","created_at":"2018-10-21T11:41:14Z","updated_at":"2018-10-21T12:33:29Z","pushed_at":"2018-11-05T16:36:41Z","git_url":"git://github.com/countrysidebible/cbc-media-api.git","ssh_url":"git@github.com:countrysidebible/cbc-media-api.git","clone_url":"https://github.com/countrysidebible/cbc-media-api.git","svn_url":"https://github.com/countrysidebible/cbc-media-api","homepage":"","size":202,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"countrysidebible:dev","ref":"dev","sha":"0fcaf72c68dd0562cba597fd98f1d3abb41e3905","user":{"login":"countrysidebible","id":44127991,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MTI3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/44127991?v=4","gravatar_id":"","url":"https://api.github.com/users/countrysidebible","html_url":"https://github.com/countrysidebible","followers_url":"https://api.github.com/users/countrysidebible/followers","following_url":"https://api.github.com/users/countrysidebible/following{/other_user}","gists_url":"https://api.github.com/users/countrysidebible/gists{/gist_id}","starred_url":"https://api.github.com/users/countrysidebible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/countrysidebible/subscriptions","organizations_url":"https://api.github.com/users/countrysidebible/orgs","repos_url":"https://api.github.com/users/countrysidebible/repos","events_url":"https://api.github.com/users/countrysidebible/events{/privacy}","received_events_url":"https://api.github.com/users/countrysidebible/received_events","type":"Organization","site_admin":false},"repo":{"id":154001918,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQwMDE5MTg=","name":"cbc-media-api","full_name":"countrysidebible/cbc-media-api","private":false,"owner":{"login":"countrysidebible","id":44127991,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MTI3OTkx","avatar_url":"https://avatars3.githubusercontent.com/u/44127991?v=4","gravatar_id":"","url":"https://api.github.com/users/countrysidebible","html_url":"https://github.com/countrysidebible","followers_url":"https://api.github.com/users/countrysidebible/followers","following_url":"https://api.github.com/users/countrysidebible/following{/other_user}","gists_url":"https://api.github.com/users/countrysidebible/gists{/gist_id}","starred_url":"https://api.github.com/users/countrysidebible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/countrysidebible/subscriptions","organizations_url":"https://api.github.com/users/countrysidebible/orgs","repos_url":"https://api.github.com/users/countrysidebible/repos","events_url":"https://api.github.com/users/countrysidebible/events{/privacy}","received_events_url":"https://api.github.com/users/countrysidebible/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/countrysidebible/cbc-media-api","description":"Proof of concept CRUD using Node, Express, and MongoDB","fork":false,"url":"https://api.github.com/repos/countrysidebible/cbc-media-api","forks_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/forks","keys_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/teams","hooks_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/hooks","issue_events_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/events{/number}","events_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/events","assignees_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/assignees{/user}","branches_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/branches{/branch}","tags_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/tags","blobs_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/statuses/{sha}","languages_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/languages","stargazers_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/stargazers","contributors_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/contributors","subscribers_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/subscribers","subscription_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/subscription","commits_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/contents/{+path}","compare_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/merges","archive_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/downloads","issues_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues{/number}","pulls_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls{/number}","milestones_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/milestones{/number}","notifications_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/labels{/name}","releases_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/releases{/id}","deployments_url":"https://api.github.com/repos/countrysidebible/cbc-media-api/deployments","created_at":"2018-10-21T11:41:14Z","updated_at":"2018-10-21T12:33:29Z","pushed_at":"2018-11-05T16:36:41Z","git_url":"git://github.com/countrysidebible/cbc-media-api.git","ssh_url":"git@github.com:countrysidebible/cbc-media-api.git","clone_url":"https://github.com/countrysidebible/cbc-media-api.git","svn_url":"https://github.com/countrysidebible/cbc-media-api","homepage":"","size":202,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/2"},"html":{"href":"https://github.com/countrysidebible/cbc-media-api/pull/2"},"issue":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/2"},"comments":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/countrysidebible/cbc-media-api/statuses/86982e5ca1ab3e432f3de1ff0c723e05d43485f4"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"thisanimus","id":6612542,"node_id":"MDQ6VXNlcjY2MTI1NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/6612542?v=4","gravatar_id":"","url":"https://api.github.com/users/thisanimus","html_url":"https://github.com/thisanimus","followers_url":"https://api.github.com/users/thisanimus/followers","following_url":"https://api.github.com/users/thisanimus/following{/other_user}","gists_url":"https://api.github.com/users/thisanimus/gists{/gist_id}","starred_url":"https://api.github.com/users/thisanimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thisanimus/subscriptions","organizations_url":"https://api.github.com/users/thisanimus/orgs","repos_url":"https://api.github.com/users/thisanimus/repos","events_url":"https://api.github.com/users/thisanimus/events{/privacy}","received_events_url":"https://api.github.com/users/thisanimus/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":1036,"deletions":354,"changed_files":23}}
{"actor":{"display_login":"thisanimus"}}