{"action":"created","issue":{"url":"https://api.github.com/repos/phpro/grumphp/issues/461","repository_url":"https://api.github.com/repos/phpro/grumphp","labels_url":"https://api.github.com/repos/phpro/grumphp/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/phpro/grumphp/issues/461/comments","events_url":"https://api.github.com/repos/phpro/grumphp/issues/461/events","html_url":"https://github.com/phpro/grumphp/pull/461","id":294663461,"number":461,"title":"Use correct path to .git/COMMIT_EDITMSG when using non-standard .git dir location","user":{"login":"pascal-hofmann","id":2102878,"avatar_url":"https://avatars3.githubusercontent.com/u/2102878?v=4","gravatar_id":"","url":"https://api.github.com/users/pascal-hofmann","html_url":"https://github.com/pascal-hofmann","followers_url":"https://api.github.com/users/pascal-hofmann/followers","following_url":"https://api.github.com/users/pascal-hofmann/following{/other_user}","gists_url":"https://api.github.com/users/pascal-hofmann/gists{/gist_id}","starred_url":"https://api.github.com/users/pascal-hofmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascal-hofmann/subscriptions","organizations_url":"https://api.github.com/users/pascal-hofmann/orgs","repos_url":"https://api.github.com/users/pascal-hofmann/repos","events_url":"https://api.github.com/users/pascal-hofmann/events{/privacy}","received_events_url":"https://api.github.com/users/pascal-hofmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-06T07:56:40Z","updated_at":"2018-03-14T09:58:47Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/phpro/grumphp/pulls/461","html_url":"https://github.com/phpro/grumphp/pull/461","diff_url":"https://github.com/phpro/grumphp/pull/461.diff","patch_url":"https://github.com/phpro/grumphp/pull/461.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch        | master\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Documented?   | no\r\n| Fixed tickets | -\r\n\r\n<!-- Please add an advanced description on what this PR is doing to GrumPHP. -->\r\nWhen grumphp is used with a `.git` dir in a non-standard location the `commit-msg` hook may look for the `.git/COMMIT_EDITMSG` file in the wrong location.\r\n\r\nThis PR prefixes the path with `git_dir` configured in `grumphp.yml` if it's a relative path, so the correct path is used in all cases.\r\n\r\nNote: The path supplied to the hook by git may be absolute. In this case there is no need to fix it. This happens when grumphp is used inside a git submodule."},"comment":{"url":"https://api.github.com/repos/phpro/grumphp/issues/comments/372965573","html_url":"https://github.com/phpro/grumphp/pull/461#issuecomment-372965573","issue_url":"https://api.github.com/repos/phpro/grumphp/issues/461","id":372965573,"user":{"login":"ddebasilio","id":15635007,"avatar_url":"https://avatars3.githubusercontent.com/u/15635007?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebasilio","html_url":"https://github.com/ddebasilio","followers_url":"https://api.github.com/users/ddebasilio/followers","following_url":"https://api.github.com/users/ddebasilio/following{/other_user}","gists_url":"https://api.github.com/users/ddebasilio/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebasilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebasilio/subscriptions","organizations_url":"https://api.github.com/users/ddebasilio/orgs","repos_url":"https://api.github.com/users/ddebasilio/repos","events_url":"https://api.github.com/users/ddebasilio/events{/privacy}","received_events_url":"https://api.github.com/users/ddebasilio/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T09:58:47Z","updated_at":"2018-03-14T09:58:47Z","author_association":"NONE","body":"This is happening to me too, can this get merged ?"}}
{"actor":{"display_login":"ddebasilio"}}