{"action":"created","comment":{"url":"https://api.github.com/repos/paulmillr/chokidar/pulls/comments/89811219","pull_request_review_id":10344974,"id":89811219,"diff_hunk":"@@ -104,6 +104,11 @@ function FSWatcher(_opts) {\n       opts.usePolling = !!envLower\n     }\n   }\n+  var envInterval = process.env.CHOKIDAR_INTERVAL;\n+  if (envInterval !== undefined) {","path":"index.js","position":5,"original_position":5,"commit_id":"a8b9378286c7eac82863558481af2286c63532eb","original_commit_id":"a8b9378286c7eac82863558481af2286c63532eb","user":{"login":"es128","id":1740641,"avatar_url":"https://avatars.githubusercontent.com/u/1740641?v=3","gravatar_id":"","url":"https://api.github.com/users/es128","html_url":"https://github.com/es128","followers_url":"https://api.github.com/users/es128/followers","following_url":"https://api.github.com/users/es128/following{/other_user}","gists_url":"https://api.github.com/users/es128/gists{/gist_id}","starred_url":"https://api.github.com/users/es128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/es128/subscriptions","organizations_url":"https://api.github.com/users/es128/orgs","repos_url":"https://api.github.com/users/es128/repos","events_url":"https://api.github.com/users/es128/events{/privacy}","received_events_url":"https://api.github.com/users/es128/received_events","type":"User","site_admin":false},"body":"Simply `if (envInterval)` should be fine in this case, since we're not contending with `false` as a valid potential value.","created_at":"2016-11-28T15:58:41Z","updated_at":"2016-11-28T15:58:41Z","html_url":"https://github.com/paulmillr/chokidar/pull/557#discussion_r89811219","pull_request_url":"https://api.github.com/repos/paulmillr/chokidar/pulls/557","_links":{"self":{"href":"https://api.github.com/repos/paulmillr/chokidar/pulls/comments/89811219"},"html":{"href":"https://github.com/paulmillr/chokidar/pull/557#discussion_r89811219"},"pull_request":{"href":"https://api.github.com/repos/paulmillr/chokidar/pulls/557"}}},"pull_request":{"url":"https://api.github.com/repos/paulmillr/chokidar/pulls/557","id":95410566,"html_url":"https://github.com/paulmillr/chokidar/pull/557","diff_url":"https://github.com/paulmillr/chokidar/pull/557.diff","patch_url":"https://github.com/paulmillr/chokidar/pull/557.patch","issue_url":"https://api.github.com/repos/paulmillr/chokidar/issues/557","number":557,"state":"open","locked":false,"title":"Added ability to force `interval` value by setting `CHOKIDAR_INTERVAL…","user":{"login":"YAmikep","id":1226080,"avatar_url":"https://avatars.githubusercontent.com/u/1226080?v=3","gravatar_id":"","url":"https://api.github.com/users/YAmikep","html_url":"https://github.com/YAmikep","followers_url":"https://api.github.com/users/YAmikep/followers","following_url":"https://api.github.com/users/YAmikep/following{/other_user}","gists_url":"https://api.github.com/users/YAmikep/gists{/gist_id}","starred_url":"https://api.github.com/users/YAmikep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YAmikep/subscriptions","organizations_url":"https://api.github.com/users/YAmikep/orgs","repos_url":"https://api.github.com/users/YAmikep/repos","events_url":"https://api.github.com/users/YAmikep/events{/privacy}","received_events_url":"https://api.github.com/users/YAmikep/received_events","type":"User","site_admin":false},"body":"Trying to add the ability to force `interval` value by setting `CHOKIDAR_INTERVAL` env variable.\r\nRef: https://github.com/paulmillr/chokidar/issues/518","created_at":"2016-11-27T18:02:00Z","updated_at":"2016-11-28T15:58:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"743ae378396ca6a2f5efb1f401518c0313a2ebab","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/paulmillr/chokidar/pulls/557/commits","review_comments_url":"https://api.github.com/repos/paulmillr/chokidar/pulls/557/comments","review_comment_url":"https://api.github.com/repos/paulmillr/chokidar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/issues/557/comments","statuses_url":"https://api.github.com/repos/paulmillr/chokidar/statuses/a8b9378286c7eac82863558481af2286c63532eb","head":{"label":"YAmikep:master","ref":"master","sha":"a8b9378286c7eac82863558481af2286c63532eb","user":{"login":"YAmikep","id":1226080,"avatar_url":"https://avatars.githubusercontent.com/u/1226080?v=3","gravatar_id":"","url":"https://api.github.com/users/YAmikep","html_url":"https://github.com/YAmikep","followers_url":"https://api.github.com/users/YAmikep/followers","following_url":"https://api.github.com/users/YAmikep/following{/other_user}","gists_url":"https://api.github.com/users/YAmikep/gists{/gist_id}","starred_url":"https://api.github.com/users/YAmikep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YAmikep/subscriptions","organizations_url":"https://api.github.com/users/YAmikep/orgs","repos_url":"https://api.github.com/users/YAmikep/repos","events_url":"https://api.github.com/users/YAmikep/events{/privacy}","received_events_url":"https://api.github.com/users/YAmikep/received_events","type":"User","site_admin":false},"repo":{"id":74903874,"name":"chokidar","full_name":"YAmikep/chokidar","owner":{"login":"YAmikep","id":1226080,"avatar_url":"https://avatars.githubusercontent.com/u/1226080?v=3","gravatar_id":"","url":"https://api.github.com/users/YAmikep","html_url":"https://github.com/YAmikep","followers_url":"https://api.github.com/users/YAmikep/followers","following_url":"https://api.github.com/users/YAmikep/following{/other_user}","gists_url":"https://api.github.com/users/YAmikep/gists{/gist_id}","starred_url":"https://api.github.com/users/YAmikep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YAmikep/subscriptions","organizations_url":"https://api.github.com/users/YAmikep/orgs","repos_url":"https://api.github.com/users/YAmikep/repos","events_url":"https://api.github.com/users/YAmikep/events{/privacy}","received_events_url":"https://api.github.com/users/YAmikep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YAmikep/chokidar","description":"A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.","fork":true,"url":"https://api.github.com/repos/YAmikep/chokidar","forks_url":"https://api.github.com/repos/YAmikep/chokidar/forks","keys_url":"https://api.github.com/repos/YAmikep/chokidar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YAmikep/chokidar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YAmikep/chokidar/teams","hooks_url":"https://api.github.com/repos/YAmikep/chokidar/hooks","issue_events_url":"https://api.github.com/repos/YAmikep/chokidar/issues/events{/number}","events_url":"https://api.github.com/repos/YAmikep/chokidar/events","assignees_url":"https://api.github.com/repos/YAmikep/chokidar/assignees{/user}","branches_url":"https://api.github.com/repos/YAmikep/chokidar/branches{/branch}","tags_url":"https://api.github.com/repos/YAmikep/chokidar/tags","blobs_url":"https://api.github.com/repos/YAmikep/chokidar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YAmikep/chokidar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YAmikep/chokidar/git/refs{/sha}","trees_url":"https://api.github.com/repos/YAmikep/chokidar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YAmikep/chokidar/statuses/{sha}","languages_url":"https://api.github.com/repos/YAmikep/chokidar/languages","stargazers_url":"https://api.github.com/repos/YAmikep/chokidar/stargazers","contributors_url":"https://api.github.com/repos/YAmikep/chokidar/contributors","subscribers_url":"https://api.github.com/repos/YAmikep/chokidar/subscribers","subscription_url":"https://api.github.com/repos/YAmikep/chokidar/subscription","commits_url":"https://api.github.com/repos/YAmikep/chokidar/commits{/sha}","git_commits_url":"https://api.github.com/repos/YAmikep/chokidar/git/commits{/sha}","comments_url":"https://api.github.com/repos/YAmikep/chokidar/comments{/number}","issue_comment_url":"https://api.github.com/repos/YAmikep/chokidar/issues/comments{/number}","contents_url":"https://api.github.com/repos/YAmikep/chokidar/contents/{+path}","compare_url":"https://api.github.com/repos/YAmikep/chokidar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YAmikep/chokidar/merges","archive_url":"https://api.github.com/repos/YAmikep/chokidar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YAmikep/chokidar/downloads","issues_url":"https://api.github.com/repos/YAmikep/chokidar/issues{/number}","pulls_url":"https://api.github.com/repos/YAmikep/chokidar/pulls{/number}","milestones_url":"https://api.github.com/repos/YAmikep/chokidar/milestones{/number}","notifications_url":"https://api.github.com/repos/YAmikep/chokidar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YAmikep/chokidar/labels{/name}","releases_url":"https://api.github.com/repos/YAmikep/chokidar/releases{/id}","deployments_url":"https://api.github.com/repos/YAmikep/chokidar/deployments","created_at":"2016-11-27T17:44:31Z","updated_at":"2016-11-27T17:44:33Z","pushed_at":"2016-11-27T18:08:20Z","git_url":"git://github.com/YAmikep/chokidar.git","ssh_url":"git@github.com:YAmikep/chokidar.git","clone_url":"https://github.com/YAmikep/chokidar.git","svn_url":"https://github.com/YAmikep/chokidar","homepage":"http://paulmillr.com","size":873,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"paulmillr:master","ref":"master","sha":"c21a65ce26064408ad14cf36a095f490936cbbd9","user":{"login":"paulmillr","id":574696,"avatar_url":"https://avatars.githubusercontent.com/u/574696?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmillr","html_url":"https://github.com/paulmillr","followers_url":"https://api.github.com/users/paulmillr/followers","following_url":"https://api.github.com/users/paulmillr/following{/other_user}","gists_url":"https://api.github.com/users/paulmillr/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmillr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmillr/subscriptions","organizations_url":"https://api.github.com/users/paulmillr/orgs","repos_url":"https://api.github.com/users/paulmillr/repos","events_url":"https://api.github.com/users/paulmillr/events{/privacy}","received_events_url":"https://api.github.com/users/paulmillr/received_events","type":"User","site_admin":false},"repo":{"id":4090287,"name":"chokidar","full_name":"paulmillr/chokidar","owner":{"login":"paulmillr","id":574696,"avatar_url":"https://avatars.githubusercontent.com/u/574696?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmillr","html_url":"https://github.com/paulmillr","followers_url":"https://api.github.com/users/paulmillr/followers","following_url":"https://api.github.com/users/paulmillr/following{/other_user}","gists_url":"https://api.github.com/users/paulmillr/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmillr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmillr/subscriptions","organizations_url":"https://api.github.com/users/paulmillr/orgs","repos_url":"https://api.github.com/users/paulmillr/repos","events_url":"https://api.github.com/users/paulmillr/events{/privacy}","received_events_url":"https://api.github.com/users/paulmillr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulmillr/chokidar","description":"A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.","fork":false,"url":"https://api.github.com/repos/paulmillr/chokidar","forks_url":"https://api.github.com/repos/paulmillr/chokidar/forks","keys_url":"https://api.github.com/repos/paulmillr/chokidar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulmillr/chokidar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulmillr/chokidar/teams","hooks_url":"https://api.github.com/repos/paulmillr/chokidar/hooks","issue_events_url":"https://api.github.com/repos/paulmillr/chokidar/issues/events{/number}","events_url":"https://api.github.com/repos/paulmillr/chokidar/events","assignees_url":"https://api.github.com/repos/paulmillr/chokidar/assignees{/user}","branches_url":"https://api.github.com/repos/paulmillr/chokidar/branches{/branch}","tags_url":"https://api.github.com/repos/paulmillr/chokidar/tags","blobs_url":"https://api.github.com/repos/paulmillr/chokidar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulmillr/chokidar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulmillr/chokidar/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulmillr/chokidar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulmillr/chokidar/statuses/{sha}","languages_url":"https://api.github.com/repos/paulmillr/chokidar/languages","stargazers_url":"https://api.github.com/repos/paulmillr/chokidar/stargazers","contributors_url":"https://api.github.com/repos/paulmillr/chokidar/contributors","subscribers_url":"https://api.github.com/repos/paulmillr/chokidar/subscribers","subscription_url":"https://api.github.com/repos/paulmillr/chokidar/subscription","commits_url":"https://api.github.com/repos/paulmillr/chokidar/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulmillr/chokidar/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulmillr/chokidar/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulmillr/chokidar/contents/{+path}","compare_url":"https://api.github.com/repos/paulmillr/chokidar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulmillr/chokidar/merges","archive_url":"https://api.github.com/repos/paulmillr/chokidar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulmillr/chokidar/downloads","issues_url":"https://api.github.com/repos/paulmillr/chokidar/issues{/number}","pulls_url":"https://api.github.com/repos/paulmillr/chokidar/pulls{/number}","milestones_url":"https://api.github.com/repos/paulmillr/chokidar/milestones{/number}","notifications_url":"https://api.github.com/repos/paulmillr/chokidar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulmillr/chokidar/labels{/name}","releases_url":"https://api.github.com/repos/paulmillr/chokidar/releases{/id}","deployments_url":"https://api.github.com/repos/paulmillr/chokidar/deployments","created_at":"2012-04-20T19:17:49Z","updated_at":"2016-11-28T15:41:03Z","pushed_at":"2016-11-27T18:08:20Z","git_url":"git://github.com/paulmillr/chokidar.git","ssh_url":"git@github.com:paulmillr/chokidar.git","clone_url":"https://github.com/paulmillr/chokidar.git","svn_url":"https://github.com/paulmillr/chokidar","homepage":"http://paulmillr.com","size":1004,"stargazers_count":2318,"watchers_count":2318,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":181,"mirror_url":null,"open_issues_count":56,"forks":181,"open_issues":56,"watchers":2318,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paulmillr/chokidar/pulls/557"},"html":{"href":"https://github.com/paulmillr/chokidar/pull/557"},"issue":{"href":"https://api.github.com/repos/paulmillr/chokidar/issues/557"},"comments":{"href":"https://api.github.com/repos/paulmillr/chokidar/issues/557/comments"},"review_comments":{"href":"https://api.github.com/repos/paulmillr/chokidar/pulls/557/comments"},"review_comment":{"href":"https://api.github.com/repos/paulmillr/chokidar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paulmillr/chokidar/pulls/557/commits"},"statuses":{"href":"https://api.github.com/repos/paulmillr/chokidar/statuses/a8b9378286c7eac82863558481af2286c63532eb"}}}}
{"actor":{"display_login":"es128"}}