{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/2","id":56589767,"html_url":"https://github.com/TiddoLangerak/webpack-fail-plugin/pull/2","diff_url":"https://github.com/TiddoLangerak/webpack-fail-plugin/pull/2.diff","patch_url":"https://github.com/TiddoLangerak/webpack-fail-plugin/pull/2.patch","issue_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/2","number":2,"state":"open","locked":false,"title":"Detect webpack-dev-server and only add the listener once","user":{"login":"TiddoLangerak","id":1759192,"avatar_url":"https://avatars.githubusercontent.com/u/1759192?v=3","gravatar_id":"","url":"https://api.github.com/users/TiddoLangerak","html_url":"https://github.com/TiddoLangerak","followers_url":"https://api.github.com/users/TiddoLangerak/followers","following_url":"https://api.github.com/users/TiddoLangerak/following{/other_user}","gists_url":"https://api.github.com/users/TiddoLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/TiddoLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiddoLangerak/subscriptions","organizations_url":"https://api.github.com/users/TiddoLangerak/orgs","repos_url":"https://api.github.com/users/TiddoLangerak/repos","events_url":"https://api.github.com/users/TiddoLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/TiddoLangerak/received_events","type":"User","site_admin":false},"body":"This prevents event emitter leaks.\n\nCloses #1","created_at":"2016-01-20T10:33:57Z","updated_at":"2016-01-20T10:33:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/2/commits","review_comments_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/2/comments","review_comment_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/2/comments","statuses_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/statuses/d08751d675e0b79963d6dd1f039747d1ed118eff","head":{"label":"TiddoLangerak:1-fix-emitter-leak","ref":"1-fix-emitter-leak","sha":"d08751d675e0b79963d6dd1f039747d1ed118eff","user":{"login":"TiddoLangerak","id":1759192,"avatar_url":"https://avatars.githubusercontent.com/u/1759192?v=3","gravatar_id":"","url":"https://api.github.com/users/TiddoLangerak","html_url":"https://github.com/TiddoLangerak","followers_url":"https://api.github.com/users/TiddoLangerak/followers","following_url":"https://api.github.com/users/TiddoLangerak/following{/other_user}","gists_url":"https://api.github.com/users/TiddoLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/TiddoLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiddoLangerak/subscriptions","organizations_url":"https://api.github.com/users/TiddoLangerak/orgs","repos_url":"https://api.github.com/users/TiddoLangerak/repos","events_url":"https://api.github.com/users/TiddoLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/TiddoLangerak/received_events","type":"User","site_admin":false},"repo":{"id":39437290,"name":"webpack-fail-plugin","full_name":"TiddoLangerak/webpack-fail-plugin","owner":{"login":"TiddoLangerak","id":1759192,"avatar_url":"https://avatars.githubusercontent.com/u/1759192?v=3","gravatar_id":"","url":"https://api.github.com/users/TiddoLangerak","html_url":"https://github.com/TiddoLangerak","followers_url":"https://api.github.com/users/TiddoLangerak/followers","following_url":"https://api.github.com/users/TiddoLangerak/following{/other_user}","gists_url":"https://api.github.com/users/TiddoLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/TiddoLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiddoLangerak/subscriptions","organizations_url":"https://api.github.com/users/TiddoLangerak/orgs","repos_url":"https://api.github.com/users/TiddoLangerak/repos","events_url":"https://api.github.com/users/TiddoLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/TiddoLangerak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TiddoLangerak/webpack-fail-plugin","description":null,"fork":false,"url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin","forks_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/forks","keys_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/teams","hooks_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/hooks","issue_events_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/events","assignees_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/tags","blobs_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/languages","stargazers_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/stargazers","contributors_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/contributors","subscribers_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/subscribers","subscription_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/subscription","commits_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/merges","archive_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/downloads","issues_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/labels{/name}","releases_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/releases{/id}","created_at":"2015-07-21T09:42:54Z","updated_at":"2016-01-14T20:43:25Z","pushed_at":"2016-01-20T10:33:53Z","git_url":"git://github.com/TiddoLangerak/webpack-fail-plugin.git","ssh_url":"git@github.com:TiddoLangerak/webpack-fail-plugin.git","clone_url":"https://github.com/TiddoLangerak/webpack-fail-plugin.git","svn_url":"https://github.com/TiddoLangerak/webpack-fail-plugin","homepage":null,"size":3,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":6,"default_branch":"master"}},"base":{"label":"TiddoLangerak:master","ref":"master","sha":"cdf258dba4dada88ac7e226cd3dcf20ff2e58d34","user":{"login":"TiddoLangerak","id":1759192,"avatar_url":"https://avatars.githubusercontent.com/u/1759192?v=3","gravatar_id":"","url":"https://api.github.com/users/TiddoLangerak","html_url":"https://github.com/TiddoLangerak","followers_url":"https://api.github.com/users/TiddoLangerak/followers","following_url":"https://api.github.com/users/TiddoLangerak/following{/other_user}","gists_url":"https://api.github.com/users/TiddoLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/TiddoLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiddoLangerak/subscriptions","organizations_url":"https://api.github.com/users/TiddoLangerak/orgs","repos_url":"https://api.github.com/users/TiddoLangerak/repos","events_url":"https://api.github.com/users/TiddoLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/TiddoLangerak/received_events","type":"User","site_admin":false},"repo":{"id":39437290,"name":"webpack-fail-plugin","full_name":"TiddoLangerak/webpack-fail-plugin","owner":{"login":"TiddoLangerak","id":1759192,"avatar_url":"https://avatars.githubusercontent.com/u/1759192?v=3","gravatar_id":"","url":"https://api.github.com/users/TiddoLangerak","html_url":"https://github.com/TiddoLangerak","followers_url":"https://api.github.com/users/TiddoLangerak/followers","following_url":"https://api.github.com/users/TiddoLangerak/following{/other_user}","gists_url":"https://api.github.com/users/TiddoLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/TiddoLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiddoLangerak/subscriptions","organizations_url":"https://api.github.com/users/TiddoLangerak/orgs","repos_url":"https://api.github.com/users/TiddoLangerak/repos","events_url":"https://api.github.com/users/TiddoLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/TiddoLangerak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TiddoLangerak/webpack-fail-plugin","description":null,"fork":false,"url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin","forks_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/forks","keys_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/teams","hooks_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/hooks","issue_events_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/events","assignees_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/tags","blobs_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/languages","stargazers_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/stargazers","contributors_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/contributors","subscribers_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/subscribers","subscription_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/subscription","commits_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/merges","archive_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/downloads","issues_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/labels{/name}","releases_url":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/releases{/id}","created_at":"2015-07-21T09:42:54Z","updated_at":"2016-01-14T20:43:25Z","pushed_at":"2016-01-20T10:33:53Z","git_url":"git://github.com/TiddoLangerak/webpack-fail-plugin.git","ssh_url":"git@github.com:TiddoLangerak/webpack-fail-plugin.git","clone_url":"https://github.com/TiddoLangerak/webpack-fail-plugin.git","svn_url":"https://github.com/TiddoLangerak/webpack-fail-plugin","homepage":null,"size":3,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/2"},"html":{"href":"https://github.com/TiddoLangerak/webpack-fail-plugin/pull/2"},"issue":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/2"},"comments":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/TiddoLangerak/webpack-fail-plugin/statuses/d08751d675e0b79963d6dd1f039747d1ed118eff"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":4,"changed_files":1}}