{"action":"opened","number":282,"pull_request":{"url":"https://api.github.com/repos/millermedeiros/esformatter/pulls/282","id":31838872,"html_url":"https://github.com/millermedeiros/esformatter/pull/282","diff_url":"https://github.com/millermedeiros/esformatter/pull/282.diff","patch_url":"https://github.com/millermedeiros/esformatter/pull/282.patch","issue_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/282","number":282,"state":"open","locked":false,"title":"align comments based on prev/next line","user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"body":"this is still WIP but creating the pull request so you can see the new behavior. all the logic was implemented on [rocambole-indent](https://github.com/millermedeiros/rocambole-indent) and we are just reusing the `indent.alignComments()` method\r\n\r\nstill need to update the tests to match the new behavior but want to confirm if that is really the expected behavior... specially for cases like:\r\n\r\n```js\r\ntry {\r\n  foo();\r\n} catch (e) {\r\n// this won't be indented since it follows next line\r\n);\r\n```\r\n\r\nfixes #209\r\nfixes #270","created_at":"2015-03-24T15:42:06Z","updated_at":"2015-03-24T15:42:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/millermedeiros/esformatter/pulls/282/commits","review_comments_url":"https://api.github.com/repos/millermedeiros/esformatter/pulls/282/comments","review_comment_url":"https://api.github.com/repos/millermedeiros/esformatter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/282/comments","statuses_url":"https://api.github.com/repos/millermedeiros/esformatter/statuses/f9029dddd731926e29f156b8dc8a59b624c8f717","head":{"label":"millermedeiros:align-comments","ref":"align-comments","sha":"f9029dddd731926e29f156b8dc8a59b624c8f717","user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"repo":{"id":7045004,"name":"esformatter","full_name":"millermedeiros/esformatter","owner":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/millermedeiros/esformatter","description":"ECMAScript code beautifier/formatter [WIP]","fork":false,"url":"https://api.github.com/repos/millermedeiros/esformatter","forks_url":"https://api.github.com/repos/millermedeiros/esformatter/forks","keys_url":"https://api.github.com/repos/millermedeiros/esformatter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/millermedeiros/esformatter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/millermedeiros/esformatter/teams","hooks_url":"https://api.github.com/repos/millermedeiros/esformatter/hooks","issue_events_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/events{/number}","events_url":"https://api.github.com/repos/millermedeiros/esformatter/events","assignees_url":"https://api.github.com/repos/millermedeiros/esformatter/assignees{/user}","branches_url":"https://api.github.com/repos/millermedeiros/esformatter/branches{/branch}","tags_url":"https://api.github.com/repos/millermedeiros/esformatter/tags","blobs_url":"https://api.github.com/repos/millermedeiros/esformatter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/millermedeiros/esformatter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/millermedeiros/esformatter/git/refs{/sha}","trees_url":"https://api.github.com/repos/millermedeiros/esformatter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/millermedeiros/esformatter/statuses/{sha}","languages_url":"https://api.github.com/repos/millermedeiros/esformatter/languages","stargazers_url":"https://api.github.com/repos/millermedeiros/esformatter/stargazers","contributors_url":"https://api.github.com/repos/millermedeiros/esformatter/contributors","subscribers_url":"https://api.github.com/repos/millermedeiros/esformatter/subscribers","subscription_url":"https://api.github.com/repos/millermedeiros/esformatter/subscription","commits_url":"https://api.github.com/repos/millermedeiros/esformatter/commits{/sha}","git_commits_url":"https://api.github.com/repos/millermedeiros/esformatter/git/commits{/sha}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/comments{/number}","issue_comment_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/comments{/number}","contents_url":"https://api.github.com/repos/millermedeiros/esformatter/contents/{+path}","compare_url":"https://api.github.com/repos/millermedeiros/esformatter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/millermedeiros/esformatter/merges","archive_url":"https://api.github.com/repos/millermedeiros/esformatter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/millermedeiros/esformatter/downloads","issues_url":"https://api.github.com/repos/millermedeiros/esformatter/issues{/number}","pulls_url":"https://api.github.com/repos/millermedeiros/esformatter/pulls{/number}","milestones_url":"https://api.github.com/repos/millermedeiros/esformatter/milestones{/number}","notifications_url":"https://api.github.com/repos/millermedeiros/esformatter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/labels{/name}","releases_url":"https://api.github.com/repos/millermedeiros/esformatter/releases{/id}","created_at":"2012-12-06T23:49:41Z","updated_at":"2015-03-22T19:00:54Z","pushed_at":"2015-03-24T15:42:06Z","git_url":"git://github.com/millermedeiros/esformatter.git","ssh_url":"git@github.com:millermedeiros/esformatter.git","clone_url":"https://github.com/millermedeiros/esformatter.git","svn_url":"https://github.com/millermedeiros/esformatter","homepage":"","size":2833,"stargazers_count":427,"watchers_count":427,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":28,"forks":48,"open_issues":28,"watchers":427,"default_branch":"master"}},"base":{"label":"millermedeiros:master","ref":"master","sha":"b4dfb14a2ddaca8d1d5bc095f969f20c1114003a","user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"repo":{"id":7045004,"name":"esformatter","full_name":"millermedeiros/esformatter","owner":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/millermedeiros/esformatter","description":"ECMAScript code beautifier/formatter [WIP]","fork":false,"url":"https://api.github.com/repos/millermedeiros/esformatter","forks_url":"https://api.github.com/repos/millermedeiros/esformatter/forks","keys_url":"https://api.github.com/repos/millermedeiros/esformatter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/millermedeiros/esformatter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/millermedeiros/esformatter/teams","hooks_url":"https://api.github.com/repos/millermedeiros/esformatter/hooks","issue_events_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/events{/number}","events_url":"https://api.github.com/repos/millermedeiros/esformatter/events","assignees_url":"https://api.github.com/repos/millermedeiros/esformatter/assignees{/user}","branches_url":"https://api.github.com/repos/millermedeiros/esformatter/branches{/branch}","tags_url":"https://api.github.com/repos/millermedeiros/esformatter/tags","blobs_url":"https://api.github.com/repos/millermedeiros/esformatter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/millermedeiros/esformatter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/millermedeiros/esformatter/git/refs{/sha}","trees_url":"https://api.github.com/repos/millermedeiros/esformatter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/millermedeiros/esformatter/statuses/{sha}","languages_url":"https://api.github.com/repos/millermedeiros/esformatter/languages","stargazers_url":"https://api.github.com/repos/millermedeiros/esformatter/stargazers","contributors_url":"https://api.github.com/repos/millermedeiros/esformatter/contributors","subscribers_url":"https://api.github.com/repos/millermedeiros/esformatter/subscribers","subscription_url":"https://api.github.com/repos/millermedeiros/esformatter/subscription","commits_url":"https://api.github.com/repos/millermedeiros/esformatter/commits{/sha}","git_commits_url":"https://api.github.com/repos/millermedeiros/esformatter/git/commits{/sha}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/comments{/number}","issue_comment_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/comments{/number}","contents_url":"https://api.github.com/repos/millermedeiros/esformatter/contents/{+path}","compare_url":"https://api.github.com/repos/millermedeiros/esformatter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/millermedeiros/esformatter/merges","archive_url":"https://api.github.com/repos/millermedeiros/esformatter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/millermedeiros/esformatter/downloads","issues_url":"https://api.github.com/repos/millermedeiros/esformatter/issues{/number}","pulls_url":"https://api.github.com/repos/millermedeiros/esformatter/pulls{/number}","milestones_url":"https://api.github.com/repos/millermedeiros/esformatter/milestones{/number}","notifications_url":"https://api.github.com/repos/millermedeiros/esformatter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/labels{/name}","releases_url":"https://api.github.com/repos/millermedeiros/esformatter/releases{/id}","created_at":"2012-12-06T23:49:41Z","updated_at":"2015-03-22T19:00:54Z","pushed_at":"2015-03-24T15:42:06Z","git_url":"git://github.com/millermedeiros/esformatter.git","ssh_url":"git@github.com:millermedeiros/esformatter.git","clone_url":"https://github.com/millermedeiros/esformatter.git","svn_url":"https://github.com/millermedeiros/esformatter","homepage":"","size":2833,"stargazers_count":427,"watchers_count":427,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":28,"forks":48,"open_issues":28,"watchers":427,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/millermedeiros/esformatter/pulls/282"},"html":{"href":"https://github.com/millermedeiros/esformatter/pull/282"},"issue":{"href":"https://api.github.com/repos/millermedeiros/esformatter/issues/282"},"comments":{"href":"https://api.github.com/repos/millermedeiros/esformatter/issues/282/comments"},"review_comments":{"href":"https://api.github.com/repos/millermedeiros/esformatter/pulls/282/comments"},"review_comment":{"href":"https://api.github.com/repos/millermedeiros/esformatter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/millermedeiros/esformatter/pulls/282/commits"},"statuses":{"href":"https://api.github.com/repos/millermedeiros/esformatter/statuses/f9029dddd731926e29f156b8dc8a59b624c8f717"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":46,"deletions":1,"changed_files":8}}