{"action":"created","issue":{"url":"https://api.github.com/repos/pre-commit/pre-commit/issues/450","repository_url":"https://api.github.com/repos/pre-commit/pre-commit","labels_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/450/comments","events_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/450/events","html_url":"https://github.com/pre-commit/pre-commit/issues/450","id":193699253,"number":450,"title":"[Question] How can I configure pre-commit globally for all projects?","user":{"login":"lavish205","id":5459009,"avatar_url":"https://avatars.githubusercontent.com/u/5459009?v=3","gravatar_id":"","url":"https://api.github.com/users/lavish205","html_url":"https://github.com/lavish205","followers_url":"https://api.github.com/users/lavish205/followers","following_url":"https://api.github.com/users/lavish205/following{/other_user}","gists_url":"https://api.github.com/users/lavish205/gists{/gist_id}","starred_url":"https://api.github.com/users/lavish205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavish205/subscriptions","organizations_url":"https://api.github.com/users/lavish205/orgs","repos_url":"https://api.github.com/users/lavish205/repos","events_url":"https://api.github.com/users/lavish205/events{/privacy}","received_events_url":"https://api.github.com/users/lavish205/received_events","type":"User","site_admin":false},"labels":[{"id":321107135,"url":"https://api.github.com/repos/pre-commit/pre-commit/labels/question","name":"question","color":"999999","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-06T07:10:47Z","updated_at":"2016-12-06T15:55:44Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/pre-commit/pre-commit/issues/comments/265187305","html_url":"https://github.com/pre-commit/pre-commit/issues/450#issuecomment-265187305","issue_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/450","id":265187305,"user":{"login":"asottile","id":1810591,"avatar_url":"https://avatars.githubusercontent.com/u/1810591?v=3","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T15:55:44Z","updated_at":"2016-12-06T15:55:44Z","body":"There's a feature added in git 2.9 to have \"global\" hooks: https://git-scm.com/docs/githooks\r\n\r\nBut it doesn't quite fit the design pattern that we have: https://github.com/pre-commit/pre-commit/issues/381\r\n\r\nEach repository should configure the hooks it needs through .pre-commit-config.yaml, you *could* copy the file pre-commit creates into a directory and configure it via `core.hooksPath` as above, but you'll still need to place a file per repository (and then pre-commit will likely know less about your repository).  It might not even work, it hasn't been attempted.\r\n\r\nThe supported path for setting up pre-commit in a repository is: create and check in a `.pre-commit-config.yaml` and run `pre-commit install`"}}
{"actor":{"display_login":"asottile"}}