{"action":"closed","number":813,"pull_request":{"url":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/813","id":78876772,"html_url":"https://github.com/getify/You-Dont-Know-JS/pull/813","diff_url":"https://github.com/getify/You-Dont-Know-JS/pull/813.diff","patch_url":"https://github.com/getify/You-Dont-Know-JS/pull/813.patch","issue_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/813","number":813,"state":"closed","locked":false,"title":"Corrected conditionals example","user":{"login":"jacenko","id":9830975,"avatar_url":"https://avatars.githubusercontent.com/u/9830975?v=3","gravatar_id":"","url":"https://api.github.com/users/jacenko","html_url":"https://github.com/jacenko","followers_url":"https://api.github.com/users/jacenko/followers","following_url":"https://api.github.com/users/jacenko/following{/other_user}","gists_url":"https://api.github.com/users/jacenko/gists{/gist_id}","starred_url":"https://api.github.com/users/jacenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacenko/subscriptions","organizations_url":"https://api.github.com/users/jacenko/orgs","repos_url":"https://api.github.com/users/jacenko/repos","events_url":"https://api.github.com/users/jacenko/events{/privacy}","received_events_url":"https://api.github.com/users/jacenko/received_events","type":"User","site_admin":false},"body":"The question - \"can we afford the extra purchase?\" - can only be answered by including the ACCESSORY_PRICE variable in it. \r\n\r\nAlternatively, ACCESSORY_PRICE could be added to the amount variable beforehand, tested as-is, and subtracted in the else block, but this would not match a real-world example.","created_at":"2016-07-26T15:49:54Z","updated_at":"2016-07-26T16:22:45Z","closed_at":"2016-07-26T16:22:45Z","merged_at":null,"merge_commit_sha":"731baeb1bb25af536eaa7aa2e2faf8b6cbe00b22","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/813/commits","review_comments_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/813/comments","review_comment_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/813/comments","statuses_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/statuses/bc209181c3a91281a7f2758581acd2ab5c51120e","head":{"label":"jacenko:patch-1","ref":"patch-1","sha":"bc209181c3a91281a7f2758581acd2ab5c51120e","user":{"login":"jacenko","id":9830975,"avatar_url":"https://avatars.githubusercontent.com/u/9830975?v=3","gravatar_id":"","url":"https://api.github.com/users/jacenko","html_url":"https://github.com/jacenko","followers_url":"https://api.github.com/users/jacenko/followers","following_url":"https://api.github.com/users/jacenko/following{/other_user}","gists_url":"https://api.github.com/users/jacenko/gists{/gist_id}","starred_url":"https://api.github.com/users/jacenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacenko/subscriptions","organizations_url":"https://api.github.com/users/jacenko/orgs","repos_url":"https://api.github.com/users/jacenko/repos","events_url":"https://api.github.com/users/jacenko/events{/privacy}","received_events_url":"https://api.github.com/users/jacenko/received_events","type":"User","site_admin":false},"repo":{"id":64233272,"name":"You-Dont-Know-JS","full_name":"jacenko/You-Dont-Know-JS","owner":{"login":"jacenko","id":9830975,"avatar_url":"https://avatars.githubusercontent.com/u/9830975?v=3","gravatar_id":"","url":"https://api.github.com/users/jacenko","html_url":"https://github.com/jacenko","followers_url":"https://api.github.com/users/jacenko/followers","following_url":"https://api.github.com/users/jacenko/following{/other_user}","gists_url":"https://api.github.com/users/jacenko/gists{/gist_id}","starred_url":"https://api.github.com/users/jacenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacenko/subscriptions","organizations_url":"https://api.github.com/users/jacenko/orgs","repos_url":"https://api.github.com/users/jacenko/repos","events_url":"https://api.github.com/users/jacenko/events{/privacy}","received_events_url":"https://api.github.com/users/jacenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacenko/You-Dont-Know-JS","description":"A book series on JavaScript. @YDKJS on twitter.","fork":true,"url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS","forks_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/forks","keys_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/teams","hooks_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/hooks","issue_events_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/issues/events{/number}","events_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/events","assignees_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/assignees{/user}","branches_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/branches{/branch}","tags_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/tags","blobs_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/statuses/{sha}","languages_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/languages","stargazers_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/stargazers","contributors_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/contributors","subscribers_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/subscribers","subscription_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/subscription","commits_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/contents/{+path}","compare_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/merges","archive_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/downloads","issues_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/issues{/number}","pulls_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/pulls{/number}","milestones_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/milestones{/number}","notifications_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/labels{/name}","releases_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/releases{/id}","deployments_url":"https://api.github.com/repos/jacenko/You-Dont-Know-JS/deployments","created_at":"2016-07-26T15:36:35Z","updated_at":"2016-07-26T15:36:37Z","pushed_at":"2016-07-26T15:45:07Z","git_url":"git://github.com/jacenko/You-Dont-Know-JS.git","ssh_url":"git@github.com:jacenko/You-Dont-Know-JS.git","clone_url":"https://github.com/jacenko/You-Dont-Know-JS.git","svn_url":"https://github.com/jacenko/You-Dont-Know-JS","homepage":"http://www.kickstarter.com/projects/getify/you-dont-know-js-book-series","size":5842,"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":"getify:master","ref":"master","sha":"4850bcaf4e1a1abe4dc64fae846cb5235d8f4c18","user":{"login":"getify","id":150330,"avatar_url":"https://avatars.githubusercontent.com/u/150330?v=3","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"repo":{"id":14440270,"name":"You-Dont-Know-JS","full_name":"getify/You-Dont-Know-JS","owner":{"login":"getify","id":150330,"avatar_url":"https://avatars.githubusercontent.com/u/150330?v=3","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/getify/You-Dont-Know-JS","description":"A book series on JavaScript. @YDKJS on twitter.","fork":false,"url":"https://api.github.com/repos/getify/You-Dont-Know-JS","forks_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/forks","keys_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/teams","hooks_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/hooks","issue_events_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/events{/number}","events_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/events","assignees_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/assignees{/user}","branches_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/branches{/branch}","tags_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/tags","blobs_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/git/refs{/sha}","trees_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/statuses/{sha}","languages_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/languages","stargazers_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/stargazers","contributors_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/contributors","subscribers_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/subscribers","subscription_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/subscription","commits_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/commits{/sha}","git_commits_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/git/commits{/sha}","comments_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/comments{/number}","issue_comment_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/comments{/number}","contents_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/contents/{+path}","compare_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/merges","archive_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/downloads","issues_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues{/number}","pulls_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls{/number}","milestones_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/milestones{/number}","notifications_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/labels{/name}","releases_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/releases{/id}","deployments_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/deployments","created_at":"2013-11-16T02:37:24Z","updated_at":"2016-07-26T16:22:44Z","pushed_at":"2016-07-26T15:49:54Z","git_url":"git://github.com/getify/You-Dont-Know-JS.git","ssh_url":"git@github.com:getify/You-Dont-Know-JS.git","clone_url":"https://github.com/getify/You-Dont-Know-JS.git","svn_url":"https://github.com/getify/You-Dont-Know-JS","homepage":"http://www.kickstarter.com/projects/getify/you-dont-know-js-book-series","size":5842,"stargazers_count":37697,"watchers_count":37697,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5182,"mirror_url":null,"open_issues_count":87,"forks":5182,"open_issues":87,"watchers":37697,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/813"},"html":{"href":"https://github.com/getify/You-Dont-Know-JS/pull/813"},"issue":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/813"},"comments":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/813/comments"},"review_comments":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/813/comments"},"review_comment":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/pulls/813/commits"},"statuses":{"href":"https://api.github.com/repos/getify/You-Dont-Know-JS/statuses/bc209181c3a91281a7f2758581acd2ab5c51120e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"getify"}}