{"action":"created","comment":{"url":"https://api.github.com/repos/okonet/lint-staged/pulls/comments/172812134","pull_request_review_id":100593934,"id":172812134,"diff_hunk":"@@ -308,3 +308,21 @@ The following is equivalent:\n \n   See more on [this blog post](https://medium.com/@tomchentw/imagemin-lint-staged-in-place-minify-the-images-before-adding-to-the-git-repo-5acda0b4c57e) for benefits of this approach.\n </details>\n+\n+### :warning: Important note for users of JetBrains IDEs *(WebStorm, PyCharm, IntelliJ IDEA, RubyMine, etc.)*\n+\n+The JetBrains suite of IDEs [currently has a bug](https://youtrack.jetbrains.com/issue/IDEA-135454) that results in the IDE showing inconsistent changed state for those files changed by any of your `precommit` hooks. A `git diff` will show the results of your `precommit` script, even though using the IDE to compare your local file to the same branch shows that they are identical. This is due to [the IDE's use of the `--only` flag](https://youtrack.jetbrains.com/issue/IDEA-135454#comment=27-2352586) when committing in the UI. \n+\n+From [Git's documentation on `--only`](https://git-scm.com/docs/git-commit#git-commit---only):","path":"README.md","position":9,"original_position":9,"commit_id":"aa5281b103a978538f0192cc9f8c80b137a8a421","original_commit_id":"aa5281b103a978538f0192cc9f8c80b137a8a421","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars3.githubusercontent.com/u/11071?v=4","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"body":"The whole explanation is not needed.","created_at":"2018-03-07T11:22:50Z","updated_at":"2018-03-07T11:24:03Z","html_url":"https://github.com/okonet/lint-staged/pull/408#discussion_r172812134","pull_request_url":"https://api.github.com/repos/okonet/lint-staged/pulls/408","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/comments/172812134"},"html":{"href":"https://github.com/okonet/lint-staged/pull/408#discussion_r172812134"},"pull_request":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/408"}}},"pull_request":{"url":"https://api.github.com/repos/okonet/lint-staged/pulls/408","id":172336035,"html_url":"https://github.com/okonet/lint-staged/pull/408","diff_url":"https://github.com/okonet/lint-staged/pull/408.diff","patch_url":"https://github.com/okonet/lint-staged/pull/408.patch","issue_url":"https://api.github.com/repos/okonet/lint-staged/issues/408","number":408,"state":"open","locked":false,"title":"Add JetBrains IDE instructions for bugfix","user":{"login":"taylorham","id":7042219,"avatar_url":"https://avatars0.githubusercontent.com/u/7042219?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorham","html_url":"https://github.com/taylorham","followers_url":"https://api.github.com/users/taylorham/followers","following_url":"https://api.github.com/users/taylorham/following{/other_user}","gists_url":"https://api.github.com/users/taylorham/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorham/subscriptions","organizations_url":"https://api.github.com/users/taylorham/orgs","repos_url":"https://api.github.com/users/taylorham/repos","events_url":"https://api.github.com/users/taylorham/events{/privacy}","received_events_url":"https://api.github.com/users/taylorham/received_events","type":"User","site_admin":false},"body":"Closes #151 .\r\n\r\n@okonet Let me know if this should be in a different area of the Readme or if you have any other changes you'd like to see.\r\n\r\nAnd thanks for this project. I'm proud to contribute, however small it may be!","created_at":"2018-03-01T19:51:07Z","updated_at":"2018-03-07T11:24:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d962e60b1129ce499efe9d92f8818120b17c5897","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/okonet/lint-staged/pulls/408/commits","review_comments_url":"https://api.github.com/repos/okonet/lint-staged/pulls/408/comments","review_comment_url":"https://api.github.com/repos/okonet/lint-staged/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okonet/lint-staged/issues/408/comments","statuses_url":"https://api.github.com/repos/okonet/lint-staged/statuses/aa5281b103a978538f0192cc9f8c80b137a8a421","head":{"label":"taylorham:add-jetbrains-instructions","ref":"add-jetbrains-instructions","sha":"aa5281b103a978538f0192cc9f8c80b137a8a421","user":{"login":"taylorham","id":7042219,"avatar_url":"https://avatars0.githubusercontent.com/u/7042219?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorham","html_url":"https://github.com/taylorham","followers_url":"https://api.github.com/users/taylorham/followers","following_url":"https://api.github.com/users/taylorham/following{/other_user}","gists_url":"https://api.github.com/users/taylorham/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorham/subscriptions","organizations_url":"https://api.github.com/users/taylorham/orgs","repos_url":"https://api.github.com/users/taylorham/repos","events_url":"https://api.github.com/users/taylorham/events{/privacy}","received_events_url":"https://api.github.com/users/taylorham/received_events","type":"User","site_admin":false},"repo":{"id":123192620,"name":"lint-staged","full_name":"taylorham/lint-staged","owner":{"login":"taylorham","id":7042219,"avatar_url":"https://avatars0.githubusercontent.com/u/7042219?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorham","html_url":"https://github.com/taylorham","followers_url":"https://api.github.com/users/taylorham/followers","following_url":"https://api.github.com/users/taylorham/following{/other_user}","gists_url":"https://api.github.com/users/taylorham/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorham/subscriptions","organizations_url":"https://api.github.com/users/taylorham/orgs","repos_url":"https://api.github.com/users/taylorham/repos","events_url":"https://api.github.com/users/taylorham/events{/privacy}","received_events_url":"https://api.github.com/users/taylorham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/taylorham/lint-staged","description":"🚫💩 — Run linters on git staged files","fork":true,"url":"https://api.github.com/repos/taylorham/lint-staged","forks_url":"https://api.github.com/repos/taylorham/lint-staged/forks","keys_url":"https://api.github.com/repos/taylorham/lint-staged/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taylorham/lint-staged/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taylorham/lint-staged/teams","hooks_url":"https://api.github.com/repos/taylorham/lint-staged/hooks","issue_events_url":"https://api.github.com/repos/taylorham/lint-staged/issues/events{/number}","events_url":"https://api.github.com/repos/taylorham/lint-staged/events","assignees_url":"https://api.github.com/repos/taylorham/lint-staged/assignees{/user}","branches_url":"https://api.github.com/repos/taylorham/lint-staged/branches{/branch}","tags_url":"https://api.github.com/repos/taylorham/lint-staged/tags","blobs_url":"https://api.github.com/repos/taylorham/lint-staged/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taylorham/lint-staged/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taylorham/lint-staged/git/refs{/sha}","trees_url":"https://api.github.com/repos/taylorham/lint-staged/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taylorham/lint-staged/statuses/{sha}","languages_url":"https://api.github.com/repos/taylorham/lint-staged/languages","stargazers_url":"https://api.github.com/repos/taylorham/lint-staged/stargazers","contributors_url":"https://api.github.com/repos/taylorham/lint-staged/contributors","subscribers_url":"https://api.github.com/repos/taylorham/lint-staged/subscribers","subscription_url":"https://api.github.com/repos/taylorham/lint-staged/subscription","commits_url":"https://api.github.com/repos/taylorham/lint-staged/commits{/sha}","git_commits_url":"https://api.github.com/repos/taylorham/lint-staged/git/commits{/sha}","comments_url":"https://api.github.com/repos/taylorham/lint-staged/comments{/number}","issue_comment_url":"https://api.github.com/repos/taylorham/lint-staged/issues/comments{/number}","contents_url":"https://api.github.com/repos/taylorham/lint-staged/contents/{+path}","compare_url":"https://api.github.com/repos/taylorham/lint-staged/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taylorham/lint-staged/merges","archive_url":"https://api.github.com/repos/taylorham/lint-staged/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taylorham/lint-staged/downloads","issues_url":"https://api.github.com/repos/taylorham/lint-staged/issues{/number}","pulls_url":"https://api.github.com/repos/taylorham/lint-staged/pulls{/number}","milestones_url":"https://api.github.com/repos/taylorham/lint-staged/milestones{/number}","notifications_url":"https://api.github.com/repos/taylorham/lint-staged/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taylorham/lint-staged/labels{/name}","releases_url":"https://api.github.com/repos/taylorham/lint-staged/releases{/id}","deployments_url":"https://api.github.com/repos/taylorham/lint-staged/deployments","created_at":"2018-02-27T21:46:27Z","updated_at":"2018-02-27T21:46:29Z","pushed_at":"2018-03-01T19:46:48Z","git_url":"git://github.com/taylorham/lint-staged.git","ssh_url":"git@github.com:taylorham/lint-staged.git","clone_url":"https://github.com/taylorham/lint-staged.git","svn_url":"https://github.com/taylorham/lint-staged","homepage":"","size":2297,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"okonet:master","ref":"master","sha":"ee024f872d0990756259da8e65f85f67c983ab37","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars3.githubusercontent.com/u/11071?v=4","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"repo":{"id":49704723,"name":"lint-staged","full_name":"okonet/lint-staged","owner":{"login":"okonet","id":11071,"avatar_url":"https://avatars3.githubusercontent.com/u/11071?v=4","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okonet/lint-staged","description":"🚫💩 — Run linters on git staged files","fork":false,"url":"https://api.github.com/repos/okonet/lint-staged","forks_url":"https://api.github.com/repos/okonet/lint-staged/forks","keys_url":"https://api.github.com/repos/okonet/lint-staged/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okonet/lint-staged/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okonet/lint-staged/teams","hooks_url":"https://api.github.com/repos/okonet/lint-staged/hooks","issue_events_url":"https://api.github.com/repos/okonet/lint-staged/issues/events{/number}","events_url":"https://api.github.com/repos/okonet/lint-staged/events","assignees_url":"https://api.github.com/repos/okonet/lint-staged/assignees{/user}","branches_url":"https://api.github.com/repos/okonet/lint-staged/branches{/branch}","tags_url":"https://api.github.com/repos/okonet/lint-staged/tags","blobs_url":"https://api.github.com/repos/okonet/lint-staged/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okonet/lint-staged/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okonet/lint-staged/git/refs{/sha}","trees_url":"https://api.github.com/repos/okonet/lint-staged/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okonet/lint-staged/statuses/{sha}","languages_url":"https://api.github.com/repos/okonet/lint-staged/languages","stargazers_url":"https://api.github.com/repos/okonet/lint-staged/stargazers","contributors_url":"https://api.github.com/repos/okonet/lint-staged/contributors","subscribers_url":"https://api.github.com/repos/okonet/lint-staged/subscribers","subscription_url":"https://api.github.com/repos/okonet/lint-staged/subscription","commits_url":"https://api.github.com/repos/okonet/lint-staged/commits{/sha}","git_commits_url":"https://api.github.com/repos/okonet/lint-staged/git/commits{/sha}","comments_url":"https://api.github.com/repos/okonet/lint-staged/comments{/number}","issue_comment_url":"https://api.github.com/repos/okonet/lint-staged/issues/comments{/number}","contents_url":"https://api.github.com/repos/okonet/lint-staged/contents/{+path}","compare_url":"https://api.github.com/repos/okonet/lint-staged/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okonet/lint-staged/merges","archive_url":"https://api.github.com/repos/okonet/lint-staged/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okonet/lint-staged/downloads","issues_url":"https://api.github.com/repos/okonet/lint-staged/issues{/number}","pulls_url":"https://api.github.com/repos/okonet/lint-staged/pulls{/number}","milestones_url":"https://api.github.com/repos/okonet/lint-staged/milestones{/number}","notifications_url":"https://api.github.com/repos/okonet/lint-staged/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okonet/lint-staged/labels{/name}","releases_url":"https://api.github.com/repos/okonet/lint-staged/releases{/id}","deployments_url":"https://api.github.com/repos/okonet/lint-staged/deployments","created_at":"2016-01-15T07:51:21Z","updated_at":"2018-03-07T10:02:01Z","pushed_at":"2018-03-01T19:51:07Z","git_url":"git://github.com/okonet/lint-staged.git","ssh_url":"git@github.com:okonet/lint-staged.git","clone_url":"https://github.com/okonet/lint-staged.git","svn_url":"https://github.com/okonet/lint-staged","homepage":"","size":2286,"stargazers_count":2202,"watchers_count":2202,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":92,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":92,"open_issues":31,"watchers":2202,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/408"},"html":{"href":"https://github.com/okonet/lint-staged/pull/408"},"issue":{"href":"https://api.github.com/repos/okonet/lint-staged/issues/408"},"comments":{"href":"https://api.github.com/repos/okonet/lint-staged/issues/408/comments"},"review_comments":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/408/comments"},"review_comment":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/408/commits"},"statuses":{"href":"https://api.github.com/repos/okonet/lint-staged/statuses/aa5281b103a978538f0192cc9f8c80b137a8a421"}},"author_association":"NONE"}}
{"actor":{"display_login":"okonet"}}