{"action":"created","comment":{"url":"https://api.github.com/repos/src-d/go-git/pulls/comments/97975810","pull_request_review_id":18601912,"id":97975810,"diff_hunk":"@@ -48,6 +48,22 @@ func (s *TreeSuite) TestType(c *C) {\n \tc.Assert(s.Tree.Type(), Equals, plumbing.TreeObject)\n }\n \n+func (s *TreeSuite) TestTree(c *C) {","path":"plumbing/object/tree_test.go","position":4,"original_position":4,"commit_id":"d83b22d2938f127f069a333b100d14d6afcdc70e","original_commit_id":"3647a780e5d49dff01f97ec8b0d5e35b4251ca1d","user":{"login":"alcortesm","id":9169414,"avatar_url":"https://avatars.githubusercontent.com/u/9169414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcortesm","html_url":"https://github.com/alcortesm","followers_url":"https://api.github.com/users/alcortesm/followers","following_url":"https://api.github.com/users/alcortesm/following{/other_user}","gists_url":"https://api.github.com/users/alcortesm/gists{/gist_id}","starred_url":"https://api.github.com/users/alcortesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcortesm/subscriptions","organizations_url":"https://api.github.com/users/alcortesm/orgs","repos_url":"https://api.github.com/users/alcortesm/repos","events_url":"https://api.github.com/users/alcortesm/events{/privacy}","received_events_url":"https://api.github.com/users/alcortesm/received_events","type":"User","site_admin":false},"body":"Good catch.\r\nFixed in a new commit.\r\nAlso add the equivalent test for `File`, for consistency.","created_at":"2017-01-26T11:30:05Z","updated_at":"2017-01-26T11:30:05Z","html_url":"https://github.com/src-d/go-git/pull/224#discussion_r97975810","pull_request_url":"https://api.github.com/repos/src-d/go-git/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/src-d/go-git/pulls/comments/97975810"},"html":{"href":"https://github.com/src-d/go-git/pull/224#discussion_r97975810"},"pull_request":{"href":"https://api.github.com/repos/src-d/go-git/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/src-d/go-git/pulls/224","id":103119195,"html_url":"https://github.com/src-d/go-git/pull/224","diff_url":"https://github.com/src-d/go-git/pull/224.diff","patch_url":"https://github.com/src-d/go-git/pull/224.patch","issue_url":"https://api.github.com/repos/src-d/go-git/issues/224","number":224,"state":"open","locked":false,"title":"adds Tree method to Tree","user":{"login":"alcortesm","id":9169414,"avatar_url":"https://avatars.githubusercontent.com/u/9169414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcortesm","html_url":"https://github.com/alcortesm","followers_url":"https://api.github.com/users/alcortesm/followers","following_url":"https://api.github.com/users/alcortesm/following{/other_user}","gists_url":"https://api.github.com/users/alcortesm/gists{/gist_id}","starred_url":"https://api.github.com/users/alcortesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcortesm/subscriptions","organizations_url":"https://api.github.com/users/alcortesm/orgs","repos_url":"https://api.github.com/users/alcortesm/repos","events_url":"https://api.github.com/users/alcortesm/events{/privacy}","received_events_url":"https://api.github.com/users/alcortesm/received_events","type":"User","site_admin":false},"body":"This patch adds a new method to the Tree object that allows you to get a child tree from a parent tree by its relative name.\r\n\r\nBefore this patch, this was only possible with files, using the `File` method.\r\n\r\nThe new `Tree` method has a similar signature to the old `File` method for consistency.","created_at":"2017-01-25T13:33:09Z","updated_at":"2017-01-26T11:30:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faaa664097e93a09af18058aa7f7e544439d3bea","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/src-d/go-git/pulls/224/commits","review_comments_url":"https://api.github.com/repos/src-d/go-git/pulls/224/comments","review_comment_url":"https://api.github.com/repos/src-d/go-git/pulls/comments{/number}","comments_url":"https://api.github.com/repos/src-d/go-git/issues/224/comments","statuses_url":"https://api.github.com/repos/src-d/go-git/statuses/d83b22d2938f127f069a333b100d14d6afcdc70e","head":{"label":"alcortesm:improvement-tree-can-return-directories","ref":"improvement-tree-can-return-directories","sha":"d83b22d2938f127f069a333b100d14d6afcdc70e","user":{"login":"alcortesm","id":9169414,"avatar_url":"https://avatars.githubusercontent.com/u/9169414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcortesm","html_url":"https://github.com/alcortesm","followers_url":"https://api.github.com/users/alcortesm/followers","following_url":"https://api.github.com/users/alcortesm/following{/other_user}","gists_url":"https://api.github.com/users/alcortesm/gists{/gist_id}","starred_url":"https://api.github.com/users/alcortesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcortesm/subscriptions","organizations_url":"https://api.github.com/users/alcortesm/orgs","repos_url":"https://api.github.com/users/alcortesm/repos","events_url":"https://api.github.com/users/alcortesm/events{/privacy}","received_events_url":"https://api.github.com/users/alcortesm/received_events","type":"User","site_admin":false},"repo":{"id":44801835,"name":"go-git","full_name":"alcortesm/go-git","owner":{"login":"alcortesm","id":9169414,"avatar_url":"https://avatars.githubusercontent.com/u/9169414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcortesm","html_url":"https://github.com/alcortesm","followers_url":"https://api.github.com/users/alcortesm/followers","following_url":"https://api.github.com/users/alcortesm/following{/other_user}","gists_url":"https://api.github.com/users/alcortesm/gists{/gist_id}","starred_url":"https://api.github.com/users/alcortesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcortesm/subscriptions","organizations_url":"https://api.github.com/users/alcortesm/orgs","repos_url":"https://api.github.com/users/alcortesm/repos","events_url":"https://api.github.com/users/alcortesm/events{/privacy}","received_events_url":"https://api.github.com/users/alcortesm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alcortesm/go-git","description":"dependency free git client ","fork":true,"url":"https://api.github.com/repos/alcortesm/go-git","forks_url":"https://api.github.com/repos/alcortesm/go-git/forks","keys_url":"https://api.github.com/repos/alcortesm/go-git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alcortesm/go-git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alcortesm/go-git/teams","hooks_url":"https://api.github.com/repos/alcortesm/go-git/hooks","issue_events_url":"https://api.github.com/repos/alcortesm/go-git/issues/events{/number}","events_url":"https://api.github.com/repos/alcortesm/go-git/events","assignees_url":"https://api.github.com/repos/alcortesm/go-git/assignees{/user}","branches_url":"https://api.github.com/repos/alcortesm/go-git/branches{/branch}","tags_url":"https://api.github.com/repos/alcortesm/go-git/tags","blobs_url":"https://api.github.com/repos/alcortesm/go-git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alcortesm/go-git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alcortesm/go-git/git/refs{/sha}","trees_url":"https://api.github.com/repos/alcortesm/go-git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alcortesm/go-git/statuses/{sha}","languages_url":"https://api.github.com/repos/alcortesm/go-git/languages","stargazers_url":"https://api.github.com/repos/alcortesm/go-git/stargazers","contributors_url":"https://api.github.com/repos/alcortesm/go-git/contributors","subscribers_url":"https://api.github.com/repos/alcortesm/go-git/subscribers","subscription_url":"https://api.github.com/repos/alcortesm/go-git/subscription","commits_url":"https://api.github.com/repos/alcortesm/go-git/commits{/sha}","git_commits_url":"https://api.github.com/repos/alcortesm/go-git/git/commits{/sha}","comments_url":"https://api.github.com/repos/alcortesm/go-git/comments{/number}","issue_comment_url":"https://api.github.com/repos/alcortesm/go-git/issues/comments{/number}","contents_url":"https://api.github.com/repos/alcortesm/go-git/contents/{+path}","compare_url":"https://api.github.com/repos/alcortesm/go-git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alcortesm/go-git/merges","archive_url":"https://api.github.com/repos/alcortesm/go-git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alcortesm/go-git/downloads","issues_url":"https://api.github.com/repos/alcortesm/go-git/issues{/number}","pulls_url":"https://api.github.com/repos/alcortesm/go-git/pulls{/number}","milestones_url":"https://api.github.com/repos/alcortesm/go-git/milestones{/number}","notifications_url":"https://api.github.com/repos/alcortesm/go-git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alcortesm/go-git/labels{/name}","releases_url":"https://api.github.com/repos/alcortesm/go-git/releases{/id}","deployments_url":"https://api.github.com/repos/alcortesm/go-git/deployments","created_at":"2015-10-23T08:53:39Z","updated_at":"2016-10-25T07:20:44Z","pushed_at":"2017-01-26T11:29:11Z","git_url":"git://github.com/alcortesm/go-git.git","ssh_url":"git@github.com:alcortesm/go-git.git","clone_url":"https://github.com/alcortesm/go-git.git","svn_url":"https://github.com/alcortesm/go-git","homepage":"","size":60943,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"src-d:master","ref":"master","sha":"97c02730b8cbfdbe892f9b39ac47a7d0f66bf60e","user":{"login":"src-d","id":15128793,"avatar_url":"https://avatars.githubusercontent.com/u/15128793?v=3","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"repo":{"id":44739044,"name":"go-git","full_name":"src-d/go-git","owner":{"login":"src-d","id":15128793,"avatar_url":"https://avatars.githubusercontent.com/u/15128793?v=3","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/src-d/go-git","description":"A low level and highly extensible Git implementation in pure Go.","fork":false,"url":"https://api.github.com/repos/src-d/go-git","forks_url":"https://api.github.com/repos/src-d/go-git/forks","keys_url":"https://api.github.com/repos/src-d/go-git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/src-d/go-git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/src-d/go-git/teams","hooks_url":"https://api.github.com/repos/src-d/go-git/hooks","issue_events_url":"https://api.github.com/repos/src-d/go-git/issues/events{/number}","events_url":"https://api.github.com/repos/src-d/go-git/events","assignees_url":"https://api.github.com/repos/src-d/go-git/assignees{/user}","branches_url":"https://api.github.com/repos/src-d/go-git/branches{/branch}","tags_url":"https://api.github.com/repos/src-d/go-git/tags","blobs_url":"https://api.github.com/repos/src-d/go-git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/src-d/go-git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/src-d/go-git/git/refs{/sha}","trees_url":"https://api.github.com/repos/src-d/go-git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/src-d/go-git/statuses/{sha}","languages_url":"https://api.github.com/repos/src-d/go-git/languages","stargazers_url":"https://api.github.com/repos/src-d/go-git/stargazers","contributors_url":"https://api.github.com/repos/src-d/go-git/contributors","subscribers_url":"https://api.github.com/repos/src-d/go-git/subscribers","subscription_url":"https://api.github.com/repos/src-d/go-git/subscription","commits_url":"https://api.github.com/repos/src-d/go-git/commits{/sha}","git_commits_url":"https://api.github.com/repos/src-d/go-git/git/commits{/sha}","comments_url":"https://api.github.com/repos/src-d/go-git/comments{/number}","issue_comment_url":"https://api.github.com/repos/src-d/go-git/issues/comments{/number}","contents_url":"https://api.github.com/repos/src-d/go-git/contents/{+path}","compare_url":"https://api.github.com/repos/src-d/go-git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/src-d/go-git/merges","archive_url":"https://api.github.com/repos/src-d/go-git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/src-d/go-git/downloads","issues_url":"https://api.github.com/repos/src-d/go-git/issues{/number}","pulls_url":"https://api.github.com/repos/src-d/go-git/pulls{/number}","milestones_url":"https://api.github.com/repos/src-d/go-git/milestones{/number}","notifications_url":"https://api.github.com/repos/src-d/go-git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/src-d/go-git/labels{/name}","releases_url":"https://api.github.com/repos/src-d/go-git/releases{/id}","deployments_url":"https://api.github.com/repos/src-d/go-git/deployments","created_at":"2015-10-22T10:43:33Z","updated_at":"2017-01-25T13:16:07Z","pushed_at":"2017-01-26T11:29:13Z","git_url":"git://github.com/src-d/go-git.git","ssh_url":"git@github.com:src-d/go-git.git","clone_url":"https://github.com/src-d/go-git.git","svn_url":"https://github.com/src-d/go-git","homepage":"https://godoc.org/gopkg.in/src-d/go-git.v4","size":60784,"stargazers_count":1069,"watchers_count":1069,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":16,"forks":64,"open_issues":16,"watchers":1069,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/src-d/go-git/pulls/224"},"html":{"href":"https://github.com/src-d/go-git/pull/224"},"issue":{"href":"https://api.github.com/repos/src-d/go-git/issues/224"},"comments":{"href":"https://api.github.com/repos/src-d/go-git/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/src-d/go-git/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/src-d/go-git/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/src-d/go-git/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/src-d/go-git/statuses/d83b22d2938f127f069a333b100d14d6afcdc70e"}}}}
{"actor":{"display_login":"alcortesm"}}