{"action":"created","comment":{"url":"https://api.github.com/repos/phpro/grumphp/pulls/comments/62466872","id":62466872,"diff_hunk":"@@ -79,7 +79,7 @@ public function execute(InputInterface $input, OutputInterface $output)\n         $this->input = $input;\n         $gitHooksPath = $this->paths()->getGitHooksDir();\n         $resourceHooksPath = $this->paths()->getGitHookTemplatesDir();\n-        $customHooksPath = $this->grumPHP->getHooksDir();\n+        $customHooksPath = rtrim($this->grumPHP->getHooksDir(), '/') . '/';","path":"src/GrumPHP/Console/Command/Git/InitCommand.php","position":null,"original_position":5,"commit_id":"a13f4c72b665a59b8cf51d16d284662e7919999e","original_commit_id":"a13f4c72b665a59b8cf51d16d284662e7919999e","user":{"login":"veewee","id":1618158,"avatar_url":"https://avatars.githubusercontent.com/u/1618158?v=3","gravatar_id":"","url":"https://api.github.com/users/veewee","html_url":"https://github.com/veewee","followers_url":"https://api.github.com/users/veewee/followers","following_url":"https://api.github.com/users/veewee/following{/other_user}","gists_url":"https://api.github.com/users/veewee/gists{/gist_id}","starred_url":"https://api.github.com/users/veewee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veewee/subscriptions","organizations_url":"https://api.github.com/users/veewee/orgs","repos_url":"https://api.github.com/users/veewee/repos","events_url":"https://api.github.com/users/veewee/events{/privacy}","received_events_url":"https://api.github.com/users/veewee/received_events","type":"User","site_admin":false},"body":"You probably need DIRECTORY_SEPARATOR for Windows compatibility.","created_at":"2016-05-09T08:50:38Z","updated_at":"2016-05-09T08:50:38Z","html_url":"https://github.com/phpro/grumphp/pull/143#discussion_r62466872","pull_request_url":"https://api.github.com/repos/phpro/grumphp/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/comments/62466872"},"html":{"href":"https://github.com/phpro/grumphp/pull/143#discussion_r62466872"},"pull_request":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/phpro/grumphp/pulls/143","id":69258488,"html_url":"https://github.com/phpro/grumphp/pull/143","diff_url":"https://github.com/phpro/grumphp/pull/143.diff","patch_url":"https://github.com/phpro/grumphp/pull/143.patch","issue_url":"https://api.github.com/repos/phpro/grumphp/issues/143","number":143,"state":"open","locked":false,"title":"Add hooks_dir parameter for custom git hooks","user":{"login":"WyriHaximus","id":147145,"avatar_url":"https://avatars.githubusercontent.com/u/147145?v=3","gravatar_id":"","url":"https://api.github.com/users/WyriHaximus","html_url":"https://github.com/WyriHaximus","followers_url":"https://api.github.com/users/WyriHaximus/followers","following_url":"https://api.github.com/users/WyriHaximus/following{/other_user}","gists_url":"https://api.github.com/users/WyriHaximus/gists{/gist_id}","starred_url":"https://api.github.com/users/WyriHaximus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WyriHaximus/subscriptions","organizations_url":"https://api.github.com/users/WyriHaximus/orgs","repos_url":"https://api.github.com/users/WyriHaximus/repos","events_url":"https://api.github.com/users/WyriHaximus/events{/privacy}","received_events_url":"https://api.github.com/users/WyriHaximus/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch        | master\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Documented?   | yes\r\n| Fixed tickets | none\r\n\r\nThis pull request adds the `hooks_dir` parameter which allows users to overwrite the default git hooks as explaining in this upcoming blog post: https://github.com/WyriHaximus/blog.wyrihaximus.net/pull/6\r\n","created_at":"2016-05-08T02:14:39Z","updated_at":"2016-05-09T08:50:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddd8155705f4dea882148f2d6e007ff8e4a5a2b6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phpro/grumphp/pulls/143/commits","review_comments_url":"https://api.github.com/repos/phpro/grumphp/pulls/143/comments","review_comment_url":"https://api.github.com/repos/phpro/grumphp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpro/grumphp/issues/143/comments","statuses_url":"https://api.github.com/repos/phpro/grumphp/statuses/a13f4c72b665a59b8cf51d16d284662e7919999e","head":{"label":"WyriHaximus:feature-hooks_dir","ref":"feature-hooks_dir","sha":"a13f4c72b665a59b8cf51d16d284662e7919999e","user":{"login":"WyriHaximus","id":147145,"avatar_url":"https://avatars.githubusercontent.com/u/147145?v=3","gravatar_id":"","url":"https://api.github.com/users/WyriHaximus","html_url":"https://github.com/WyriHaximus","followers_url":"https://api.github.com/users/WyriHaximus/followers","following_url":"https://api.github.com/users/WyriHaximus/following{/other_user}","gists_url":"https://api.github.com/users/WyriHaximus/gists{/gist_id}","starred_url":"https://api.github.com/users/WyriHaximus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WyriHaximus/subscriptions","organizations_url":"https://api.github.com/users/WyriHaximus/orgs","repos_url":"https://api.github.com/users/WyriHaximus/repos","events_url":"https://api.github.com/users/WyriHaximus/events{/privacy}","received_events_url":"https://api.github.com/users/WyriHaximus/received_events","type":"User","site_admin":false},"repo":{"id":58240323,"name":"grumphp","full_name":"WyriHaximus/grumphp","owner":{"login":"WyriHaximus","id":147145,"avatar_url":"https://avatars.githubusercontent.com/u/147145?v=3","gravatar_id":"","url":"https://api.github.com/users/WyriHaximus","html_url":"https://github.com/WyriHaximus","followers_url":"https://api.github.com/users/WyriHaximus/followers","following_url":"https://api.github.com/users/WyriHaximus/following{/other_user}","gists_url":"https://api.github.com/users/WyriHaximus/gists{/gist_id}","starred_url":"https://api.github.com/users/WyriHaximus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WyriHaximus/subscriptions","organizations_url":"https://api.github.com/users/WyriHaximus/orgs","repos_url":"https://api.github.com/users/WyriHaximus/repos","events_url":"https://api.github.com/users/WyriHaximus/events{/privacy}","received_events_url":"https://api.github.com/users/WyriHaximus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WyriHaximus/grumphp","description":"A PHP code-quality tool","fork":true,"url":"https://api.github.com/repos/WyriHaximus/grumphp","forks_url":"https://api.github.com/repos/WyriHaximus/grumphp/forks","keys_url":"https://api.github.com/repos/WyriHaximus/grumphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WyriHaximus/grumphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WyriHaximus/grumphp/teams","hooks_url":"https://api.github.com/repos/WyriHaximus/grumphp/hooks","issue_events_url":"https://api.github.com/repos/WyriHaximus/grumphp/issues/events{/number}","events_url":"https://api.github.com/repos/WyriHaximus/grumphp/events","assignees_url":"https://api.github.com/repos/WyriHaximus/grumphp/assignees{/user}","branches_url":"https://api.github.com/repos/WyriHaximus/grumphp/branches{/branch}","tags_url":"https://api.github.com/repos/WyriHaximus/grumphp/tags","blobs_url":"https://api.github.com/repos/WyriHaximus/grumphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WyriHaximus/grumphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WyriHaximus/grumphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/WyriHaximus/grumphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WyriHaximus/grumphp/statuses/{sha}","languages_url":"https://api.github.com/repos/WyriHaximus/grumphp/languages","stargazers_url":"https://api.github.com/repos/WyriHaximus/grumphp/stargazers","contributors_url":"https://api.github.com/repos/WyriHaximus/grumphp/contributors","subscribers_url":"https://api.github.com/repos/WyriHaximus/grumphp/subscribers","subscription_url":"https://api.github.com/repos/WyriHaximus/grumphp/subscription","commits_url":"https://api.github.com/repos/WyriHaximus/grumphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/WyriHaximus/grumphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/WyriHaximus/grumphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/WyriHaximus/grumphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/WyriHaximus/grumphp/contents/{+path}","compare_url":"https://api.github.com/repos/WyriHaximus/grumphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WyriHaximus/grumphp/merges","archive_url":"https://api.github.com/repos/WyriHaximus/grumphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WyriHaximus/grumphp/downloads","issues_url":"https://api.github.com/repos/WyriHaximus/grumphp/issues{/number}","pulls_url":"https://api.github.com/repos/WyriHaximus/grumphp/pulls{/number}","milestones_url":"https://api.github.com/repos/WyriHaximus/grumphp/milestones{/number}","notifications_url":"https://api.github.com/repos/WyriHaximus/grumphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WyriHaximus/grumphp/labels{/name}","releases_url":"https://api.github.com/repos/WyriHaximus/grumphp/releases{/id}","deployments_url":"https://api.github.com/repos/WyriHaximus/grumphp/deployments","created_at":"2016-05-06T23:34:08Z","updated_at":"2016-05-06T23:34:10Z","pushed_at":"2016-05-09T08:39:20Z","git_url":"git://github.com/WyriHaximus/grumphp.git","ssh_url":"git@github.com:WyriHaximus/grumphp.git","clone_url":"https://github.com/WyriHaximus/grumphp.git","svn_url":"https://github.com/WyriHaximus/grumphp","homepage":null,"size":813,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"phpro:master","ref":"master","sha":"bd8413ec6a9baf219f5625ff9b9c0dd5986b4136","user":{"login":"phpro","id":6286150,"avatar_url":"https://avatars.githubusercontent.com/u/6286150?v=3","gravatar_id":"","url":"https://api.github.com/users/phpro","html_url":"https://github.com/phpro","followers_url":"https://api.github.com/users/phpro/followers","following_url":"https://api.github.com/users/phpro/following{/other_user}","gists_url":"https://api.github.com/users/phpro/gists{/gist_id}","starred_url":"https://api.github.com/users/phpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpro/subscriptions","organizations_url":"https://api.github.com/users/phpro/orgs","repos_url":"https://api.github.com/users/phpro/repos","events_url":"https://api.github.com/users/phpro/events{/privacy}","received_events_url":"https://api.github.com/users/phpro/received_events","type":"Organization","site_admin":false},"repo":{"id":32482750,"name":"grumphp","full_name":"phpro/grumphp","owner":{"login":"phpro","id":6286150,"avatar_url":"https://avatars.githubusercontent.com/u/6286150?v=3","gravatar_id":"","url":"https://api.github.com/users/phpro","html_url":"https://github.com/phpro","followers_url":"https://api.github.com/users/phpro/followers","following_url":"https://api.github.com/users/phpro/following{/other_user}","gists_url":"https://api.github.com/users/phpro/gists{/gist_id}","starred_url":"https://api.github.com/users/phpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpro/subscriptions","organizations_url":"https://api.github.com/users/phpro/orgs","repos_url":"https://api.github.com/users/phpro/repos","events_url":"https://api.github.com/users/phpro/events{/privacy}","received_events_url":"https://api.github.com/users/phpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpro/grumphp","description":"A PHP code-quality tool","fork":false,"url":"https://api.github.com/repos/phpro/grumphp","forks_url":"https://api.github.com/repos/phpro/grumphp/forks","keys_url":"https://api.github.com/repos/phpro/grumphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpro/grumphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpro/grumphp/teams","hooks_url":"https://api.github.com/repos/phpro/grumphp/hooks","issue_events_url":"https://api.github.com/repos/phpro/grumphp/issues/events{/number}","events_url":"https://api.github.com/repos/phpro/grumphp/events","assignees_url":"https://api.github.com/repos/phpro/grumphp/assignees{/user}","branches_url":"https://api.github.com/repos/phpro/grumphp/branches{/branch}","tags_url":"https://api.github.com/repos/phpro/grumphp/tags","blobs_url":"https://api.github.com/repos/phpro/grumphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpro/grumphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpro/grumphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpro/grumphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpro/grumphp/statuses/{sha}","languages_url":"https://api.github.com/repos/phpro/grumphp/languages","stargazers_url":"https://api.github.com/repos/phpro/grumphp/stargazers","contributors_url":"https://api.github.com/repos/phpro/grumphp/contributors","subscribers_url":"https://api.github.com/repos/phpro/grumphp/subscribers","subscription_url":"https://api.github.com/repos/phpro/grumphp/subscription","commits_url":"https://api.github.com/repos/phpro/grumphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpro/grumphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpro/grumphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpro/grumphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpro/grumphp/contents/{+path}","compare_url":"https://api.github.com/repos/phpro/grumphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpro/grumphp/merges","archive_url":"https://api.github.com/repos/phpro/grumphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpro/grumphp/downloads","issues_url":"https://api.github.com/repos/phpro/grumphp/issues{/number}","pulls_url":"https://api.github.com/repos/phpro/grumphp/pulls{/number}","milestones_url":"https://api.github.com/repos/phpro/grumphp/milestones{/number}","notifications_url":"https://api.github.com/repos/phpro/grumphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpro/grumphp/labels{/name}","releases_url":"https://api.github.com/repos/phpro/grumphp/releases{/id}","deployments_url":"https://api.github.com/repos/phpro/grumphp/deployments","created_at":"2015-03-18T20:34:36Z","updated_at":"2016-05-09T08:15:48Z","pushed_at":"2016-05-09T08:39:24Z","git_url":"git://github.com/phpro/grumphp.git","ssh_url":"git@github.com:phpro/grumphp.git","clone_url":"https://github.com/phpro/grumphp.git","svn_url":"https://github.com/phpro/grumphp","homepage":null,"size":875,"stargazers_count":973,"watchers_count":973,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":13,"forks":59,"open_issues":13,"watchers":973,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/143"},"html":{"href":"https://github.com/phpro/grumphp/pull/143"},"issue":{"href":"https://api.github.com/repos/phpro/grumphp/issues/143"},"comments":{"href":"https://api.github.com/repos/phpro/grumphp/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/phpro/grumphp/statuses/a13f4c72b665a59b8cf51d16d284662e7919999e"}}}}