{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/28","id":63506793,"html_url":"https://github.com/kentcdodds/validate-commit-msg/pull/28","diff_url":"https://github.com/kentcdodds/validate-commit-msg/pull/28.diff","patch_url":"https://github.com/kentcdodds/validate-commit-msg/pull/28.patch","issue_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues/28","number":28,"state":"open","locked":false,"title":"fix(.git-location) : Handles case where .git is a file instead of dir…","user":{"login":"ryan-kimber","id":1018189,"avatar_url":"https://avatars.githubusercontent.com/u/1018189?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-kimber","html_url":"https://github.com/ryan-kimber","followers_url":"https://api.github.com/users/ryan-kimber/followers","following_url":"https://api.github.com/users/ryan-kimber/following{/other_user}","gists_url":"https://api.github.com/users/ryan-kimber/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-kimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-kimber/subscriptions","organizations_url":"https://api.github.com/users/ryan-kimber/orgs","repos_url":"https://api.github.com/users/ryan-kimber/repos","events_url":"https://api.github.com/users/ryan-kimber/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-kimber/received_events","type":"User","site_admin":false},"body":"When using git submodules, the .git folder is actually a file containing a property that tells us where we should be looking for the files that are usually in the .git folder.\r\n\r\nWe can use the contents of that file to find where the COMMIT_EDITMSG is actually located.","created_at":"2016-03-20T20:44:20Z","updated_at":"2016-03-20T20:44:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/28/commits","review_comments_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/28/comments","review_comment_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues/28/comments","statuses_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/statuses/dd942bc9ca927ffbba79f4acae41d1f29232b89c","head":{"label":"ryan-kimber:master","ref":"master","sha":"dd942bc9ca927ffbba79f4acae41d1f29232b89c","user":{"login":"ryan-kimber","id":1018189,"avatar_url":"https://avatars.githubusercontent.com/u/1018189?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-kimber","html_url":"https://github.com/ryan-kimber","followers_url":"https://api.github.com/users/ryan-kimber/followers","following_url":"https://api.github.com/users/ryan-kimber/following{/other_user}","gists_url":"https://api.github.com/users/ryan-kimber/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-kimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-kimber/subscriptions","organizations_url":"https://api.github.com/users/ryan-kimber/orgs","repos_url":"https://api.github.com/users/ryan-kimber/repos","events_url":"https://api.github.com/users/ryan-kimber/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-kimber/received_events","type":"User","site_admin":false},"repo":{"id":54338910,"name":"validate-commit-msg","full_name":"ryan-kimber/validate-commit-msg","owner":{"login":"ryan-kimber","id":1018189,"avatar_url":"https://avatars.githubusercontent.com/u/1018189?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-kimber","html_url":"https://github.com/ryan-kimber","followers_url":"https://api.github.com/users/ryan-kimber/followers","following_url":"https://api.github.com/users/ryan-kimber/following{/other_user}","gists_url":"https://api.github.com/users/ryan-kimber/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-kimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-kimber/subscriptions","organizations_url":"https://api.github.com/users/ryan-kimber/orgs","repos_url":"https://api.github.com/users/ryan-kimber/repos","events_url":"https://api.github.com/users/ryan-kimber/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-kimber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryan-kimber/validate-commit-msg","description":"githook to validate commit messages are up to standard","fork":true,"url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg","forks_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/forks","keys_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/teams","hooks_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/hooks","issue_events_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/issues/events{/number}","events_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/events","assignees_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/assignees{/user}","branches_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/branches{/branch}","tags_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/tags","blobs_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/statuses/{sha}","languages_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/languages","stargazers_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/stargazers","contributors_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/contributors","subscribers_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/subscribers","subscription_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/subscription","commits_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/contents/{+path}","compare_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/merges","archive_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/downloads","issues_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/issues{/number}","pulls_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/pulls{/number}","milestones_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/milestones{/number}","notifications_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/labels{/name}","releases_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/releases{/id}","deployments_url":"https://api.github.com/repos/ryan-kimber/validate-commit-msg/deployments","created_at":"2016-03-20T20:32:00Z","updated_at":"2016-03-20T20:32:01Z","pushed_at":"2016-03-20T20:38:59Z","git_url":"git://github.com/ryan-kimber/validate-commit-msg.git","ssh_url":"git@github.com:ryan-kimber/validate-commit-msg.git","clone_url":"https://github.com/ryan-kimber/validate-commit-msg.git","svn_url":"https://github.com/ryan-kimber/validate-commit-msg","homepage":"https://github.com/ajoslin/conventional-changelog/blob/v0.5.3/conventions/angular.md","size":27,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"kentcdodds:master","ref":"master","sha":"333f3580b35ff7797ed12528247fa1f970f99508","user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"repo":{"id":41939213,"name":"validate-commit-msg","full_name":"kentcdodds/validate-commit-msg","owner":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kentcdodds/validate-commit-msg","description":"githook to validate commit messages are up to standard","fork":false,"url":"https://api.github.com/repos/kentcdodds/validate-commit-msg","forks_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/forks","keys_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/teams","hooks_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/hooks","issue_events_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues/events{/number}","events_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/events","assignees_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/assignees{/user}","branches_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/branches{/branch}","tags_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/tags","blobs_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/git/refs{/sha}","trees_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/statuses/{sha}","languages_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/languages","stargazers_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/stargazers","contributors_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/contributors","subscribers_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/subscribers","subscription_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/subscription","commits_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/commits{/sha}","git_commits_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/git/commits{/sha}","comments_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/comments{/number}","issue_comment_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues/comments{/number}","contents_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/contents/{+path}","compare_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/merges","archive_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/downloads","issues_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues{/number}","pulls_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls{/number}","milestones_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/milestones{/number}","notifications_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/labels{/name}","releases_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/releases{/id}","deployments_url":"https://api.github.com/repos/kentcdodds/validate-commit-msg/deployments","created_at":"2015-09-04T21:47:53Z","updated_at":"2016-03-19T08:47:53Z","pushed_at":"2016-03-13T14:41:55Z","git_url":"git://github.com/kentcdodds/validate-commit-msg.git","ssh_url":"git@github.com:kentcdodds/validate-commit-msg.git","clone_url":"https://github.com/kentcdodds/validate-commit-msg.git","svn_url":"https://github.com/kentcdodds/validate-commit-msg","homepage":"https://github.com/ajoslin/conventional-changelog/blob/v0.5.3/conventions/angular.md","size":25,"stargazers_count":59,"watchers_count":59,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":4,"forks":21,"open_issues":4,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/28"},"html":{"href":"https://github.com/kentcdodds/validate-commit-msg/pull/28"},"issue":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues/28"},"comments":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/kentcdodds/validate-commit-msg/statuses/dd942bc9ca927ffbba79f4acae41d1f29232b89c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":1,"changed_files":1}}