{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/1","id":131944984,"html_url":"https://github.com/joesdesigns/hotelbookings/pull/1","diff_url":"https://github.com/joesdesigns/hotelbookings/pull/1.diff","patch_url":"https://github.com/joesdesigns/hotelbookings/pull/1.patch","issue_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/1","number":1,"state":"closed","locked":false,"title":"Find Available Rooms (initial draft)","user":{"login":"joesdesigns","id":30391611,"avatar_url":"https://avatars1.githubusercontent.com/u/30391611?v=4","gravatar_id":"","url":"https://api.github.com/users/joesdesigns","html_url":"https://github.com/joesdesigns","followers_url":"https://api.github.com/users/joesdesigns/followers","following_url":"https://api.github.com/users/joesdesigns/following{/other_user}","gists_url":"https://api.github.com/users/joesdesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/joesdesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joesdesigns/subscriptions","organizations_url":"https://api.github.com/users/joesdesigns/orgs","repos_url":"https://api.github.com/users/joesdesigns/repos","events_url":"https://api.github.com/users/joesdesigns/events{/privacy}","received_events_url":"https://api.github.com/users/joesdesigns/received_events","type":"User","site_admin":false},"body":"We want to send a request with the number of guests and bags required.\r\n\r\nThis method will search for rooms that are unoccupied and clean.\r\n\r\nFor this first pass lets only assign guests with bags to rooms that have storage and\r\nguests with no bags to rooms that have no storage.\r\n\r\nA third case (later) is if we have a guest without a bag that just needs a bed, in theory\r\nwe could find a room occupied that has a free bed and make that an option.  That would give\r\nus maximum capacity.","created_at":"2017-07-23T19:05:50Z","updated_at":"2017-07-23T19:05:58Z","closed_at":"2017-07-23T19:05:58Z","merged_at":"2017-07-23T19:05:58Z","merge_commit_sha":"ee2d3c885d223beccdef059230963173ba01c7c6","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/1/commits","review_comments_url":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/1/comments","review_comment_url":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/1/comments","statuses_url":"https://api.github.com/repos/joesdesigns/hotelbookings/statuses/cb38a69a97d80cb0ba6c49834260a5c5b143d1bc","head":{"label":"joesdesigns:feature/add-book-function","ref":"feature/add-book-function","sha":"cb38a69a97d80cb0ba6c49834260a5c5b143d1bc","user":{"login":"joesdesigns","id":30391611,"avatar_url":"https://avatars1.githubusercontent.com/u/30391611?v=4","gravatar_id":"","url":"https://api.github.com/users/joesdesigns","html_url":"https://github.com/joesdesigns","followers_url":"https://api.github.com/users/joesdesigns/followers","following_url":"https://api.github.com/users/joesdesigns/following{/other_user}","gists_url":"https://api.github.com/users/joesdesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/joesdesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joesdesigns/subscriptions","organizations_url":"https://api.github.com/users/joesdesigns/orgs","repos_url":"https://api.github.com/users/joesdesigns/repos","events_url":"https://api.github.com/users/joesdesigns/events{/privacy}","received_events_url":"https://api.github.com/users/joesdesigns/received_events","type":"User","site_admin":false},"repo":{"id":98114791,"name":"hotelbookings","full_name":"joesdesigns/hotelbookings","owner":{"login":"joesdesigns","id":30391611,"avatar_url":"https://avatars1.githubusercontent.com/u/30391611?v=4","gravatar_id":"","url":"https://api.github.com/users/joesdesigns","html_url":"https://github.com/joesdesigns","followers_url":"https://api.github.com/users/joesdesigns/followers","following_url":"https://api.github.com/users/joesdesigns/following{/other_user}","gists_url":"https://api.github.com/users/joesdesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/joesdesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joesdesigns/subscriptions","organizations_url":"https://api.github.com/users/joesdesigns/orgs","repos_url":"https://api.github.com/users/joesdesigns/repos","events_url":"https://api.github.com/users/joesdesigns/events{/privacy}","received_events_url":"https://api.github.com/users/joesdesigns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joesdesigns/hotelbookings","description":"This project is a concept for booking rooms at a fictional hotel","fork":false,"url":"https://api.github.com/repos/joesdesigns/hotelbookings","forks_url":"https://api.github.com/repos/joesdesigns/hotelbookings/forks","keys_url":"https://api.github.com/repos/joesdesigns/hotelbookings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joesdesigns/hotelbookings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joesdesigns/hotelbookings/teams","hooks_url":"https://api.github.com/repos/joesdesigns/hotelbookings/hooks","issue_events_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/events{/number}","events_url":"https://api.github.com/repos/joesdesigns/hotelbookings/events","assignees_url":"https://api.github.com/repos/joesdesigns/hotelbookings/assignees{/user}","branches_url":"https://api.github.com/repos/joesdesigns/hotelbookings/branches{/branch}","tags_url":"https://api.github.com/repos/joesdesigns/hotelbookings/tags","blobs_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/refs{/sha}","trees_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joesdesigns/hotelbookings/statuses/{sha}","languages_url":"https://api.github.com/repos/joesdesigns/hotelbookings/languages","stargazers_url":"https://api.github.com/repos/joesdesigns/hotelbookings/stargazers","contributors_url":"https://api.github.com/repos/joesdesigns/hotelbookings/contributors","subscribers_url":"https://api.github.com/repos/joesdesigns/hotelbookings/subscribers","subscription_url":"https://api.github.com/repos/joesdesigns/hotelbookings/subscription","commits_url":"https://api.github.com/repos/joesdesigns/hotelbookings/commits{/sha}","git_commits_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/commits{/sha}","comments_url":"https://api.github.com/repos/joesdesigns/hotelbookings/comments{/number}","issue_comment_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/comments{/number}","contents_url":"https://api.github.com/repos/joesdesigns/hotelbookings/contents/{+path}","compare_url":"https://api.github.com/repos/joesdesigns/hotelbookings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joesdesigns/hotelbookings/merges","archive_url":"https://api.github.com/repos/joesdesigns/hotelbookings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joesdesigns/hotelbookings/downloads","issues_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues{/number}","pulls_url":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls{/number}","milestones_url":"https://api.github.com/repos/joesdesigns/hotelbookings/milestones{/number}","notifications_url":"https://api.github.com/repos/joesdesigns/hotelbookings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joesdesigns/hotelbookings/labels{/name}","releases_url":"https://api.github.com/repos/joesdesigns/hotelbookings/releases{/id}","deployments_url":"https://api.github.com/repos/joesdesigns/hotelbookings/deployments","created_at":"2017-07-23T17:42:08Z","updated_at":"2017-07-23T17:54:14Z","pushed_at":"2017-07-23T19:05:58Z","git_url":"git://github.com/joesdesigns/hotelbookings.git","ssh_url":"git@github.com:joesdesigns/hotelbookings.git","clone_url":"https://github.com/joesdesigns/hotelbookings.git","svn_url":"https://github.com/joesdesigns/hotelbookings","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"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":"joesdesigns:master","ref":"master","sha":"1fd9435c38cd8607fd419840ed873d1debaff3ba","user":{"login":"joesdesigns","id":30391611,"avatar_url":"https://avatars1.githubusercontent.com/u/30391611?v=4","gravatar_id":"","url":"https://api.github.com/users/joesdesigns","html_url":"https://github.com/joesdesigns","followers_url":"https://api.github.com/users/joesdesigns/followers","following_url":"https://api.github.com/users/joesdesigns/following{/other_user}","gists_url":"https://api.github.com/users/joesdesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/joesdesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joesdesigns/subscriptions","organizations_url":"https://api.github.com/users/joesdesigns/orgs","repos_url":"https://api.github.com/users/joesdesigns/repos","events_url":"https://api.github.com/users/joesdesigns/events{/privacy}","received_events_url":"https://api.github.com/users/joesdesigns/received_events","type":"User","site_admin":false},"repo":{"id":98114791,"name":"hotelbookings","full_name":"joesdesigns/hotelbookings","owner":{"login":"joesdesigns","id":30391611,"avatar_url":"https://avatars1.githubusercontent.com/u/30391611?v=4","gravatar_id":"","url":"https://api.github.com/users/joesdesigns","html_url":"https://github.com/joesdesigns","followers_url":"https://api.github.com/users/joesdesigns/followers","following_url":"https://api.github.com/users/joesdesigns/following{/other_user}","gists_url":"https://api.github.com/users/joesdesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/joesdesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joesdesigns/subscriptions","organizations_url":"https://api.github.com/users/joesdesigns/orgs","repos_url":"https://api.github.com/users/joesdesigns/repos","events_url":"https://api.github.com/users/joesdesigns/events{/privacy}","received_events_url":"https://api.github.com/users/joesdesigns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joesdesigns/hotelbookings","description":"This project is a concept for booking rooms at a fictional hotel","fork":false,"url":"https://api.github.com/repos/joesdesigns/hotelbookings","forks_url":"https://api.github.com/repos/joesdesigns/hotelbookings/forks","keys_url":"https://api.github.com/repos/joesdesigns/hotelbookings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joesdesigns/hotelbookings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joesdesigns/hotelbookings/teams","hooks_url":"https://api.github.com/repos/joesdesigns/hotelbookings/hooks","issue_events_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/events{/number}","events_url":"https://api.github.com/repos/joesdesigns/hotelbookings/events","assignees_url":"https://api.github.com/repos/joesdesigns/hotelbookings/assignees{/user}","branches_url":"https://api.github.com/repos/joesdesigns/hotelbookings/branches{/branch}","tags_url":"https://api.github.com/repos/joesdesigns/hotelbookings/tags","blobs_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/refs{/sha}","trees_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joesdesigns/hotelbookings/statuses/{sha}","languages_url":"https://api.github.com/repos/joesdesigns/hotelbookings/languages","stargazers_url":"https://api.github.com/repos/joesdesigns/hotelbookings/stargazers","contributors_url":"https://api.github.com/repos/joesdesigns/hotelbookings/contributors","subscribers_url":"https://api.github.com/repos/joesdesigns/hotelbookings/subscribers","subscription_url":"https://api.github.com/repos/joesdesigns/hotelbookings/subscription","commits_url":"https://api.github.com/repos/joesdesigns/hotelbookings/commits{/sha}","git_commits_url":"https://api.github.com/repos/joesdesigns/hotelbookings/git/commits{/sha}","comments_url":"https://api.github.com/repos/joesdesigns/hotelbookings/comments{/number}","issue_comment_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/comments{/number}","contents_url":"https://api.github.com/repos/joesdesigns/hotelbookings/contents/{+path}","compare_url":"https://api.github.com/repos/joesdesigns/hotelbookings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joesdesigns/hotelbookings/merges","archive_url":"https://api.github.com/repos/joesdesigns/hotelbookings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joesdesigns/hotelbookings/downloads","issues_url":"https://api.github.com/repos/joesdesigns/hotelbookings/issues{/number}","pulls_url":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls{/number}","milestones_url":"https://api.github.com/repos/joesdesigns/hotelbookings/milestones{/number}","notifications_url":"https://api.github.com/repos/joesdesigns/hotelbookings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joesdesigns/hotelbookings/labels{/name}","releases_url":"https://api.github.com/repos/joesdesigns/hotelbookings/releases{/id}","deployments_url":"https://api.github.com/repos/joesdesigns/hotelbookings/deployments","created_at":"2017-07-23T17:42:08Z","updated_at":"2017-07-23T17:54:14Z","pushed_at":"2017-07-23T19:05:58Z","git_url":"git://github.com/joesdesigns/hotelbookings.git","ssh_url":"git@github.com:joesdesigns/hotelbookings.git","clone_url":"https://github.com/joesdesigns/hotelbookings.git","svn_url":"https://github.com/joesdesigns/hotelbookings","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/1"},"html":{"href":"https://github.com/joesdesigns/hotelbookings/pull/1"},"issue":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/1"},"comments":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/joesdesigns/hotelbookings/statuses/cb38a69a97d80cb0ba6c49834260a5c5b143d1bc"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"joesdesigns","id":30391611,"avatar_url":"https://avatars1.githubusercontent.com/u/30391611?v=4","gravatar_id":"","url":"https://api.github.com/users/joesdesigns","html_url":"https://github.com/joesdesigns","followers_url":"https://api.github.com/users/joesdesigns/followers","following_url":"https://api.github.com/users/joesdesigns/following{/other_user}","gists_url":"https://api.github.com/users/joesdesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/joesdesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joesdesigns/subscriptions","organizations_url":"https://api.github.com/users/joesdesigns/orgs","repos_url":"https://api.github.com/users/joesdesigns/repos","events_url":"https://api.github.com/users/joesdesigns/events{/privacy}","received_events_url":"https://api.github.com/users/joesdesigns/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":32,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"joesdesigns"}}