{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/2","id":79464063,"html_url":"https://github.com/decaffeinate/decaffeinate-project.org/pull/2","diff_url":"https://github.com/decaffeinate/decaffeinate-project.org/pull/2.diff","patch_url":"https://github.com/decaffeinate/decaffeinate-project.org/pull/2.patch","issue_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues/2","number":2,"state":"open","locked":false,"title":"feat: add \"Run to stage\" option in the repl","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":"This is the website side of a change to the repl to allow running decaffeinate\r\npart-way to inspect intermediate results.\r\n\r\nOne nice advantage of the pretty-printed AST/token format is that you can use\r\nthe expand/collapse feature in the right-side editor automatically.\r\n\r\nSome future improvements not done here:\r\n* Ideally you'd be able to cross-reference code with AST nodes by clicking\r\n  and/or hovering, like you can do at http://astexplorer.net/ . Since code\r\n  ranges are displayed in a standard format, we could potentially just use\r\n  regexes or something to match that format in the repl.\r\n* Ideally we'd know when the contents in the right editor are JavaScript, and\r\n  gray out the \"evaluate\" button if not.\r\n\r\nHere's a live demo:\r\nhttp://www.alangpierce.com/decaffeinate-project.org/repl/#?evaluate=false&stage=full&code=x%20%3D%20a%20%22%23%7Bb%20%2B%20c%7D%22","created_at":"2016-07-30T18:14:26Z","updated_at":"2016-07-30T18:14:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/2/commits","review_comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/2/comments","review_comment_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues/2/comments","statuses_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/statuses/63d378773d86bbf7e4f3a151e74e4a5b4aa71c0c","head":{"label":"alangpierce:add-run-to-stage-option","ref":"add-run-to-stage-option","sha":"63d378773d86bbf7e4f3a151e74e4a5b4aa71c0c","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":64089962,"name":"decaffeinate-project.org","full_name":"alangpierce/decaffeinate-project.org","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-project.org","description":null,"fork":true,"url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org","forks_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/forks","keys_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/teams","hooks_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/hooks","issue_events_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/issues/events{/number}","events_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/events","assignees_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/assignees{/user}","branches_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/branches{/branch}","tags_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/tags","blobs_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/statuses/{sha}","languages_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/languages","stargazers_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/stargazers","contributors_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/contributors","subscribers_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/subscribers","subscription_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/subscription","commits_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/contents/{+path}","compare_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/merges","archive_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/downloads","issues_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/issues{/number}","pulls_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/pulls{/number}","milestones_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/milestones{/number}","notifications_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/labels{/name}","releases_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/releases{/id}","deployments_url":"https://api.github.com/repos/alangpierce/decaffeinate-project.org/deployments","created_at":"2016-07-24T23:17:22Z","updated_at":"2016-07-24T23:17:24Z","pushed_at":"2016-07-30T18:13:19Z","git_url":"git://github.com/alangpierce/decaffeinate-project.org.git","ssh_url":"git@github.com:alangpierce/decaffeinate-project.org.git","clone_url":"https://github.com/alangpierce/decaffeinate-project.org.git","svn_url":"https://github.com/alangpierce/decaffeinate-project.org","homepage":null,"size":2813,"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":"d2e39181d3b9271008b1940267637677895f0cdb","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":62777193,"name":"decaffeinate-project.org","full_name":"decaffeinate/decaffeinate-project.org","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-project.org","description":null,"fork":false,"url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org","forks_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/forks","keys_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/teams","hooks_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/hooks","issue_events_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues/events{/number}","events_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/events","assignees_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/assignees{/user}","branches_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/branches{/branch}","tags_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/tags","blobs_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/statuses/{sha}","languages_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/languages","stargazers_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/stargazers","contributors_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/contributors","subscribers_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/subscribers","subscription_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/subscription","commits_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/contents/{+path}","compare_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/merges","archive_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/downloads","issues_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues{/number}","pulls_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls{/number}","milestones_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/milestones{/number}","notifications_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/labels{/name}","releases_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/releases{/id}","deployments_url":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/deployments","created_at":"2016-07-07T05:20:55Z","updated_at":"2016-07-30T13:53:24Z","pushed_at":"2016-07-30T17:58:39Z","git_url":"git://github.com/decaffeinate/decaffeinate-project.org.git","ssh_url":"git@github.com:decaffeinate/decaffeinate-project.org.git","clone_url":"https://github.com/decaffeinate/decaffeinate-project.org.git","svn_url":"https://github.com/decaffeinate/decaffeinate-project.org","homepage":"http://decaffeinate-project.org/","size":2778,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/2"},"html":{"href":"https://github.com/decaffeinate/decaffeinate-project.org/pull/2"},"issue":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues/2"},"comments":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/decaffeinate/decaffeinate-project.org/statuses/63d378773d86bbf7e4f3a151e74e4a5b4aa71c0c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":38,"deletions":5,"changed_files":3}}
{"actor":{"display_login":"alangpierce"}}