{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/4985","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/4985/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/4985/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/4985/events","html_url":"https://github.com/prettier/prettier/issues/4985","id":350896117,"node_id":"MDU6SXNzdWUzNTA4OTYxMTc=","number":4985,"title":"Pre-commit hook always fails","user":{"login":"dongyuzheng","id":6127032,"node_id":"MDQ6VXNlcjYxMjcwMzI=","avatar_url":"https://avatars3.githubusercontent.com/u/6127032?v=4","gravatar_id":"","url":"https://api.github.com/users/dongyuzheng","html_url":"https://github.com/dongyuzheng","followers_url":"https://api.github.com/users/dongyuzheng/followers","following_url":"https://api.github.com/users/dongyuzheng/following{/other_user}","gists_url":"https://api.github.com/users/dongyuzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/dongyuzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongyuzheng/subscriptions","organizations_url":"https://api.github.com/users/dongyuzheng/orgs","repos_url":"https://api.github.com/users/dongyuzheng/repos","events_url":"https://api.github.com/users/dongyuzheng/events{/privacy}","received_events_url":"https://api.github.com/users/dongyuzheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-15T17:29:10Z","updated_at":"2018-08-15T17:42:12Z","closed_at":"2018-08-15T17:41:12Z","author_association":"NONE","body":"**Environments:**\r\n- Prettier Version: 1.14.2\r\n- Running Prettier via: [pre-commit](https://pre-commit.com/)\r\n- Operating System: Ubuntu 18.04.1 LTS\r\n\r\n**Steps to reproduce:**\r\n1. `.pre-commit-config.yaml` with contents\r\n\r\n```yaml\r\n  -\r\n    repo: 'git://github.com/prettier/prettier'\r\n    rev: 1.14.2\r\n    hooks:\r\n      -\r\n        id: prettier\r\n        files: '\\.(css|less|scss|ts|tsx|graphql|gql|json|js|jsx|md)$'\r\n```\r\n\r\n2. Run `pre-commit run --all-files`\r\n\r\n**Expected behavior:**\r\n\r\n* No hook failure when no files are changed\r\n\r\n**Actual behavior:**\r\n\r\n* Hook failure when no files are changed\r\n\r\nTagging @asottile"},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/413276597","html_url":"https://github.com/prettier/prettier/issues/4985#issuecomment-413276597","issue_url":"https://api.github.com/repos/prettier/prettier/issues/4985","id":413276597,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzI3NjU5Nw==","user":{"login":"asottile","id":1810591,"node_id":"MDQ6VXNlcjE4MTA1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1810591?v=4","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":"2018-08-15T17:42:12Z","updated_at":"2018-08-15T17:42:12Z","author_association":"CONTRIBUTOR","body":"cheers, glad you were able to find the answer!"}}
{"actor":{"display_login":"asottile"}}