{"action":"opened","number":471,"pull_request":{"url":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/471","id":90523614,"html_url":"https://github.com/decaffeinate/decaffeinate/pull/471","diff_url":"https://github.com/decaffeinate/decaffeinate/pull/471.diff","patch_url":"https://github.com/decaffeinate/decaffeinate/pull/471.patch","issue_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/471","number":471,"state":"open","locked":false,"title":"fix: respect bounds when writing the end of a switch expression","user":{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"body":"Closes #448.\r\n\r\nThe switch patcher was using `appendToEndOfLine`, which was just writing to the\r\nend of the current line, even if it was past the end of the expression (in this\r\ncase, it was writing past the close-paren for the function call). To fix, I just\r\nmade `appendToEndOfLine` include the same logic as `appendLineAfter`: write to\r\nthe right place if possible, but not past the bounding patcher.","created_at":"2016-10-23T18:06:30Z","updated_at":"2016-10-23T18:06:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/471/commits","review_comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/471/comments","review_comment_url":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/471/comments","statuses_url":"https://api.github.com/repos/decaffeinate/decaffeinate/statuses/f955e175cba4df891912a07af19881007a4fcbcf","head":{"label":"alangpierce:fix-switch-ending-in-object","ref":"fix-switch-ending-in-object","sha":"f955e175cba4df891912a07af19881007a4fcbcf","user":{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"repo":{"id":62231578,"name":"decaffeinate","full_name":"alangpierce/decaffeinate","owner":{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alangpierce/decaffeinate","description":"CoffeeScript in, ES6 out","fork":true,"url":"https://api.github.com/repos/alangpierce/decaffeinate","forks_url":"https://api.github.com/repos/alangpierce/decaffeinate/forks","keys_url":"https://api.github.com/repos/alangpierce/decaffeinate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alangpierce/decaffeinate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alangpierce/decaffeinate/teams","hooks_url":"https://api.github.com/repos/alangpierce/decaffeinate/hooks","issue_events_url":"https://api.github.com/repos/alangpierce/decaffeinate/issues/events{/number}","events_url":"https://api.github.com/repos/alangpierce/decaffeinate/events","assignees_url":"https://api.github.com/repos/alangpierce/decaffeinate/assignees{/user}","branches_url":"https://api.github.com/repos/alangpierce/decaffeinate/branches{/branch}","tags_url":"https://api.github.com/repos/alangpierce/decaffeinate/tags","blobs_url":"https://api.github.com/repos/alangpierce/decaffeinate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alangpierce/decaffeinate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alangpierce/decaffeinate/git/refs{/sha}","trees_url":"https://api.github.com/repos/alangpierce/decaffeinate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alangpierce/decaffeinate/statuses/{sha}","languages_url":"https://api.github.com/repos/alangpierce/decaffeinate/languages","stargazers_url":"https://api.github.com/repos/alangpierce/decaffeinate/stargazers","contributors_url":"https://api.github.com/repos/alangpierce/decaffeinate/contributors","subscribers_url":"https://api.github.com/repos/alangpierce/decaffeinate/subscribers","subscription_url":"https://api.github.com/repos/alangpierce/decaffeinate/subscription","commits_url":"https://api.github.com/repos/alangpierce/decaffeinate/commits{/sha}","git_commits_url":"https://api.github.com/repos/alangpierce/decaffeinate/git/commits{/sha}","comments_url":"https://api.github.com/repos/alangpierce/decaffeinate/comments{/number}","issue_comment_url":"https://api.github.com/repos/alangpierce/decaffeinate/issues/comments{/number}","contents_url":"https://api.github.com/repos/alangpierce/decaffeinate/contents/{+path}","compare_url":"https://api.github.com/repos/alangpierce/decaffeinate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alangpierce/decaffeinate/merges","archive_url":"https://api.github.com/repos/alangpierce/decaffeinate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alangpierce/decaffeinate/downloads","issues_url":"https://api.github.com/repos/alangpierce/decaffeinate/issues{/number}","pulls_url":"https://api.github.com/repos/alangpierce/decaffeinate/pulls{/number}","milestones_url":"https://api.github.com/repos/alangpierce/decaffeinate/milestones{/number}","notifications_url":"https://api.github.com/repos/alangpierce/decaffeinate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alangpierce/decaffeinate/labels{/name}","releases_url":"https://api.github.com/repos/alangpierce/decaffeinate/releases{/id}","deployments_url":"https://api.github.com/repos/alangpierce/decaffeinate/deployments","created_at":"2016-06-29T14:18:23Z","updated_at":"2016-06-29T14:18:24Z","pushed_at":"2016-10-23T18:05:43Z","git_url":"git://github.com/alangpierce/decaffeinate.git","ssh_url":"git@github.com:alangpierce/decaffeinate.git","clone_url":"https://github.com/alangpierce/decaffeinate.git","svn_url":"https://github.com/alangpierce/decaffeinate","homepage":"https://decaffeinate.github.io/decaffeinate/repl","size":4824,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"decaffeinate:master","ref":"master","sha":"e78d74ee8292cfc412d6408b54f58fbb94c146af","user":{"login":"decaffeinate","id":16957091,"avatar_url":"https://avatars.githubusercontent.com/u/16957091?v=3","gravatar_id":"","url":"https://api.github.com/users/decaffeinate","html_url":"https://github.com/decaffeinate","followers_url":"https://api.github.com/users/decaffeinate/followers","following_url":"https://api.github.com/users/decaffeinate/following{/other_user}","gists_url":"https://api.github.com/users/decaffeinate/gists{/gist_id}","starred_url":"https://api.github.com/users/decaffeinate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decaffeinate/subscriptions","organizations_url":"https://api.github.com/users/decaffeinate/orgs","repos_url":"https://api.github.com/users/decaffeinate/repos","events_url":"https://api.github.com/users/decaffeinate/events{/privacy}","received_events_url":"https://api.github.com/users/decaffeinate/received_events","type":"Organization","site_admin":false},"repo":{"id":29375063,"name":"decaffeinate","full_name":"decaffeinate/decaffeinate","owner":{"login":"decaffeinate","id":16957091,"avatar_url":"https://avatars.githubusercontent.com/u/16957091?v=3","gravatar_id":"","url":"https://api.github.com/users/decaffeinate","html_url":"https://github.com/decaffeinate","followers_url":"https://api.github.com/users/decaffeinate/followers","following_url":"https://api.github.com/users/decaffeinate/following{/other_user}","gists_url":"https://api.github.com/users/decaffeinate/gists{/gist_id}","starred_url":"https://api.github.com/users/decaffeinate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decaffeinate/subscriptions","organizations_url":"https://api.github.com/users/decaffeinate/orgs","repos_url":"https://api.github.com/users/decaffeinate/repos","events_url":"https://api.github.com/users/decaffeinate/events{/privacy}","received_events_url":"https://api.github.com/users/decaffeinate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/decaffeinate/decaffeinate","description":"Goodbye CoffeeScript, hello JavaScript!","fork":false,"url":"https://api.github.com/repos/decaffeinate/decaffeinate","forks_url":"https://api.github.com/repos/decaffeinate/decaffeinate/forks","keys_url":"https://api.github.com/repos/decaffeinate/decaffeinate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decaffeinate/decaffeinate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decaffeinate/decaffeinate/teams","hooks_url":"https://api.github.com/repos/decaffeinate/decaffeinate/hooks","issue_events_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/events{/number}","events_url":"https://api.github.com/repos/decaffeinate/decaffeinate/events","assignees_url":"https://api.github.com/repos/decaffeinate/decaffeinate/assignees{/user}","branches_url":"https://api.github.com/repos/decaffeinate/decaffeinate/branches{/branch}","tags_url":"https://api.github.com/repos/decaffeinate/decaffeinate/tags","blobs_url":"https://api.github.com/repos/decaffeinate/decaffeinate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decaffeinate/decaffeinate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decaffeinate/decaffeinate/git/refs{/sha}","trees_url":"https://api.github.com/repos/decaffeinate/decaffeinate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decaffeinate/decaffeinate/statuses/{sha}","languages_url":"https://api.github.com/repos/decaffeinate/decaffeinate/languages","stargazers_url":"https://api.github.com/repos/decaffeinate/decaffeinate/stargazers","contributors_url":"https://api.github.com/repos/decaffeinate/decaffeinate/contributors","subscribers_url":"https://api.github.com/repos/decaffeinate/decaffeinate/subscribers","subscription_url":"https://api.github.com/repos/decaffeinate/decaffeinate/subscription","commits_url":"https://api.github.com/repos/decaffeinate/decaffeinate/commits{/sha}","git_commits_url":"https://api.github.com/repos/decaffeinate/decaffeinate/git/commits{/sha}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/comments{/number}","issue_comment_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/comments{/number}","contents_url":"https://api.github.com/repos/decaffeinate/decaffeinate/contents/{+path}","compare_url":"https://api.github.com/repos/decaffeinate/decaffeinate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decaffeinate/decaffeinate/merges","archive_url":"https://api.github.com/repos/decaffeinate/decaffeinate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decaffeinate/decaffeinate/downloads","issues_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues{/number}","pulls_url":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls{/number}","milestones_url":"https://api.github.com/repos/decaffeinate/decaffeinate/milestones{/number}","notifications_url":"https://api.github.com/repos/decaffeinate/decaffeinate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decaffeinate/decaffeinate/labels{/name}","releases_url":"https://api.github.com/repos/decaffeinate/decaffeinate/releases{/id}","deployments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/deployments","created_at":"2015-01-17T01:00:52Z","updated_at":"2016-10-20T17:44:34Z","pushed_at":"2016-10-23T04:41:52Z","git_url":"git://github.com/decaffeinate/decaffeinate.git","ssh_url":"git@github.com:decaffeinate/decaffeinate.git","clone_url":"https://github.com/decaffeinate/decaffeinate.git","svn_url":"https://github.com/decaffeinate/decaffeinate","homepage":"http://decaffeinate-project.org/repl/","size":4872,"stargazers_count":812,"watchers_count":812,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":78,"forks":38,"open_issues":78,"watchers":812,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/471"},"html":{"href":"https://github.com/decaffeinate/decaffeinate/pull/471"},"issue":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/471"},"comments":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/471/comments"},"review_comments":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/471/comments"},"review_comment":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/pulls/471/commits"},"statuses":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate/statuses/f955e175cba4df891912a07af19881007a4fcbcf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"alangpierce"}}