{"action":"created","issue":{"url":"https://api.github.com/repos/square/javapoet/issues/513","repository_url":"https://api.github.com/repos/square/javapoet","labels_url":"https://api.github.com/repos/square/javapoet/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/square/javapoet/issues/513/comments","events_url":"https://api.github.com/repos/square/javapoet/issues/513/events","html_url":"https://github.com/square/javapoet/pull/513","id":184972225,"number":513,"title":"Add methods for controlling scope of variables","user":{"login":"int02h","id":2471447,"avatar_url":"https://avatars.githubusercontent.com/u/2471447?v=3","gravatar_id":"","url":"https://api.github.com/users/int02h","html_url":"https://github.com/int02h","followers_url":"https://api.github.com/users/int02h/followers","following_url":"https://api.github.com/users/int02h/following{/other_user}","gists_url":"https://api.github.com/users/int02h/gists{/gist_id}","starred_url":"https://api.github.com/users/int02h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/int02h/subscriptions","organizations_url":"https://api.github.com/users/int02h/orgs","repos_url":"https://api.github.com/users/int02h/repos","events_url":"https://api.github.com/users/int02h/events{/privacy}","received_events_url":"https://api.github.com/users/int02h/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-24T22:32:35Z","updated_at":"2016-10-25T18:24:58Z","closed_at":"2016-10-25T05:56:26Z","pull_request":{"url":"https://api.github.com/repos/square/javapoet/pulls/513","html_url":"https://github.com/square/javapoet/pull/513","diff_url":"https://github.com/square/javapoet/pull/513.diff","patch_url":"https://github.com/square/javapoet/pull/513.patch"},"body":"Utility methods that help to wrap code blocks with braces to indent variable scope:\r\n```java\r\n{\r\n  int i = 0;\r\n  String s = \"\";\r\n  // and so on\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/square/javapoet/issues/comments/256125161","html_url":"https://github.com/square/javapoet/pull/513#issuecomment-256125161","issue_url":"https://api.github.com/repos/square/javapoet/issues/513","id":256125161,"user":{"login":"ronshapiro","id":792797,"avatar_url":"https://avatars.githubusercontent.com/u/792797?v=3","gravatar_id":"","url":"https://api.github.com/users/ronshapiro","html_url":"https://github.com/ronshapiro","followers_url":"https://api.github.com/users/ronshapiro/followers","following_url":"https://api.github.com/users/ronshapiro/following{/other_user}","gists_url":"https://api.github.com/users/ronshapiro/gists{/gist_id}","starred_url":"https://api.github.com/users/ronshapiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronshapiro/subscriptions","organizations_url":"https://api.github.com/users/ronshapiro/orgs","repos_url":"https://api.github.com/users/ronshapiro/repos","events_url":"https://api.github.com/users/ronshapiro/events{/privacy}","received_events_url":"https://api.github.com/users/ronshapiro/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:24:58Z","updated_at":"2016-10-25T18:24:58Z","body":"Is using \"$[\" and \"$]\" part of the public API? If so you could use that.\n\nOn Tue, Oct 25, 2016, 7:51 AM Popov Daniil <notifications@github.com> wrote:\n\n> Yes, I'm agree. But when it's necessary there is no way to do such thing.\n> Method 'addCode' do not indent following code. Method 'beginControlFlow'\n> inserts one space before opening brace. It looks ugly. Maybe it is more\n> preferable to modify 'beginControlFlow' method to handle situation with\n> whitespace at the begging of the line.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/square/javapoet/pull/513#issuecomment-255936245>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAwY3WmDzbm9AuyapQKWPPjnIDEjhiupks5q3YrngaJpZM4KfXDg>\n> .\n>\n"}}
{"actor":{"display_login":"ronshapiro"}}