{"action":"created","comment":{"url":"https://api.github.com/repos/airbrake/airbrake-js/pulls/comments/36180092","id":36180092,"diff_hunk":"@@ -80,14 +96,20 @@ class Client\n           version: '<%= pkg.version %>'\n           url: 'https://github.com/airbrake/airbrake-js'\n         errors: [errInfo]\n-        context: merge(defContext, @_context, err.context)\n-        params: merge({}, @_params, err.params)\n-        environment: merge({}, @_env, err.environment)\n-        session: merge({}, @_session, err.session)\n+        context: merge(defContext, err.context)\n+        params: err.params or {}\n+        environment: err.environment or {}\n+        session: err.session or {}\n \n       for filterFn in @_filters\n-        if not filterFn(notice)\n+        n = filterFn(notice)\n+        if n == null or n == false\n           return\n+        # TODO: remove this check in new major version.\n+        if n.notifier? && n.errors? # Check if this is a notice.","path":"src/client.coffee","position":87,"original_position":87,"commit_id":"fe1fdac8246325c2379c14705dce52fe419d6180","original_commit_id":"fe1fdac8246325c2379c14705dce52fe419d6180","user":{"login":"vmihailenco","id":290976,"avatar_url":"https://avatars.githubusercontent.com/u/290976?v=3","gravatar_id":"","url":"https://api.github.com/users/vmihailenco","html_url":"https://github.com/vmihailenco","followers_url":"https://api.github.com/users/vmihailenco/followers","following_url":"https://api.github.com/users/vmihailenco/following{/other_user}","gists_url":"https://api.github.com/users/vmihailenco/gists{/gist_id}","starred_url":"https://api.github.com/users/vmihailenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmihailenco/subscriptions","organizations_url":"https://api.github.com/users/vmihailenco/orgs","repos_url":"https://api.github.com/users/vmihailenco/repos","events_url":"https://api.github.com/users/vmihailenco/events{/privacy}","received_events_url":"https://api.github.com/users/vmihailenco/received_events","type":"User","site_admin":false},"body":"Will fix","created_at":"2015-08-04T12:04:27Z","updated_at":"2015-08-04T12:04:27Z","html_url":"https://github.com/airbrake/airbrake-js/pull/155#discussion_r36180092","pull_request_url":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/airbrake/airbrake-js/pulls/comments/36180092"},"html":{"href":"https://github.com/airbrake/airbrake-js/pull/155#discussion_r36180092"},"pull_request":{"href":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155","id":41557767,"html_url":"https://github.com/airbrake/airbrake-js/pull/155","diff_url":"https://github.com/airbrake/airbrake-js/pull/155.diff","patch_url":"https://github.com/airbrake/airbrake-js/pull/155.patch","issue_url":"https://api.github.com/repos/airbrake/airbrake-js/issues/155","number":155,"state":"open","locked":false,"title":"Cleanup API to be consistent with other notifiers.","user":{"login":"vmihailenco","id":290976,"avatar_url":"https://avatars.githubusercontent.com/u/290976?v=3","gravatar_id":"","url":"https://api.github.com/users/vmihailenco","html_url":"https://github.com/vmihailenco","followers_url":"https://api.github.com/users/vmihailenco/followers","following_url":"https://api.github.com/users/vmihailenco/following{/other_user}","gists_url":"https://api.github.com/users/vmihailenco/gists{/gist_id}","starred_url":"https://api.github.com/users/vmihailenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmihailenco/subscriptions","organizations_url":"https://api.github.com/users/vmihailenco/orgs","repos_url":"https://api.github.com/users/vmihailenco/repos","events_url":"https://api.github.com/users/vmihailenco/events{/privacy}","received_events_url":"https://api.github.com/users/vmihailenco/received_events","type":"User","site_admin":false},"body":"Changes:\r\n- push is renamed to notify. push is still available, but is deprecated.\r\n- setEnvironmentName, addContext, addEnvironment, addSession and addParams are deprecated in favor of filters.","created_at":"2015-08-04T11:03:02Z","updated_at":"2015-08-04T12:04:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"578725f8909ee3f371ea64d287549d908bebc1d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155/commits","review_comments_url":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155/comments","review_comment_url":"https://api.github.com/repos/airbrake/airbrake-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airbrake/airbrake-js/issues/155/comments","statuses_url":"https://api.github.com/repos/airbrake/airbrake-js/statuses/fe1fdac8246325c2379c14705dce52fe419d6180","head":{"label":"airbrake:fix/cleanup-api-for-consistency","ref":"fix/cleanup-api-for-consistency","sha":"fe1fdac8246325c2379c14705dce52fe419d6180","user":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"repo":{"id":4720737,"name":"airbrake-js","full_name":"airbrake/airbrake-js","owner":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbrake/airbrake-js","description":"Airbrake JavaScript Notifier","fork":false,"url":"https://api.github.com/repos/airbrake/airbrake-js","forks_url":"https://api.github.com/repos/airbrake/airbrake-js/forks","keys_url":"https://api.github.com/repos/airbrake/airbrake-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbrake/airbrake-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbrake/airbrake-js/teams","hooks_url":"https://api.github.com/repos/airbrake/airbrake-js/hooks","issue_events_url":"https://api.github.com/repos/airbrake/airbrake-js/issues/events{/number}","events_url":"https://api.github.com/repos/airbrake/airbrake-js/events","assignees_url":"https://api.github.com/repos/airbrake/airbrake-js/assignees{/user}","branches_url":"https://api.github.com/repos/airbrake/airbrake-js/branches{/branch}","tags_url":"https://api.github.com/repos/airbrake/airbrake-js/tags","blobs_url":"https://api.github.com/repos/airbrake/airbrake-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbrake/airbrake-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbrake/airbrake-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbrake/airbrake-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbrake/airbrake-js/statuses/{sha}","languages_url":"https://api.github.com/repos/airbrake/airbrake-js/languages","stargazers_url":"https://api.github.com/repos/airbrake/airbrake-js/stargazers","contributors_url":"https://api.github.com/repos/airbrake/airbrake-js/contributors","subscribers_url":"https://api.github.com/repos/airbrake/airbrake-js/subscribers","subscription_url":"https://api.github.com/repos/airbrake/airbrake-js/subscription","commits_url":"https://api.github.com/repos/airbrake/airbrake-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbrake/airbrake-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbrake/airbrake-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbrake/airbrake-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbrake/airbrake-js/contents/{+path}","compare_url":"https://api.github.com/repos/airbrake/airbrake-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbrake/airbrake-js/merges","archive_url":"https://api.github.com/repos/airbrake/airbrake-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbrake/airbrake-js/downloads","issues_url":"https://api.github.com/repos/airbrake/airbrake-js/issues{/number}","pulls_url":"https://api.github.com/repos/airbrake/airbrake-js/pulls{/number}","milestones_url":"https://api.github.com/repos/airbrake/airbrake-js/milestones{/number}","notifications_url":"https://api.github.com/repos/airbrake/airbrake-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbrake/airbrake-js/labels{/name}","releases_url":"https://api.github.com/repos/airbrake/airbrake-js/releases{/id}","created_at":"2012-06-20T00:20:45Z","updated_at":"2015-07-31T11:40:59Z","pushed_at":"2015-08-04T11:08:21Z","git_url":"git://github.com/airbrake/airbrake-js.git","ssh_url":"git@github.com:airbrake/airbrake-js.git","clone_url":"https://github.com/airbrake/airbrake-js.git","svn_url":"https://github.com/airbrake/airbrake-js","homepage":"https://airbrake.io","size":3075,"stargazers_count":165,"watchers_count":165,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":13,"forks":49,"open_issues":13,"watchers":165,"default_branch":"master"}},"base":{"label":"airbrake:master","ref":"master","sha":"838733d590ea37bc3beaf9131e999567af4b1788","user":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"repo":{"id":4720737,"name":"airbrake-js","full_name":"airbrake/airbrake-js","owner":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbrake/airbrake-js","description":"Airbrake JavaScript Notifier","fork":false,"url":"https://api.github.com/repos/airbrake/airbrake-js","forks_url":"https://api.github.com/repos/airbrake/airbrake-js/forks","keys_url":"https://api.github.com/repos/airbrake/airbrake-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbrake/airbrake-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbrake/airbrake-js/teams","hooks_url":"https://api.github.com/repos/airbrake/airbrake-js/hooks","issue_events_url":"https://api.github.com/repos/airbrake/airbrake-js/issues/events{/number}","events_url":"https://api.github.com/repos/airbrake/airbrake-js/events","assignees_url":"https://api.github.com/repos/airbrake/airbrake-js/assignees{/user}","branches_url":"https://api.github.com/repos/airbrake/airbrake-js/branches{/branch}","tags_url":"https://api.github.com/repos/airbrake/airbrake-js/tags","blobs_url":"https://api.github.com/repos/airbrake/airbrake-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbrake/airbrake-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbrake/airbrake-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbrake/airbrake-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbrake/airbrake-js/statuses/{sha}","languages_url":"https://api.github.com/repos/airbrake/airbrake-js/languages","stargazers_url":"https://api.github.com/repos/airbrake/airbrake-js/stargazers","contributors_url":"https://api.github.com/repos/airbrake/airbrake-js/contributors","subscribers_url":"https://api.github.com/repos/airbrake/airbrake-js/subscribers","subscription_url":"https://api.github.com/repos/airbrake/airbrake-js/subscription","commits_url":"https://api.github.com/repos/airbrake/airbrake-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbrake/airbrake-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbrake/airbrake-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbrake/airbrake-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbrake/airbrake-js/contents/{+path}","compare_url":"https://api.github.com/repos/airbrake/airbrake-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbrake/airbrake-js/merges","archive_url":"https://api.github.com/repos/airbrake/airbrake-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbrake/airbrake-js/downloads","issues_url":"https://api.github.com/repos/airbrake/airbrake-js/issues{/number}","pulls_url":"https://api.github.com/repos/airbrake/airbrake-js/pulls{/number}","milestones_url":"https://api.github.com/repos/airbrake/airbrake-js/milestones{/number}","notifications_url":"https://api.github.com/repos/airbrake/airbrake-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbrake/airbrake-js/labels{/name}","releases_url":"https://api.github.com/repos/airbrake/airbrake-js/releases{/id}","created_at":"2012-06-20T00:20:45Z","updated_at":"2015-07-31T11:40:59Z","pushed_at":"2015-08-04T11:08:21Z","git_url":"git://github.com/airbrake/airbrake-js.git","ssh_url":"git@github.com:airbrake/airbrake-js.git","clone_url":"https://github.com/airbrake/airbrake-js.git","svn_url":"https://github.com/airbrake/airbrake-js","homepage":"https://airbrake.io","size":3075,"stargazers_count":165,"watchers_count":165,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":13,"forks":49,"open_issues":13,"watchers":165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155"},"html":{"href":"https://github.com/airbrake/airbrake-js/pull/155"},"issue":{"href":"https://api.github.com/repos/airbrake/airbrake-js/issues/155"},"comments":{"href":"https://api.github.com/repos/airbrake/airbrake-js/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/airbrake/airbrake-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airbrake/airbrake-js/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/airbrake/airbrake-js/statuses/fe1fdac8246325c2379c14705dce52fe419d6180"}}}}