{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/6962","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/6962/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/6962/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/6962/events","html_url":"https://github.com/facebook/jest/pull/6962","id":359259713,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0Nzk0NzA2","number":6962,"title":"Support dynamically detecting changes when .gitignore is updated","user":{"login":"sat0yu","id":1370842,"node_id":"MDQ6VXNlcjEzNzA4NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1370842?v=4","gravatar_id":"","url":"https://api.github.com/users/sat0yu","html_url":"https://github.com/sat0yu","followers_url":"https://api.github.com/users/sat0yu/followers","following_url":"https://api.github.com/users/sat0yu/following{/other_user}","gists_url":"https://api.github.com/users/sat0yu/gists{/gist_id}","starred_url":"https://api.github.com/users/sat0yu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sat0yu/subscriptions","organizations_url":"https://api.github.com/users/sat0yu/orgs","repos_url":"https://api.github.com/users/sat0yu/repos","events_url":"https://api.github.com/users/sat0yu/events{/privacy}","received_events_url":"https://api.github.com/users/sat0yu/received_events","type":"User","site_admin":false},"labels":[{"id":847426897,"node_id":"MDU6TGFiZWw4NDc0MjY4OTc=","url":"https://api.github.com/repos/facebook/jest/labels/cla%20signed","name":"cla signed","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-09-11T23:25:22Z","updated_at":"2018-12-19T08:45:04Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/6962","html_url":"https://github.com/facebook/jest/pull/6962","diff_url":"https://github.com/facebook/jest/pull/6962.diff","patch_url":"https://github.com/facebook/jest/pull/6962.patch"},"body":"<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->\r\n\r\n<!-- Please remember to update CHANGELOG.md in the root of the project if you have not done so. -->\r\n\r\n## Summary\r\n\r\n- jest (watchman) could not detect any changes in hidden files (e.g. `.gitignore` )\r\nhttps://github.com/facebook/jest/issues/5730\r\n\r\n- this PR enables jest to do so for specified hidden files\r\n\r\n## Test plan\r\n\r\nfollowed this scenario https://github.com/facebook/jest/issues/5730#issuecomment-370714604\r\n> Sure, here's an example: https://github.com/nevir/jest-sourcemap-gitignore\r\n> \r\n> Steps to repro:\r\n> \r\n> 1. Run `tsc --watch` (and keep it running)\r\n> 2. Run `jest --watch`\r\n> 3. Edit `foo.test.ts`, and observe that jest notices the file change, but doesn't run any tests\r\n> 4. Remove `*.js` from `.gitignore`\r\n> 5. Edit `foo.test.ts` again, and observe that jest runs the test\r\n> \r\n> (I don't think this is a bug; pretty sure it's a feature request)\r\n\r\n![jest](https://user-images.githubusercontent.com/1370842/45393212-dec1e000-b665-11e8-988f-b8e7e1fea459.gif)"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/448514633","html_url":"https://github.com/facebook/jest/pull/6962#issuecomment-448514633","issue_url":"https://api.github.com/repos/facebook/jest/issues/6962","id":448514633,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODUxNDYzMw==","user":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T08:45:04Z","updated_at":"2018-12-19T08:45:04Z","author_association":"COLLABORATOR","body":"Would love to see a test, but the code lgtm :)"}}
{"actor":{"display_login":"SimenB"}}