{"action":"created","issue":{"url":"https://api.github.com/repos/gtramontina/ghooks/issues/37","labels_url":"https://api.github.com/repos/gtramontina/ghooks/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/gtramontina/ghooks/issues/37/comments","events_url":"https://api.github.com/repos/gtramontina/ghooks/issues/37/events","html_url":"https://github.com/gtramontina/ghooks/pull/37","id":125159436,"number":37,"title":"Use findup to traverse tree for .git, package.json","user":{"login":"keithamus","id":118266,"avatar_url":"https://avatars.githubusercontent.com/u/118266?v=3","gravatar_id":"","url":"https://api.github.com/users/keithamus","html_url":"https://github.com/keithamus","followers_url":"https://api.github.com/users/keithamus/followers","following_url":"https://api.github.com/users/keithamus/following{/other_user}","gists_url":"https://api.github.com/users/keithamus/gists{/gist_id}","starred_url":"https://api.github.com/users/keithamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithamus/subscriptions","organizations_url":"https://api.github.com/users/keithamus/orgs","repos_url":"https://api.github.com/users/keithamus/repos","events_url":"https://api.github.com/users/keithamus/events{/privacy}","received_events_url":"https://api.github.com/users/keithamus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-06T11:24:22Z","updated_at":"2016-01-06T14:55:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gtramontina/ghooks/pulls/37","html_url":"https://github.com/gtramontina/ghooks/pull/37","diff_url":"https://github.com/gtramontina/ghooks/pull/37.diff","patch_url":"https://github.com/gtramontina/ghooks/pull/37.patch"},"body":"Fixes #35, #28, #3. Closes #36\r\n\r\nThis uses the [findup] package to traverse up the directory tree of\r\nthe current working directory, to find `package.json`, or `.git`.\r\nIt does so to allow for edge-case situations, such as described in\r\nand #35 (executing hooks from a different working dir, for example\r\nwith `git --work-tree`).\r\n\r\nAs part of this commit, the JSHint maxcomplexity/maxstatements\r\nnumbers have been bumped by 1.\r\n\r\n[findup]: https://www.npmjs.com/package/findup\r\n\r\n---\r\n\r\nNote: I think #36 (/cc @gtramontina) should be closed as the functionality in this PR overlaps that of #36."},"comment":{"url":"https://api.github.com/repos/gtramontina/ghooks/issues/comments/169344512","html_url":"https://github.com/gtramontina/ghooks/pull/37#issuecomment-169344512","issue_url":"https://api.github.com/repos/gtramontina/ghooks/issues/37","id":169344512,"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},"created_at":"2016-01-06T14:55:19Z","updated_at":"2016-01-06T14:55:19Z","body":"Oh, also https://github.com/sindresorhus/pkg-conf"}}