{"action":"opened","issue":{"url":"https://api.github.com/repos/rhysd/cargo-husky/issues/3","repository_url":"https://api.github.com/repos/rhysd/cargo-husky","labels_url":"https://api.github.com/repos/rhysd/cargo-husky/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rhysd/cargo-husky/issues/3/comments","events_url":"https://api.github.com/repos/rhysd/cargo-husky/issues/3/events","html_url":"https://github.com/rhysd/cargo-husky/issues/3","id":386269060,"node_id":"MDU6SXNzdWUzODYyNjkwNjA=","number":3,"title":"pre-commit hook runs on local files, not on commited ones","user":{"login":"axelfaure","id":41439694,"node_id":"MDQ6VXNlcjQxNDM5Njk0","avatar_url":"https://avatars1.githubusercontent.com/u/41439694?v=4","gravatar_id":"","url":"https://api.github.com/users/axelfaure","html_url":"https://github.com/axelfaure","followers_url":"https://api.github.com/users/axelfaure/followers","following_url":"https://api.github.com/users/axelfaure/following{/other_user}","gists_url":"https://api.github.com/users/axelfaure/gists{/gist_id}","starred_url":"https://api.github.com/users/axelfaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelfaure/subscriptions","organizations_url":"https://api.github.com/users/axelfaure/orgs","repos_url":"https://api.github.com/users/axelfaure/repos","events_url":"https://api.github.com/users/axelfaure/events{/privacy}","received_events_url":"https://api.github.com/users/axelfaure/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T16:55:04Z","updated_at":"2018-11-30T16:55:04Z","closed_at":null,"author_association":"NONE","body":"The pre-commit hook generated by this crate run on whatever files are on disk at the moment including on content that has not been commited and is not included in this commit. It creates false-positives and false-negatives.\r\n\r\nEverything that is not in the stagging area should probably be stashed before running the hooks.\r\n\r\nThis is probably best described in this article https://dzone.com/articles/why-your-need-git-pre-commit \r\n\r\nThank you for sharing this work by the way, even with this small issue, it is still a great tool to have."}}
{"actor":{"display_login":"axelfaure"}}