{"action":"created","comment":{"url":"https://api.github.com/repos/bem/bh/pulls/comments/123902420","pull_request_review_id":46148744,"id":123902420,"diff_hunk":"@@ -890,7 +890,7 @@ BH.prototype = {\n         }\n         Ctx.prototype = this.utils;\n         var ctx = new Ctx();\n-        while (node = nodes.shift()) {\n+        while (node = nodes.pop()) {","path":"lib/bh.js","position":5,"original_position":5,"commit_id":"7a8cb7a55c3aa389397998f424965daa307df7ba","original_commit_id":"7a8cb7a55c3aa389397998f424965daa307df7ba","user":{"login":"Yeti-or","id":1813468,"avatar_url":"https://avatars3.githubusercontent.com/u/1813468?v=3","gravatar_id":"","url":"https://api.github.com/users/Yeti-or","html_url":"https://github.com/Yeti-or","followers_url":"https://api.github.com/users/Yeti-or/followers","following_url":"https://api.github.com/users/Yeti-or/following{/other_user}","gists_url":"https://api.github.com/users/Yeti-or/gists{/gist_id}","starred_url":"https://api.github.com/users/Yeti-or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yeti-or/subscriptions","organizations_url":"https://api.github.com/users/Yeti-or/orgs","repos_url":"https://api.github.com/users/Yeti-or/repos","events_url":"https://api.github.com/users/Yeti-or/events{/privacy}","received_events_url":"https://api.github.com/users/Yeti-or/received_events","type":"User","site_admin":false},"body":"I changed order of traversing but order of result tree is same","created_at":"2017-06-25T16:05:56Z","updated_at":"2017-06-25T16:05:56Z","html_url":"https://github.com/bem/bh/pull/180#discussion_r123902420","pull_request_url":"https://api.github.com/repos/bem/bh/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/bem/bh/pulls/comments/123902420"},"html":{"href":"https://github.com/bem/bh/pull/180#discussion_r123902420"},"pull_request":{"href":"https://api.github.com/repos/bem/bh/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/bem/bh/pulls/180","id":127111274,"html_url":"https://github.com/bem/bh/pull/180","diff_url":"https://github.com/bem/bh/pull/180.diff","patch_url":"https://github.com/bem/bh/pull/180.patch","issue_url":"https://api.github.com/repos/bem/bh/issues/180","number":180,"state":"open","locked":false,"title":"Change traversing structure from queue to stack.","user":{"login":"Yeti-or","id":1813468,"avatar_url":"https://avatars3.githubusercontent.com/u/1813468?v=3","gravatar_id":"","url":"https://api.github.com/users/Yeti-or","html_url":"https://github.com/Yeti-or","followers_url":"https://api.github.com/users/Yeti-or/followers","following_url":"https://api.github.com/users/Yeti-or/following{/other_user}","gists_url":"https://api.github.com/users/Yeti-or/gists{/gist_id}","starred_url":"https://api.github.com/users/Yeti-or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yeti-or/subscriptions","organizations_url":"https://api.github.com/users/Yeti-or/orgs","repos_url":"https://api.github.com/users/Yeti-or/repos","events_url":"https://api.github.com/users/Yeti-or/events{/privacy}","received_events_url":"https://api.github.com/users/Yeti-or/received_events","type":"User","site_admin":false},"body":"@mishanga I always thought that it's faster to push/pop then shift/unshift from array","created_at":"2017-06-22T23:58:14Z","updated_at":"2017-06-25T16:05:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43895f7e6b2bb3942c381c519f92bc9725d48988","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bem/bh/pulls/180/commits","review_comments_url":"https://api.github.com/repos/bem/bh/pulls/180/comments","review_comment_url":"https://api.github.com/repos/bem/bh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bem/bh/issues/180/comments","statuses_url":"https://api.github.com/repos/bem/bh/statuses/7a8cb7a55c3aa389397998f424965daa307df7ba","head":{"label":"bem:yeti-or.queue-to-stack","ref":"yeti-or.queue-to-stack","sha":"7a8cb7a55c3aa389397998f424965daa307df7ba","user":{"login":"bem","id":223412,"avatar_url":"https://avatars2.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":10816778,"name":"bh","full_name":"bem/bh","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars2.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bh","description":"BH template engine","fork":false,"url":"https://api.github.com/repos/bem/bh","forks_url":"https://api.github.com/repos/bem/bh/forks","keys_url":"https://api.github.com/repos/bem/bh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bh/teams","hooks_url":"https://api.github.com/repos/bem/bh/hooks","issue_events_url":"https://api.github.com/repos/bem/bh/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bh/events","assignees_url":"https://api.github.com/repos/bem/bh/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bh/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bh/tags","blobs_url":"https://api.github.com/repos/bem/bh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bh/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bh/languages","stargazers_url":"https://api.github.com/repos/bem/bh/stargazers","contributors_url":"https://api.github.com/repos/bem/bh/contributors","subscribers_url":"https://api.github.com/repos/bem/bh/subscribers","subscription_url":"https://api.github.com/repos/bem/bh/subscription","commits_url":"https://api.github.com/repos/bem/bh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem/bh/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bh/merges","archive_url":"https://api.github.com/repos/bem/bh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bh/downloads","issues_url":"https://api.github.com/repos/bem/bh/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bh/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bh/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bh/labels{/name}","releases_url":"https://api.github.com/repos/bem/bh/releases{/id}","deployments_url":"https://api.github.com/repos/bem/bh/deployments","created_at":"2013-06-20T09:39:08Z","updated_at":"2017-03-16T20:31:49Z","pushed_at":"2017-06-22T23:58:14Z","git_url":"git://github.com/bem/bh.git","ssh_url":"git@github.com:bem/bh.git","clone_url":"https://github.com/bem/bh.git","svn_url":"https://github.com/bem/bh","homepage":"http://bem.github.io/bh/","size":810,"stargazers_count":68,"watchers_count":68,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":15,"forks":32,"open_issues":15,"watchers":68,"default_branch":"master"}},"base":{"label":"bem:master","ref":"master","sha":"b39d53cf3acaedb14a57e22b2ae2a3f303b085d0","user":{"login":"bem","id":223412,"avatar_url":"https://avatars2.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":10816778,"name":"bh","full_name":"bem/bh","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars2.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bh","description":"BH template engine","fork":false,"url":"https://api.github.com/repos/bem/bh","forks_url":"https://api.github.com/repos/bem/bh/forks","keys_url":"https://api.github.com/repos/bem/bh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bh/teams","hooks_url":"https://api.github.com/repos/bem/bh/hooks","issue_events_url":"https://api.github.com/repos/bem/bh/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bh/events","assignees_url":"https://api.github.com/repos/bem/bh/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bh/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bh/tags","blobs_url":"https://api.github.com/repos/bem/bh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bh/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bh/languages","stargazers_url":"https://api.github.com/repos/bem/bh/stargazers","contributors_url":"https://api.github.com/repos/bem/bh/contributors","subscribers_url":"https://api.github.com/repos/bem/bh/subscribers","subscription_url":"https://api.github.com/repos/bem/bh/subscription","commits_url":"https://api.github.com/repos/bem/bh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem/bh/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bh/merges","archive_url":"https://api.github.com/repos/bem/bh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bh/downloads","issues_url":"https://api.github.com/repos/bem/bh/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bh/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bh/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bh/labels{/name}","releases_url":"https://api.github.com/repos/bem/bh/releases{/id}","deployments_url":"https://api.github.com/repos/bem/bh/deployments","created_at":"2013-06-20T09:39:08Z","updated_at":"2017-03-16T20:31:49Z","pushed_at":"2017-06-22T23:58:14Z","git_url":"git://github.com/bem/bh.git","ssh_url":"git@github.com:bem/bh.git","clone_url":"https://github.com/bem/bh.git","svn_url":"https://github.com/bem/bh","homepage":"http://bem.github.io/bh/","size":810,"stargazers_count":68,"watchers_count":68,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":15,"forks":32,"open_issues":15,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bem/bh/pulls/180"},"html":{"href":"https://github.com/bem/bh/pull/180"},"issue":{"href":"https://api.github.com/repos/bem/bh/issues/180"},"comments":{"href":"https://api.github.com/repos/bem/bh/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/bem/bh/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/bem/bh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bem/bh/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/bem/bh/statuses/7a8cb7a55c3aa389397998f424965daa307df7ba"}}}}
{"actor":{"display_login":"Yeti-or"}}