{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/google/pasta/pulls/29","id":167840836,"html_url":"https://github.com/google/pasta/pull/29","diff_url":"https://github.com/google/pasta/pull/29.diff","patch_url":"https://github.com/google/pasta/pull/29.patch","issue_url":"https://api.github.com/repos/google/pasta/issues/29","number":29,"state":"closed","locked":false,"title":"Mostly rewrite the open_scope and close_scope functions","user":{"login":"soupytwist","id":1455827,"avatar_url":"https://avatars2.githubusercontent.com/u/1455827?v=4","gravatar_id":"","url":"https://api.github.com/users/soupytwist","html_url":"https://github.com/soupytwist","followers_url":"https://api.github.com/users/soupytwist/followers","following_url":"https://api.github.com/users/soupytwist/following{/other_user}","gists_url":"https://api.github.com/users/soupytwist/gists{/gist_id}","starred_url":"https://api.github.com/users/soupytwist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupytwist/subscriptions","organizations_url":"https://api.github.com/users/soupytwist/orgs","repos_url":"https://api.github.com/users/soupytwist/repos","events_url":"https://api.github.com/users/soupytwist/events{/privacy}","received_events_url":"https://api.github.com/users/soupytwist/received_events","type":"User","site_admin":false},"body":"These still could use some work, but they are (hopefully) more clear now\r\nwhat is going on. Previously, the location and index internal to the\r\ntoken generator was not being updated quite correctly. In debugging it I\r\ncleaned up the logic a bit + added a test to demonstrate that this case\r\nworks now.","created_at":"2018-02-07T23:44:06Z","updated_at":"2018-02-09T17:18:55Z","closed_at":"2018-02-09T17:18:55Z","merged_at":"2018-02-09T17:18:55Z","merge_commit_sha":"d973795a318111c4071a9b042881b8df97afaf41","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/pasta/pulls/29/commits","review_comments_url":"https://api.github.com/repos/google/pasta/pulls/29/comments","review_comment_url":"https://api.github.com/repos/google/pasta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/pasta/issues/29/comments","statuses_url":"https://api.github.com/repos/google/pasta/statuses/81ce02f39e9bdeb430eae6d63aa3e9b4fc6afb7c","head":{"label":"google:rescope","ref":"rescope","sha":"81ce02f39e9bdeb430eae6d63aa3e9b4fc6afb7c","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":112398245,"name":"pasta","full_name":"google/pasta","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/pasta","description":"Library to refactor python code through AST manipulation.","fork":false,"url":"https://api.github.com/repos/google/pasta","forks_url":"https://api.github.com/repos/google/pasta/forks","keys_url":"https://api.github.com/repos/google/pasta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/pasta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/pasta/teams","hooks_url":"https://api.github.com/repos/google/pasta/hooks","issue_events_url":"https://api.github.com/repos/google/pasta/issues/events{/number}","events_url":"https://api.github.com/repos/google/pasta/events","assignees_url":"https://api.github.com/repos/google/pasta/assignees{/user}","branches_url":"https://api.github.com/repos/google/pasta/branches{/branch}","tags_url":"https://api.github.com/repos/google/pasta/tags","blobs_url":"https://api.github.com/repos/google/pasta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/pasta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/pasta/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/pasta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/pasta/statuses/{sha}","languages_url":"https://api.github.com/repos/google/pasta/languages","stargazers_url":"https://api.github.com/repos/google/pasta/stargazers","contributors_url":"https://api.github.com/repos/google/pasta/contributors","subscribers_url":"https://api.github.com/repos/google/pasta/subscribers","subscription_url":"https://api.github.com/repos/google/pasta/subscription","commits_url":"https://api.github.com/repos/google/pasta/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/pasta/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/pasta/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/pasta/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/pasta/contents/{+path}","compare_url":"https://api.github.com/repos/google/pasta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/pasta/merges","archive_url":"https://api.github.com/repos/google/pasta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/pasta/downloads","issues_url":"https://api.github.com/repos/google/pasta/issues{/number}","pulls_url":"https://api.github.com/repos/google/pasta/pulls{/number}","milestones_url":"https://api.github.com/repos/google/pasta/milestones{/number}","notifications_url":"https://api.github.com/repos/google/pasta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/pasta/labels{/name}","releases_url":"https://api.github.com/repos/google/pasta/releases{/id}","deployments_url":"https://api.github.com/repos/google/pasta/deployments","created_at":"2017-11-28T22:48:53Z","updated_at":"2018-02-09T02:27:44Z","pushed_at":"2018-02-09T17:18:55Z","git_url":"git://github.com/google/pasta.git","ssh_url":"git@github.com:google/pasta.git","clone_url":"https://github.com/google/pasta.git","svn_url":"https://github.com/google/pasta","homepage":"","size":221,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":8,"open_issues":2,"watchers":36,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"7ecd76912d16999a51c78a42cdf457486ebe49f6","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":112398245,"name":"pasta","full_name":"google/pasta","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/pasta","description":"Library to refactor python code through AST manipulation.","fork":false,"url":"https://api.github.com/repos/google/pasta","forks_url":"https://api.github.com/repos/google/pasta/forks","keys_url":"https://api.github.com/repos/google/pasta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/pasta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/pasta/teams","hooks_url":"https://api.github.com/repos/google/pasta/hooks","issue_events_url":"https://api.github.com/repos/google/pasta/issues/events{/number}","events_url":"https://api.github.com/repos/google/pasta/events","assignees_url":"https://api.github.com/repos/google/pasta/assignees{/user}","branches_url":"https://api.github.com/repos/google/pasta/branches{/branch}","tags_url":"https://api.github.com/repos/google/pasta/tags","blobs_url":"https://api.github.com/repos/google/pasta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/pasta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/pasta/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/pasta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/pasta/statuses/{sha}","languages_url":"https://api.github.com/repos/google/pasta/languages","stargazers_url":"https://api.github.com/repos/google/pasta/stargazers","contributors_url":"https://api.github.com/repos/google/pasta/contributors","subscribers_url":"https://api.github.com/repos/google/pasta/subscribers","subscription_url":"https://api.github.com/repos/google/pasta/subscription","commits_url":"https://api.github.com/repos/google/pasta/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/pasta/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/pasta/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/pasta/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/pasta/contents/{+path}","compare_url":"https://api.github.com/repos/google/pasta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/pasta/merges","archive_url":"https://api.github.com/repos/google/pasta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/pasta/downloads","issues_url":"https://api.github.com/repos/google/pasta/issues{/number}","pulls_url":"https://api.github.com/repos/google/pasta/pulls{/number}","milestones_url":"https://api.github.com/repos/google/pasta/milestones{/number}","notifications_url":"https://api.github.com/repos/google/pasta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/pasta/labels{/name}","releases_url":"https://api.github.com/repos/google/pasta/releases{/id}","deployments_url":"https://api.github.com/repos/google/pasta/deployments","created_at":"2017-11-28T22:48:53Z","updated_at":"2018-02-09T02:27:44Z","pushed_at":"2018-02-09T17:18:55Z","git_url":"git://github.com/google/pasta.git","ssh_url":"git@github.com:google/pasta.git","clone_url":"https://github.com/google/pasta.git","svn_url":"https://github.com/google/pasta","homepage":"","size":221,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":8,"open_issues":2,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/pasta/pulls/29"},"html":{"href":"https://github.com/google/pasta/pull/29"},"issue":{"href":"https://api.github.com/repos/google/pasta/issues/29"},"comments":{"href":"https://api.github.com/repos/google/pasta/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/google/pasta/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/google/pasta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/pasta/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/google/pasta/statuses/81ce02f39e9bdeb430eae6d63aa3e9b4fc6afb7c"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"soupytwist","id":1455827,"avatar_url":"https://avatars2.githubusercontent.com/u/1455827?v=4","gravatar_id":"","url":"https://api.github.com/users/soupytwist","html_url":"https://github.com/soupytwist","followers_url":"https://api.github.com/users/soupytwist/followers","following_url":"https://api.github.com/users/soupytwist/following{/other_user}","gists_url":"https://api.github.com/users/soupytwist/gists{/gist_id}","starred_url":"https://api.github.com/users/soupytwist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupytwist/subscriptions","organizations_url":"https://api.github.com/users/soupytwist/orgs","repos_url":"https://api.github.com/users/soupytwist/repos","events_url":"https://api.github.com/users/soupytwist/events{/privacy}","received_events_url":"https://api.github.com/users/soupytwist/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"maintainer_can_modify":false,"commits":2,"additions":86,"deletions":48,"changed_files":4}}
{"actor":{"display_login":"soupytwist"}}