{"action":"created","comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/comments/24337575","id":24337575,"diff_hunk":"@@ -3,10 +3,11 @@ class Tree\n \n   attr_accessor :entries, :readme, :contribution_guide\n \n-  def initialize(repository, sha, path = '/')\n+  def initialize(repository, sha, path = '/', recursive = '0')","path":"app/models/tree.rb","position":5,"original_position":5,"commit_id":"8ed228ecec4279e76c757b3b90a24b9810c00de0","original_commit_id":"8ed228ecec4279e76c757b3b90a24b9810c00de0","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Perceived complexity for initialize is too high. [9/7]","created_at":"2015-02-09T15:52:02Z","updated_at":"2015-02-09T15:52:02Z","html_url":"https://github.com/gitlabhq/gitlabhq/pull/8761#discussion_r24337575","pull_request_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761","_links":{"self":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/comments/24337575"},"html":{"href":"https://github.com/gitlabhq/gitlabhq/pull/8761#discussion_r24337575"},"pull_request":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761"}}},"pull_request":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761","id":28931278,"html_url":"https://github.com/gitlabhq/gitlabhq/pull/8761","diff_url":"https://github.com/gitlabhq/gitlabhq/pull/8761.diff","patch_url":"https://github.com/gitlabhq/gitlabhq/pull/8761.patch","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8761","number":8761,"state":"open","locked":false,"title":"API: allow recursive tree","user":{"login":"rebecamendez","id":7932200,"avatar_url":"https://avatars.githubusercontent.com/u/7932200?v=3","gravatar_id":"","url":"https://api.github.com/users/rebecamendez","html_url":"https://github.com/rebecamendez","followers_url":"https://api.github.com/users/rebecamendez/followers","following_url":"https://api.github.com/users/rebecamendez/following{/other_user}","gists_url":"https://api.github.com/users/rebecamendez/gists{/gist_id}","starred_url":"https://api.github.com/users/rebecamendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebecamendez/subscriptions","organizations_url":"https://api.github.com/users/rebecamendez/orgs","repos_url":"https://api.github.com/users/rebecamendez/repos","events_url":"https://api.github.com/users/rebecamendez/events{/privacy}","received_events_url":"https://api.github.com/users/rebecamendez/received_events","type":"User","site_admin":false},"body":"Related pull request: https://github.com/gitlabhq/gitlabhq/pull/8519.\r\nI change a little bit the function to reduce the complexity, and I think a can't do anything to reduce more.\r\n","created_at":"2015-02-09T15:51:54Z","updated_at":"2015-02-09T15:52:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eab55befc2110fa368bbe32442978af326db8885","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761/commits","review_comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761/comments","review_comment_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8761/comments","statuses_url":"https://api.github.com/repos/gitlabhq/gitlabhq/statuses/8ed228ecec4279e76c757b3b90a24b9810c00de0","head":{"label":"rebecamendez:feature-recursive-tree-v2","ref":"feature-recursive-tree-v2","sha":"8ed228ecec4279e76c757b3b90a24b9810c00de0","user":{"login":"rebecamendez","id":7932200,"avatar_url":"https://avatars.githubusercontent.com/u/7932200?v=3","gravatar_id":"","url":"https://api.github.com/users/rebecamendez","html_url":"https://github.com/rebecamendez","followers_url":"https://api.github.com/users/rebecamendez/followers","following_url":"https://api.github.com/users/rebecamendez/following{/other_user}","gists_url":"https://api.github.com/users/rebecamendez/gists{/gist_id}","starred_url":"https://api.github.com/users/rebecamendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebecamendez/subscriptions","organizations_url":"https://api.github.com/users/rebecamendez/orgs","repos_url":"https://api.github.com/users/rebecamendez/repos","events_url":"https://api.github.com/users/rebecamendez/events{/privacy}","received_events_url":"https://api.github.com/users/rebecamendez/received_events","type":"User","site_admin":false},"repo":{"id":28635621,"name":"gitlabhq","full_name":"rebecamendez/gitlabhq","owner":{"login":"rebecamendez","id":7932200,"avatar_url":"https://avatars.githubusercontent.com/u/7932200?v=3","gravatar_id":"","url":"https://api.github.com/users/rebecamendez","html_url":"https://github.com/rebecamendez","followers_url":"https://api.github.com/users/rebecamendez/followers","following_url":"https://api.github.com/users/rebecamendez/following{/other_user}","gists_url":"https://api.github.com/users/rebecamendez/gists{/gist_id}","starred_url":"https://api.github.com/users/rebecamendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebecamendez/subscriptions","organizations_url":"https://api.github.com/users/rebecamendez/orgs","repos_url":"https://api.github.com/users/rebecamendez/repos","events_url":"https://api.github.com/users/rebecamendez/events{/privacy}","received_events_url":"https://api.github.com/users/rebecamendez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rebecamendez/gitlabhq","description":"Open source software to collaborate on code. Follow us on twitter @gitlabhq","fork":true,"url":"https://api.github.com/repos/rebecamendez/gitlabhq","forks_url":"https://api.github.com/repos/rebecamendez/gitlabhq/forks","keys_url":"https://api.github.com/repos/rebecamendez/gitlabhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rebecamendez/gitlabhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rebecamendez/gitlabhq/teams","hooks_url":"https://api.github.com/repos/rebecamendez/gitlabhq/hooks","issue_events_url":"https://api.github.com/repos/rebecamendez/gitlabhq/issues/events{/number}","events_url":"https://api.github.com/repos/rebecamendez/gitlabhq/events","assignees_url":"https://api.github.com/repos/rebecamendez/gitlabhq/assignees{/user}","branches_url":"https://api.github.com/repos/rebecamendez/gitlabhq/branches{/branch}","tags_url":"https://api.github.com/repos/rebecamendez/gitlabhq/tags","blobs_url":"https://api.github.com/repos/rebecamendez/gitlabhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rebecamendez/gitlabhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rebecamendez/gitlabhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/rebecamendez/gitlabhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rebecamendez/gitlabhq/statuses/{sha}","languages_url":"https://api.github.com/repos/rebecamendez/gitlabhq/languages","stargazers_url":"https://api.github.com/repos/rebecamendez/gitlabhq/stargazers","contributors_url":"https://api.github.com/repos/rebecamendez/gitlabhq/contributors","subscribers_url":"https://api.github.com/repos/rebecamendez/gitlabhq/subscribers","subscription_url":"https://api.github.com/repos/rebecamendez/gitlabhq/subscription","commits_url":"https://api.github.com/repos/rebecamendez/gitlabhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/rebecamendez/gitlabhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/rebecamendez/gitlabhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/rebecamendez/gitlabhq/issues/comments/{number}","contents_url":"https://api.github.com/repos/rebecamendez/gitlabhq/contents/{+path}","compare_url":"https://api.github.com/repos/rebecamendez/gitlabhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rebecamendez/gitlabhq/merges","archive_url":"https://api.github.com/repos/rebecamendez/gitlabhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rebecamendez/gitlabhq/downloads","issues_url":"https://api.github.com/repos/rebecamendez/gitlabhq/issues{/number}","pulls_url":"https://api.github.com/repos/rebecamendez/gitlabhq/pulls{/number}","milestones_url":"https://api.github.com/repos/rebecamendez/gitlabhq/milestones{/number}","notifications_url":"https://api.github.com/repos/rebecamendez/gitlabhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rebecamendez/gitlabhq/labels{/name}","releases_url":"https://api.github.com/repos/rebecamendez/gitlabhq/releases{/id}","created_at":"2014-12-30T15:31:23Z","updated_at":"2015-02-09T15:34:49Z","pushed_at":"2015-02-09T15:46:17Z","git_url":"git://github.com/rebecamendez/gitlabhq.git","ssh_url":"git@github.com:rebecamendez/gitlabhq.git","clone_url":"https://github.com/rebecamendez/gitlabhq.git","svn_url":"https://github.com/rebecamendez/gitlabhq","homepage":"https://about.gitlab.com/","size":88590,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gitlabhq:master","ref":"master","sha":"dc365a1d20c2c395c32a2e3869fd1de500c09ae9","user":{"login":"gitlabhq","id":1086321,"avatar_url":"https://avatars.githubusercontent.com/u/1086321?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlabhq","html_url":"https://github.com/gitlabhq","followers_url":"https://api.github.com/users/gitlabhq/followers","following_url":"https://api.github.com/users/gitlabhq/following{/other_user}","gists_url":"https://api.github.com/users/gitlabhq/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlabhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlabhq/subscriptions","organizations_url":"https://api.github.com/users/gitlabhq/orgs","repos_url":"https://api.github.com/users/gitlabhq/repos","events_url":"https://api.github.com/users/gitlabhq/events{/privacy}","received_events_url":"https://api.github.com/users/gitlabhq/received_events","type":"Organization","site_admin":false},"repo":{"id":2500088,"name":"gitlabhq","full_name":"gitlabhq/gitlabhq","owner":{"login":"gitlabhq","id":1086321,"avatar_url":"https://avatars.githubusercontent.com/u/1086321?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlabhq","html_url":"https://github.com/gitlabhq","followers_url":"https://api.github.com/users/gitlabhq/followers","following_url":"https://api.github.com/users/gitlabhq/following{/other_user}","gists_url":"https://api.github.com/users/gitlabhq/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlabhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlabhq/subscriptions","organizations_url":"https://api.github.com/users/gitlabhq/orgs","repos_url":"https://api.github.com/users/gitlabhq/repos","events_url":"https://api.github.com/users/gitlabhq/events{/privacy}","received_events_url":"https://api.github.com/users/gitlabhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitlabhq/gitlabhq","description":"Open source software to collaborate on code. Follow us on twitter @gitlab","fork":false,"url":"https://api.github.com/repos/gitlabhq/gitlabhq","forks_url":"https://api.github.com/repos/gitlabhq/gitlabhq/forks","keys_url":"https://api.github.com/repos/gitlabhq/gitlabhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlabhq/gitlabhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlabhq/gitlabhq/teams","hooks_url":"https://api.github.com/repos/gitlabhq/gitlabhq/hooks","issue_events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/events{/number}","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/events","assignees_url":"https://api.github.com/repos/gitlabhq/gitlabhq/assignees{/user}","branches_url":"https://api.github.com/repos/gitlabhq/gitlabhq/branches{/branch}","tags_url":"https://api.github.com/repos/gitlabhq/gitlabhq/tags","blobs_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlabhq/gitlabhq/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlabhq/gitlabhq/languages","stargazers_url":"https://api.github.com/repos/gitlabhq/gitlabhq/stargazers","contributors_url":"https://api.github.com/repos/gitlabhq/gitlabhq/contributors","subscribers_url":"https://api.github.com/repos/gitlabhq/gitlabhq/subscribers","subscription_url":"https://api.github.com/repos/gitlabhq/gitlabhq/subscription","commits_url":"https://api.github.com/repos/gitlabhq/gitlabhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/{number}","contents_url":"https://api.github.com/repos/gitlabhq/gitlabhq/contents/{+path}","compare_url":"https://api.github.com/repos/gitlabhq/gitlabhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlabhq/gitlabhq/merges","archive_url":"https://api.github.com/repos/gitlabhq/gitlabhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlabhq/gitlabhq/downloads","issues_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues{/number}","pulls_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlabhq/gitlabhq/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlabhq/gitlabhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/labels{/name}","releases_url":"https://api.github.com/repos/gitlabhq/gitlabhq/releases{/id}","created_at":"2011-10-02T16:25:27Z","updated_at":"2015-02-09T15:34:19Z","pushed_at":"2015-02-09T10:52:28Z","git_url":"git://github.com/gitlabhq/gitlabhq.git","ssh_url":"git@github.com:gitlabhq/gitlabhq.git","clone_url":"https://github.com/gitlabhq/gitlabhq.git","svn_url":"https://github.com/gitlabhq/gitlabhq","homepage":"https://about.gitlab.com/","size":146444,"stargazers_count":14852,"watchers_count":14852,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3892,"mirror_url":null,"open_issues_count":728,"forks":3892,"open_issues":728,"watchers":14852,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761"},"html":{"href":"https://github.com/gitlabhq/gitlabhq/pull/8761"},"issue":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8761"},"comments":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8761/comments"},"review_comments":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761/comments"},"review_comment":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8761/commits"},"statuses":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/statuses/8ed228ecec4279e76c757b3b90a24b9810c00de0"}}}}