{"action":"closed","number":279,"pull_request":{"url":"https://api.github.com/repos/r-lib/styler/pulls/279","id":153462947,"html_url":"https://github.com/r-lib/styler/pull/279","diff_url":"https://github.com/r-lib/styler/pull/279.diff","patch_url":"https://github.com/r-lib/styler/pull/279.patch","issue_url":"https://api.github.com/repos/r-lib/styler/issues/279","number":279,"state":"closed","locked":false,"title":"Fix token insertion / comment interaction","user":{"login":"lorenzwalthert","id":10477073,"avatar_url":"https://avatars1.githubusercontent.com/u/10477073?v=4","gravatar_id":"","url":"https://api.github.com/users/lorenzwalthert","html_url":"https://github.com/lorenzwalthert","followers_url":"https://api.github.com/users/lorenzwalthert/followers","following_url":"https://api.github.com/users/lorenzwalthert/following{/other_user}","gists_url":"https://api.github.com/users/lorenzwalthert/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzwalthert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzwalthert/subscriptions","organizations_url":"https://api.github.com/users/lorenzwalthert/orgs","repos_url":"https://api.github.com/users/lorenzwalthert/repos","events_url":"https://api.github.com/users/lorenzwalthert/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzwalthert/received_events","type":"User","site_admin":false},"body":"Intended to fix #278. \r\n\r\n* `wrap_if_else_multi_line_in_curly()` now simply forwards to `wrap_if_else_multi_line_in_curly_since_is_if_expr()` if the expression contains an if-clause. This should decrease complexity for the programmer.\r\n* `wrap_if_else_multi_line_in_curly_since_is_if_expr()` calls `wrap_subexpr_in_curly()` to wrap the relevant sub-expression into curly braces for both the if-clause and the else or else-if clause.\r\n\r\n@krlmlr can you maybe add other test cases if I missed any?","created_at":"2017-11-18T18:55:33Z","updated_at":"2017-11-21T09:05:43Z","closed_at":"2017-11-21T09:05:43Z","merged_at":"2017-11-21T09:05:42Z","merge_commit_sha":"d665ee85ce110345bfd991c9e03b3a98b59fc363","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/r-lib/styler/pulls/279/commits","review_comments_url":"https://api.github.com/repos/r-lib/styler/pulls/279/comments","review_comment_url":"https://api.github.com/repos/r-lib/styler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/r-lib/styler/issues/279/comments","statuses_url":"https://api.github.com/repos/r-lib/styler/statuses/5413eb2f43c26bfed23f3c79ebc7043a9be149b4","head":{"label":"lorenzwalthert:use-next-non-comment","ref":"use-next-non-comment","sha":"5413eb2f43c26bfed23f3c79ebc7043a9be149b4","user":{"login":"lorenzwalthert","id":10477073,"avatar_url":"https://avatars1.githubusercontent.com/u/10477073?v=4","gravatar_id":"","url":"https://api.github.com/users/lorenzwalthert","html_url":"https://github.com/lorenzwalthert","followers_url":"https://api.github.com/users/lorenzwalthert/followers","following_url":"https://api.github.com/users/lorenzwalthert/following{/other_user}","gists_url":"https://api.github.com/users/lorenzwalthert/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzwalthert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzwalthert/subscriptions","organizations_url":"https://api.github.com/users/lorenzwalthert/orgs","repos_url":"https://api.github.com/users/lorenzwalthert/repos","events_url":"https://api.github.com/users/lorenzwalthert/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzwalthert/received_events","type":"User","site_admin":false},"repo":{"id":85580810,"name":"styler","full_name":"lorenzwalthert/styler","owner":{"login":"lorenzwalthert","id":10477073,"avatar_url":"https://avatars1.githubusercontent.com/u/10477073?v=4","gravatar_id":"","url":"https://api.github.com/users/lorenzwalthert","html_url":"https://github.com/lorenzwalthert","followers_url":"https://api.github.com/users/lorenzwalthert/followers","following_url":"https://api.github.com/users/lorenzwalthert/following{/other_user}","gists_url":"https://api.github.com/users/lorenzwalthert/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzwalthert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzwalthert/subscriptions","organizations_url":"https://api.github.com/users/lorenzwalthert/orgs","repos_url":"https://api.github.com/users/lorenzwalthert/repos","events_url":"https://api.github.com/users/lorenzwalthert/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzwalthert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lorenzwalthert/styler","description":"Non-invasive pretty printing of R code","fork":true,"url":"https://api.github.com/repos/lorenzwalthert/styler","forks_url":"https://api.github.com/repos/lorenzwalthert/styler/forks","keys_url":"https://api.github.com/repos/lorenzwalthert/styler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lorenzwalthert/styler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lorenzwalthert/styler/teams","hooks_url":"https://api.github.com/repos/lorenzwalthert/styler/hooks","issue_events_url":"https://api.github.com/repos/lorenzwalthert/styler/issues/events{/number}","events_url":"https://api.github.com/repos/lorenzwalthert/styler/events","assignees_url":"https://api.github.com/repos/lorenzwalthert/styler/assignees{/user}","branches_url":"https://api.github.com/repos/lorenzwalthert/styler/branches{/branch}","tags_url":"https://api.github.com/repos/lorenzwalthert/styler/tags","blobs_url":"https://api.github.com/repos/lorenzwalthert/styler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lorenzwalthert/styler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lorenzwalthert/styler/git/refs{/sha}","trees_url":"https://api.github.com/repos/lorenzwalthert/styler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lorenzwalthert/styler/statuses/{sha}","languages_url":"https://api.github.com/repos/lorenzwalthert/styler/languages","stargazers_url":"https://api.github.com/repos/lorenzwalthert/styler/stargazers","contributors_url":"https://api.github.com/repos/lorenzwalthert/styler/contributors","subscribers_url":"https://api.github.com/repos/lorenzwalthert/styler/subscribers","subscription_url":"https://api.github.com/repos/lorenzwalthert/styler/subscription","commits_url":"https://api.github.com/repos/lorenzwalthert/styler/commits{/sha}","git_commits_url":"https://api.github.com/repos/lorenzwalthert/styler/git/commits{/sha}","comments_url":"https://api.github.com/repos/lorenzwalthert/styler/comments{/number}","issue_comment_url":"https://api.github.com/repos/lorenzwalthert/styler/issues/comments{/number}","contents_url":"https://api.github.com/repos/lorenzwalthert/styler/contents/{+path}","compare_url":"https://api.github.com/repos/lorenzwalthert/styler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lorenzwalthert/styler/merges","archive_url":"https://api.github.com/repos/lorenzwalthert/styler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lorenzwalthert/styler/downloads","issues_url":"https://api.github.com/repos/lorenzwalthert/styler/issues{/number}","pulls_url":"https://api.github.com/repos/lorenzwalthert/styler/pulls{/number}","milestones_url":"https://api.github.com/repos/lorenzwalthert/styler/milestones{/number}","notifications_url":"https://api.github.com/repos/lorenzwalthert/styler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lorenzwalthert/styler/labels{/name}","releases_url":"https://api.github.com/repos/lorenzwalthert/styler/releases{/id}","deployments_url":"https://api.github.com/repos/lorenzwalthert/styler/deployments","created_at":"2017-03-20T13:36:33Z","updated_at":"2017-10-14T16:20:27Z","pushed_at":"2017-11-21T08:49:36Z","git_url":"git://github.com/lorenzwalthert/styler.git","ssh_url":"git@github.com:lorenzwalthert/styler.git","clone_url":"https://github.com/lorenzwalthert/styler.git","svn_url":"https://github.com/lorenzwalthert/styler","homepage":"https://github.com/rstats-gsoc/gsoc2017/wiki/Noninvasive-source-code-formatting","size":2031,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"r-lib:master","ref":"master","sha":"105933c5b5a71f64c7917ad7be0211619956ca8a","user":{"login":"r-lib","id":22618716,"avatar_url":"https://avatars0.githubusercontent.com/u/22618716?v=4","gravatar_id":"","url":"https://api.github.com/users/r-lib","html_url":"https://github.com/r-lib","followers_url":"https://api.github.com/users/r-lib/followers","following_url":"https://api.github.com/users/r-lib/following{/other_user}","gists_url":"https://api.github.com/users/r-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/r-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-lib/subscriptions","organizations_url":"https://api.github.com/users/r-lib/orgs","repos_url":"https://api.github.com/users/r-lib/repos","events_url":"https://api.github.com/users/r-lib/events{/privacy}","received_events_url":"https://api.github.com/users/r-lib/received_events","type":"Organization","site_admin":false},"repo":{"id":81366413,"name":"styler","full_name":"r-lib/styler","owner":{"login":"r-lib","id":22618716,"avatar_url":"https://avatars0.githubusercontent.com/u/22618716?v=4","gravatar_id":"","url":"https://api.github.com/users/r-lib","html_url":"https://github.com/r-lib","followers_url":"https://api.github.com/users/r-lib/followers","following_url":"https://api.github.com/users/r-lib/following{/other_user}","gists_url":"https://api.github.com/users/r-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/r-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-lib/subscriptions","organizations_url":"https://api.github.com/users/r-lib/orgs","repos_url":"https://api.github.com/users/r-lib/repos","events_url":"https://api.github.com/users/r-lib/events{/privacy}","received_events_url":"https://api.github.com/users/r-lib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/r-lib/styler","description":"Non-invasive pretty printing of R code","fork":false,"url":"https://api.github.com/repos/r-lib/styler","forks_url":"https://api.github.com/repos/r-lib/styler/forks","keys_url":"https://api.github.com/repos/r-lib/styler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r-lib/styler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r-lib/styler/teams","hooks_url":"https://api.github.com/repos/r-lib/styler/hooks","issue_events_url":"https://api.github.com/repos/r-lib/styler/issues/events{/number}","events_url":"https://api.github.com/repos/r-lib/styler/events","assignees_url":"https://api.github.com/repos/r-lib/styler/assignees{/user}","branches_url":"https://api.github.com/repos/r-lib/styler/branches{/branch}","tags_url":"https://api.github.com/repos/r-lib/styler/tags","blobs_url":"https://api.github.com/repos/r-lib/styler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r-lib/styler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r-lib/styler/git/refs{/sha}","trees_url":"https://api.github.com/repos/r-lib/styler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r-lib/styler/statuses/{sha}","languages_url":"https://api.github.com/repos/r-lib/styler/languages","stargazers_url":"https://api.github.com/repos/r-lib/styler/stargazers","contributors_url":"https://api.github.com/repos/r-lib/styler/contributors","subscribers_url":"https://api.github.com/repos/r-lib/styler/subscribers","subscription_url":"https://api.github.com/repos/r-lib/styler/subscription","commits_url":"https://api.github.com/repos/r-lib/styler/commits{/sha}","git_commits_url":"https://api.github.com/repos/r-lib/styler/git/commits{/sha}","comments_url":"https://api.github.com/repos/r-lib/styler/comments{/number}","issue_comment_url":"https://api.github.com/repos/r-lib/styler/issues/comments{/number}","contents_url":"https://api.github.com/repos/r-lib/styler/contents/{+path}","compare_url":"https://api.github.com/repos/r-lib/styler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r-lib/styler/merges","archive_url":"https://api.github.com/repos/r-lib/styler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r-lib/styler/downloads","issues_url":"https://api.github.com/repos/r-lib/styler/issues{/number}","pulls_url":"https://api.github.com/repos/r-lib/styler/pulls{/number}","milestones_url":"https://api.github.com/repos/r-lib/styler/milestones{/number}","notifications_url":"https://api.github.com/repos/r-lib/styler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r-lib/styler/labels{/name}","releases_url":"https://api.github.com/repos/r-lib/styler/releases{/id}","deployments_url":"https://api.github.com/repos/r-lib/styler/deployments","created_at":"2017-02-08T19:16:37Z","updated_at":"2017-11-10T02:19:35Z","pushed_at":"2017-11-21T09:05:42Z","git_url":"git://github.com/r-lib/styler.git","ssh_url":"git@github.com:r-lib/styler.git","clone_url":"https://github.com/r-lib/styler.git","svn_url":"https://github.com/r-lib/styler","homepage":"http://styler.r-lib.org","size":1020,"stargazers_count":69,"watchers_count":69,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/r-lib/styler/pulls/279"},"html":{"href":"https://github.com/r-lib/styler/pull/279"},"issue":{"href":"https://api.github.com/repos/r-lib/styler/issues/279"},"comments":{"href":"https://api.github.com/repos/r-lib/styler/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/r-lib/styler/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/r-lib/styler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/r-lib/styler/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/r-lib/styler/statuses/5413eb2f43c26bfed23f3c79ebc7043a9be149b4"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"lorenzwalthert","id":10477073,"avatar_url":"https://avatars1.githubusercontent.com/u/10477073?v=4","gravatar_id":"","url":"https://api.github.com/users/lorenzwalthert","html_url":"https://github.com/lorenzwalthert","followers_url":"https://api.github.com/users/lorenzwalthert/followers","following_url":"https://api.github.com/users/lorenzwalthert/following{/other_user}","gists_url":"https://api.github.com/users/lorenzwalthert/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzwalthert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzwalthert/subscriptions","organizations_url":"https://api.github.com/users/lorenzwalthert/orgs","repos_url":"https://api.github.com/users/lorenzwalthert/repos","events_url":"https://api.github.com/users/lorenzwalthert/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzwalthert/received_events","type":"User","site_admin":false},"comments":10,"review_comments":11,"maintainer_can_modify":false,"commits":19,"additions":1464,"deletions":39,"changed_files":30}}
{"actor":{"display_login":"lorenzwalthert"}}