{"action":"created","comment":{"url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/comments/64803366","id":64803366,"diff_hunk":"@@ -0,0 +1,35 @@\n+﻿using System;\n+using System.IO;\n+using Cake.Core;\n+using Cake.Core.Annotations;\n+using LibGit2Sharp;\n+\n+namespace Cake.Git\n+{\n+    public static partial class GitAliases\n+    {\n+        /// <summary>\n+        /// Finding git root path from subtree.\n+        /// </summary>\n+        /// <param name=\"context\">The context.</param>\n+        /// <param name=\"path\">Path to probe the repository.</param>\n+        /// <returns>The path to the repository root.</returns>\n+        /// <exception cref=\"ArgumentNullException\">If any of the parameters are null.</exception>\n+        [CakeMethodAlias]\n+        [CakeAliasCategory(\"FindRootFromPath\")]\n+        public static string GitFindRootFromPath(this ICakeContext context, string path)","path":"src/Cake.Git/GitAliases.GitFindRootFromPath.cs","position":null,"original_position":20,"commit_id":"e1a3dbe94775c9715070f5e573f4bb12b636dc0e","original_commit_id":"7286b973e81951649037ec026fc08121bca429d3","user":{"login":"halex2005","id":1401048,"avatar_url":"https://avatars.githubusercontent.com/u/1401048?v=3","gravatar_id":"","url":"https://api.github.com/users/halex2005","html_url":"https://github.com/halex2005","followers_url":"https://api.github.com/users/halex2005/followers","following_url":"https://api.github.com/users/halex2005/following{/other_user}","gists_url":"https://api.github.com/users/halex2005/gists{/gist_id}","starred_url":"https://api.github.com/users/halex2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halex2005/subscriptions","organizations_url":"https://api.github.com/users/halex2005/orgs","repos_url":"https://api.github.com/users/halex2005/repos","events_url":"https://api.github.com/users/halex2005/events{/privacy}","received_events_url":"https://api.github.com/users/halex2005/received_events","type":"User","site_admin":false},"body":"yep, done","created_at":"2016-05-26T19:11:35Z","updated_at":"2016-05-26T19:11:35Z","html_url":"https://github.com/WCOMAB/Cake_Git/pull/4#discussion_r64803366","pull_request_url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/comments/64803366"},"html":{"href":"https://github.com/WCOMAB/Cake_Git/pull/4#discussion_r64803366"},"pull_request":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4","id":70691989,"html_url":"https://github.com/WCOMAB/Cake_Git/pull/4","diff_url":"https://github.com/WCOMAB/Cake_Git/pull/4.diff","patch_url":"https://github.com/WCOMAB/Cake_Git/pull/4.patch","issue_url":"https://api.github.com/repos/WCOMAB/Cake_Git/issues/4","number":4,"state":"open","locked":false,"title":"finding git root up in the directory  tree","user":{"login":"halex2005","id":1401048,"avatar_url":"https://avatars.githubusercontent.com/u/1401048?v=3","gravatar_id":"","url":"https://api.github.com/users/halex2005","html_url":"https://github.com/halex2005","followers_url":"https://api.github.com/users/halex2005/followers","following_url":"https://api.github.com/users/halex2005/following{/other_user}","gists_url":"https://api.github.com/users/halex2005/gists{/gist_id}","starred_url":"https://api.github.com/users/halex2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halex2005/subscriptions","organizations_url":"https://api.github.com/users/halex2005/orgs","repos_url":"https://api.github.com/users/halex2005/repos","events_url":"https://api.github.com/users/halex2005/events{/privacy}","received_events_url":"https://api.github.com/users/halex2005/received_events","type":"User","site_admin":false},"body":"Hello!\r\nI'd like to use Cake.Git tool in my build scripts, but I found that all repositoryDirectoryPath parameters must point to root git working directory.\r\nMy cake build script placed inside src subdirectory and I need to find git root up the directories tree.\r\nThis PR does just that.\r\nPlease, consider to approve this PR.\r\n\r\n/cc: @devlead","created_at":"2016-05-19T13:16:45Z","updated_at":"2016-05-26T19:11:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6dda65fe2bea80ffe27088ecb63075494bd1b68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4/commits","review_comments_url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4/comments","review_comment_url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WCOMAB/Cake_Git/issues/4/comments","statuses_url":"https://api.github.com/repos/WCOMAB/Cake_Git/statuses/e1a3dbe94775c9715070f5e573f4bb12b636dc0e","head":{"label":"halex2005:finding-root","ref":"finding-root","sha":"e1a3dbe94775c9715070f5e573f4bb12b636dc0e","user":{"login":"halex2005","id":1401048,"avatar_url":"https://avatars.githubusercontent.com/u/1401048?v=3","gravatar_id":"","url":"https://api.github.com/users/halex2005","html_url":"https://github.com/halex2005","followers_url":"https://api.github.com/users/halex2005/followers","following_url":"https://api.github.com/users/halex2005/following{/other_user}","gists_url":"https://api.github.com/users/halex2005/gists{/gist_id}","starred_url":"https://api.github.com/users/halex2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halex2005/subscriptions","organizations_url":"https://api.github.com/users/halex2005/orgs","repos_url":"https://api.github.com/users/halex2005/repos","events_url":"https://api.github.com/users/halex2005/events{/privacy}","received_events_url":"https://api.github.com/users/halex2005/received_events","type":"User","site_admin":false},"repo":{"id":59182808,"name":"Cake_Git","full_name":"halex2005/Cake_Git","owner":{"login":"halex2005","id":1401048,"avatar_url":"https://avatars.githubusercontent.com/u/1401048?v=3","gravatar_id":"","url":"https://api.github.com/users/halex2005","html_url":"https://github.com/halex2005","followers_url":"https://api.github.com/users/halex2005/followers","following_url":"https://api.github.com/users/halex2005/following{/other_user}","gists_url":"https://api.github.com/users/halex2005/gists{/gist_id}","starred_url":"https://api.github.com/users/halex2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halex2005/subscriptions","organizations_url":"https://api.github.com/users/halex2005/orgs","repos_url":"https://api.github.com/users/halex2005/repos","events_url":"https://api.github.com/users/halex2005/events{/privacy}","received_events_url":"https://api.github.com/users/halex2005/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halex2005/Cake_Git","description":"Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp","fork":true,"url":"https://api.github.com/repos/halex2005/Cake_Git","forks_url":"https://api.github.com/repos/halex2005/Cake_Git/forks","keys_url":"https://api.github.com/repos/halex2005/Cake_Git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halex2005/Cake_Git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halex2005/Cake_Git/teams","hooks_url":"https://api.github.com/repos/halex2005/Cake_Git/hooks","issue_events_url":"https://api.github.com/repos/halex2005/Cake_Git/issues/events{/number}","events_url":"https://api.github.com/repos/halex2005/Cake_Git/events","assignees_url":"https://api.github.com/repos/halex2005/Cake_Git/assignees{/user}","branches_url":"https://api.github.com/repos/halex2005/Cake_Git/branches{/branch}","tags_url":"https://api.github.com/repos/halex2005/Cake_Git/tags","blobs_url":"https://api.github.com/repos/halex2005/Cake_Git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halex2005/Cake_Git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halex2005/Cake_Git/git/refs{/sha}","trees_url":"https://api.github.com/repos/halex2005/Cake_Git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halex2005/Cake_Git/statuses/{sha}","languages_url":"https://api.github.com/repos/halex2005/Cake_Git/languages","stargazers_url":"https://api.github.com/repos/halex2005/Cake_Git/stargazers","contributors_url":"https://api.github.com/repos/halex2005/Cake_Git/contributors","subscribers_url":"https://api.github.com/repos/halex2005/Cake_Git/subscribers","subscription_url":"https://api.github.com/repos/halex2005/Cake_Git/subscription","commits_url":"https://api.github.com/repos/halex2005/Cake_Git/commits{/sha}","git_commits_url":"https://api.github.com/repos/halex2005/Cake_Git/git/commits{/sha}","comments_url":"https://api.github.com/repos/halex2005/Cake_Git/comments{/number}","issue_comment_url":"https://api.github.com/repos/halex2005/Cake_Git/issues/comments{/number}","contents_url":"https://api.github.com/repos/halex2005/Cake_Git/contents/{+path}","compare_url":"https://api.github.com/repos/halex2005/Cake_Git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halex2005/Cake_Git/merges","archive_url":"https://api.github.com/repos/halex2005/Cake_Git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halex2005/Cake_Git/downloads","issues_url":"https://api.github.com/repos/halex2005/Cake_Git/issues{/number}","pulls_url":"https://api.github.com/repos/halex2005/Cake_Git/pulls{/number}","milestones_url":"https://api.github.com/repos/halex2005/Cake_Git/milestones{/number}","notifications_url":"https://api.github.com/repos/halex2005/Cake_Git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halex2005/Cake_Git/labels{/name}","releases_url":"https://api.github.com/repos/halex2005/Cake_Git/releases{/id}","deployments_url":"https://api.github.com/repos/halex2005/Cake_Git/deployments","created_at":"2016-05-19T07:12:46Z","updated_at":"2016-05-19T07:12:47Z","pushed_at":"2016-05-26T19:06:23Z","git_url":"git://github.com/halex2005/Cake_Git.git","ssh_url":"git@github.com:halex2005/Cake_Git.git","clone_url":"https://github.com/halex2005/Cake_Git.git","svn_url":"https://github.com/halex2005/Cake_Git","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"WCOMAB:master","ref":"master","sha":"069c08ced2ef9390a80ebaafc2dedb6dfea4557b","user":{"login":"WCOMAB","id":9527397,"avatar_url":"https://avatars.githubusercontent.com/u/9527397?v=3","gravatar_id":"","url":"https://api.github.com/users/WCOMAB","html_url":"https://github.com/WCOMAB","followers_url":"https://api.github.com/users/WCOMAB/followers","following_url":"https://api.github.com/users/WCOMAB/following{/other_user}","gists_url":"https://api.github.com/users/WCOMAB/gists{/gist_id}","starred_url":"https://api.github.com/users/WCOMAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCOMAB/subscriptions","organizations_url":"https://api.github.com/users/WCOMAB/orgs","repos_url":"https://api.github.com/users/WCOMAB/repos","events_url":"https://api.github.com/users/WCOMAB/events{/privacy}","received_events_url":"https://api.github.com/users/WCOMAB/received_events","type":"Organization","site_admin":false},"repo":{"id":47889703,"name":"Cake_Git","full_name":"WCOMAB/Cake_Git","owner":{"login":"WCOMAB","id":9527397,"avatar_url":"https://avatars.githubusercontent.com/u/9527397?v=3","gravatar_id":"","url":"https://api.github.com/users/WCOMAB","html_url":"https://github.com/WCOMAB","followers_url":"https://api.github.com/users/WCOMAB/followers","following_url":"https://api.github.com/users/WCOMAB/following{/other_user}","gists_url":"https://api.github.com/users/WCOMAB/gists{/gist_id}","starred_url":"https://api.github.com/users/WCOMAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCOMAB/subscriptions","organizations_url":"https://api.github.com/users/WCOMAB/orgs","repos_url":"https://api.github.com/users/WCOMAB/repos","events_url":"https://api.github.com/users/WCOMAB/events{/privacy}","received_events_url":"https://api.github.com/users/WCOMAB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WCOMAB/Cake_Git","description":"Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp","fork":false,"url":"https://api.github.com/repos/WCOMAB/Cake_Git","forks_url":"https://api.github.com/repos/WCOMAB/Cake_Git/forks","keys_url":"https://api.github.com/repos/WCOMAB/Cake_Git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WCOMAB/Cake_Git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WCOMAB/Cake_Git/teams","hooks_url":"https://api.github.com/repos/WCOMAB/Cake_Git/hooks","issue_events_url":"https://api.github.com/repos/WCOMAB/Cake_Git/issues/events{/number}","events_url":"https://api.github.com/repos/WCOMAB/Cake_Git/events","assignees_url":"https://api.github.com/repos/WCOMAB/Cake_Git/assignees{/user}","branches_url":"https://api.github.com/repos/WCOMAB/Cake_Git/branches{/branch}","tags_url":"https://api.github.com/repos/WCOMAB/Cake_Git/tags","blobs_url":"https://api.github.com/repos/WCOMAB/Cake_Git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WCOMAB/Cake_Git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WCOMAB/Cake_Git/git/refs{/sha}","trees_url":"https://api.github.com/repos/WCOMAB/Cake_Git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WCOMAB/Cake_Git/statuses/{sha}","languages_url":"https://api.github.com/repos/WCOMAB/Cake_Git/languages","stargazers_url":"https://api.github.com/repos/WCOMAB/Cake_Git/stargazers","contributors_url":"https://api.github.com/repos/WCOMAB/Cake_Git/contributors","subscribers_url":"https://api.github.com/repos/WCOMAB/Cake_Git/subscribers","subscription_url":"https://api.github.com/repos/WCOMAB/Cake_Git/subscription","commits_url":"https://api.github.com/repos/WCOMAB/Cake_Git/commits{/sha}","git_commits_url":"https://api.github.com/repos/WCOMAB/Cake_Git/git/commits{/sha}","comments_url":"https://api.github.com/repos/WCOMAB/Cake_Git/comments{/number}","issue_comment_url":"https://api.github.com/repos/WCOMAB/Cake_Git/issues/comments{/number}","contents_url":"https://api.github.com/repos/WCOMAB/Cake_Git/contents/{+path}","compare_url":"https://api.github.com/repos/WCOMAB/Cake_Git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WCOMAB/Cake_Git/merges","archive_url":"https://api.github.com/repos/WCOMAB/Cake_Git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WCOMAB/Cake_Git/downloads","issues_url":"https://api.github.com/repos/WCOMAB/Cake_Git/issues{/number}","pulls_url":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls{/number}","milestones_url":"https://api.github.com/repos/WCOMAB/Cake_Git/milestones{/number}","notifications_url":"https://api.github.com/repos/WCOMAB/Cake_Git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WCOMAB/Cake_Git/labels{/name}","releases_url":"https://api.github.com/repos/WCOMAB/Cake_Git/releases{/id}","deployments_url":"https://api.github.com/repos/WCOMAB/Cake_Git/deployments","created_at":"2015-12-12T18:31:51Z","updated_at":"2016-05-20T20:14:54Z","pushed_at":"2016-05-26T19:06:23Z","git_url":"git://github.com/WCOMAB/Cake_Git.git","ssh_url":"git@github.com:WCOMAB/Cake_Git.git","clone_url":"https://github.com/WCOMAB/Cake_Git.git","svn_url":"https://github.com/WCOMAB/Cake_Git","homepage":null,"size":39,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4"},"html":{"href":"https://github.com/WCOMAB/Cake_Git/pull/4"},"issue":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/issues/4"},"comments":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/WCOMAB/Cake_Git/statuses/e1a3dbe94775c9715070f5e573f4bb12b636dc0e"}}}}
{"actor":{"display_login":"halex2005"}}