{"action":"created","comment":{"url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/comments/79125639","id":79125639,"diff_hunk":"@@ -0,0 +1,7 @@\n+package com.bugsnag.android;\n+\n+\n+public interface Callback {","path":"src/main/java/com/bugsnag/android/Callback.java","position":4,"original_position":4,"commit_id":"976173ca51c1e5de1e798faccd83d0639fc00fee","original_commit_id":"976173ca51c1e5de1e798faccd83d0639fc00fee","user":{"login":"Pezzah","id":15739051,"avatar_url":"https://avatars.githubusercontent.com/u/15739051?v=3","gravatar_id":"","url":"https://api.github.com/users/Pezzah","html_url":"https://github.com/Pezzah","followers_url":"https://api.github.com/users/Pezzah/followers","following_url":"https://api.github.com/users/Pezzah/following{/other_user}","gists_url":"https://api.github.com/users/Pezzah/gists{/gist_id}","starred_url":"https://api.github.com/users/Pezzah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pezzah/subscriptions","organizations_url":"https://api.github.com/users/Pezzah/orgs","repos_url":"https://api.github.com/users/Pezzah/repos","events_url":"https://api.github.com/users/Pezzah/events{/privacy}","received_events_url":"https://api.github.com/users/Pezzah/received_events","type":"User","site_admin":false},"body":"This could do with some comments","created_at":"2016-09-16T08:27:00Z","updated_at":"2016-09-16T08:59:07Z","html_url":"https://github.com/bugsnag/bugsnag-android/pull/123#discussion_r79125639","pull_request_url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/comments/79125639"},"html":{"href":"https://github.com/bugsnag/bugsnag-android/pull/123#discussion_r79125639"},"pull_request":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123","id":85428318,"html_url":"https://github.com/bugsnag/bugsnag-android/pull/123","diff_url":"https://github.com/bugsnag/bugsnag-android/pull/123.diff","patch_url":"https://github.com/bugsnag/bugsnag-android/pull/123.patch","issue_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/123","number":123,"state":"open","locked":false,"title":"Adds support for sending reports with callbacks","user":{"login":"kattrali","id":333454,"avatar_url":"https://avatars.githubusercontent.com/u/333454?v=3","gravatar_id":"","url":"https://api.github.com/users/kattrali","html_url":"https://github.com/kattrali","followers_url":"https://api.github.com/users/kattrali/followers","following_url":"https://api.github.com/users/kattrali/following{/other_user}","gists_url":"https://api.github.com/users/kattrali/gists{/gist_id}","starred_url":"https://api.github.com/users/kattrali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kattrali/subscriptions","organizations_url":"https://api.github.com/users/kattrali/orgs","repos_url":"https://api.github.com/users/kattrali/repos","events_url":"https://api.github.com/users/kattrali/events{/privacy}","received_events_url":"https://api.github.com/users/kattrali/received_events","type":"User","site_admin":false},"body":"This changeset adds support for modifying reports in callbacks/lambdas prior to being sent to Bugsnag. Example:\r\n\r\n```java\r\nBugsnag.notify(new RuntimeException(\"Unexpected failure\"), new Callback() {\r\n    @Override\r\n    public void beforeNotify(Report report) {\r\n        report.getError().setSeverity(Severity.INFO);\r\n        report.getError().setContext(\"FOO”);\r\n    }\r\n});\r\n```\r\n\r\nor using Java 8 lambdas/[retrolambda](https://github.com/evant/gradle-retrolambda):\r\n\r\n```\r\nBugsnag.notify(new RuntimeException(\"UnknownLambdaFailure\"), (report) -> {\r\n    report.getError().setSeverity(Severity.ERROR);\r\n});\r\n```\r\n\r\n## Questions/Caveats\r\n\r\nThe existing permutations of `notify()` with metadata, severity, and context were deprecated as a part of this changeset, though maybe there’s still a place for them?","created_at":"2016-09-15T15:39:35Z","updated_at":"2016-09-16T08:59:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"605ff3553835838d793050927cd62b935db6010d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123/commits","review_comments_url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123/comments","review_comment_url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/123/comments","statuses_url":"https://api.github.com/repos/bugsnag/bugsnag-android/statuses/976173ca51c1e5de1e798faccd83d0639fc00fee","head":{"label":"bugsnag:kattrali/notify-callback","ref":"kattrali/notify-callback","sha":"976173ca51c1e5de1e798faccd83d0639fc00fee","user":{"login":"bugsnag","id":1058895,"avatar_url":"https://avatars.githubusercontent.com/u/1058895?v=3","gravatar_id":"","url":"https://api.github.com/users/bugsnag","html_url":"https://github.com/bugsnag","followers_url":"https://api.github.com/users/bugsnag/followers","following_url":"https://api.github.com/users/bugsnag/following{/other_user}","gists_url":"https://api.github.com/users/bugsnag/gists{/gist_id}","starred_url":"https://api.github.com/users/bugsnag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugsnag/subscriptions","organizations_url":"https://api.github.com/users/bugsnag/orgs","repos_url":"https://api.github.com/users/bugsnag/repos","events_url":"https://api.github.com/users/bugsnag/events{/privacy}","received_events_url":"https://api.github.com/users/bugsnag/received_events","type":"Organization","site_admin":false},"repo":{"id":2406783,"name":"bugsnag-android","full_name":"bugsnag/bugsnag-android","owner":{"login":"bugsnag","id":1058895,"avatar_url":"https://avatars.githubusercontent.com/u/1058895?v=3","gravatar_id":"","url":"https://api.github.com/users/bugsnag","html_url":"https://github.com/bugsnag","followers_url":"https://api.github.com/users/bugsnag/followers","following_url":"https://api.github.com/users/bugsnag/following{/other_user}","gists_url":"https://api.github.com/users/bugsnag/gists{/gist_id}","starred_url":"https://api.github.com/users/bugsnag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugsnag/subscriptions","organizations_url":"https://api.github.com/users/bugsnag/orgs","repos_url":"https://api.github.com/users/bugsnag/repos","events_url":"https://api.github.com/users/bugsnag/events{/privacy}","received_events_url":"https://api.github.com/users/bugsnag/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bugsnag/bugsnag-android","description":"Bugsnag crash reporting for Android apps","fork":false,"url":"https://api.github.com/repos/bugsnag/bugsnag-android","forks_url":"https://api.github.com/repos/bugsnag/bugsnag-android/forks","keys_url":"https://api.github.com/repos/bugsnag/bugsnag-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bugsnag/bugsnag-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bugsnag/bugsnag-android/teams","hooks_url":"https://api.github.com/repos/bugsnag/bugsnag-android/hooks","issue_events_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/events{/number}","events_url":"https://api.github.com/repos/bugsnag/bugsnag-android/events","assignees_url":"https://api.github.com/repos/bugsnag/bugsnag-android/assignees{/user}","branches_url":"https://api.github.com/repos/bugsnag/bugsnag-android/branches{/branch}","tags_url":"https://api.github.com/repos/bugsnag/bugsnag-android/tags","blobs_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bugsnag/bugsnag-android/statuses/{sha}","languages_url":"https://api.github.com/repos/bugsnag/bugsnag-android/languages","stargazers_url":"https://api.github.com/repos/bugsnag/bugsnag-android/stargazers","contributors_url":"https://api.github.com/repos/bugsnag/bugsnag-android/contributors","subscribers_url":"https://api.github.com/repos/bugsnag/bugsnag-android/subscribers","subscription_url":"https://api.github.com/repos/bugsnag/bugsnag-android/subscription","commits_url":"https://api.github.com/repos/bugsnag/bugsnag-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/bugsnag/bugsnag-android/contents/{+path}","compare_url":"https://api.github.com/repos/bugsnag/bugsnag-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bugsnag/bugsnag-android/merges","archive_url":"https://api.github.com/repos/bugsnag/bugsnag-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bugsnag/bugsnag-android/downloads","issues_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues{/number}","pulls_url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls{/number}","milestones_url":"https://api.github.com/repos/bugsnag/bugsnag-android/milestones{/number}","notifications_url":"https://api.github.com/repos/bugsnag/bugsnag-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bugsnag/bugsnag-android/labels{/name}","releases_url":"https://api.github.com/repos/bugsnag/bugsnag-android/releases{/id}","deployments_url":"https://api.github.com/repos/bugsnag/bugsnag-android/deployments","created_at":"2011-09-17T21:18:06Z","updated_at":"2016-09-16T08:26:44Z","pushed_at":"2016-09-15T15:39:35Z","git_url":"git://github.com/bugsnag/bugsnag-android.git","ssh_url":"git@github.com:bugsnag/bugsnag-android.git","clone_url":"https://github.com/bugsnag/bugsnag-android.git","svn_url":"https://github.com/bugsnag/bugsnag-android","homepage":"https://bugsnag.com","size":1137,"stargazers_count":455,"watchers_count":455,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":2,"forks":100,"open_issues":2,"watchers":455,"default_branch":"master"}},"base":{"label":"bugsnag:master","ref":"master","sha":"967fedc474a86b771a6ee368c0ef5dc0d8635cd8","user":{"login":"bugsnag","id":1058895,"avatar_url":"https://avatars.githubusercontent.com/u/1058895?v=3","gravatar_id":"","url":"https://api.github.com/users/bugsnag","html_url":"https://github.com/bugsnag","followers_url":"https://api.github.com/users/bugsnag/followers","following_url":"https://api.github.com/users/bugsnag/following{/other_user}","gists_url":"https://api.github.com/users/bugsnag/gists{/gist_id}","starred_url":"https://api.github.com/users/bugsnag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugsnag/subscriptions","organizations_url":"https://api.github.com/users/bugsnag/orgs","repos_url":"https://api.github.com/users/bugsnag/repos","events_url":"https://api.github.com/users/bugsnag/events{/privacy}","received_events_url":"https://api.github.com/users/bugsnag/received_events","type":"Organization","site_admin":false},"repo":{"id":2406783,"name":"bugsnag-android","full_name":"bugsnag/bugsnag-android","owner":{"login":"bugsnag","id":1058895,"avatar_url":"https://avatars.githubusercontent.com/u/1058895?v=3","gravatar_id":"","url":"https://api.github.com/users/bugsnag","html_url":"https://github.com/bugsnag","followers_url":"https://api.github.com/users/bugsnag/followers","following_url":"https://api.github.com/users/bugsnag/following{/other_user}","gists_url":"https://api.github.com/users/bugsnag/gists{/gist_id}","starred_url":"https://api.github.com/users/bugsnag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugsnag/subscriptions","organizations_url":"https://api.github.com/users/bugsnag/orgs","repos_url":"https://api.github.com/users/bugsnag/repos","events_url":"https://api.github.com/users/bugsnag/events{/privacy}","received_events_url":"https://api.github.com/users/bugsnag/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bugsnag/bugsnag-android","description":"Bugsnag crash reporting for Android apps","fork":false,"url":"https://api.github.com/repos/bugsnag/bugsnag-android","forks_url":"https://api.github.com/repos/bugsnag/bugsnag-android/forks","keys_url":"https://api.github.com/repos/bugsnag/bugsnag-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bugsnag/bugsnag-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bugsnag/bugsnag-android/teams","hooks_url":"https://api.github.com/repos/bugsnag/bugsnag-android/hooks","issue_events_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/events{/number}","events_url":"https://api.github.com/repos/bugsnag/bugsnag-android/events","assignees_url":"https://api.github.com/repos/bugsnag/bugsnag-android/assignees{/user}","branches_url":"https://api.github.com/repos/bugsnag/bugsnag-android/branches{/branch}","tags_url":"https://api.github.com/repos/bugsnag/bugsnag-android/tags","blobs_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bugsnag/bugsnag-android/statuses/{sha}","languages_url":"https://api.github.com/repos/bugsnag/bugsnag-android/languages","stargazers_url":"https://api.github.com/repos/bugsnag/bugsnag-android/stargazers","contributors_url":"https://api.github.com/repos/bugsnag/bugsnag-android/contributors","subscribers_url":"https://api.github.com/repos/bugsnag/bugsnag-android/subscribers","subscription_url":"https://api.github.com/repos/bugsnag/bugsnag-android/subscription","commits_url":"https://api.github.com/repos/bugsnag/bugsnag-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/bugsnag/bugsnag-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/bugsnag/bugsnag-android/contents/{+path}","compare_url":"https://api.github.com/repos/bugsnag/bugsnag-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bugsnag/bugsnag-android/merges","archive_url":"https://api.github.com/repos/bugsnag/bugsnag-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bugsnag/bugsnag-android/downloads","issues_url":"https://api.github.com/repos/bugsnag/bugsnag-android/issues{/number}","pulls_url":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls{/number}","milestones_url":"https://api.github.com/repos/bugsnag/bugsnag-android/milestones{/number}","notifications_url":"https://api.github.com/repos/bugsnag/bugsnag-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bugsnag/bugsnag-android/labels{/name}","releases_url":"https://api.github.com/repos/bugsnag/bugsnag-android/releases{/id}","deployments_url":"https://api.github.com/repos/bugsnag/bugsnag-android/deployments","created_at":"2011-09-17T21:18:06Z","updated_at":"2016-09-16T08:26:44Z","pushed_at":"2016-09-15T15:39:35Z","git_url":"git://github.com/bugsnag/bugsnag-android.git","ssh_url":"git@github.com:bugsnag/bugsnag-android.git","clone_url":"https://github.com/bugsnag/bugsnag-android.git","svn_url":"https://github.com/bugsnag/bugsnag-android","homepage":"https://bugsnag.com","size":1137,"stargazers_count":455,"watchers_count":455,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":2,"forks":100,"open_issues":2,"watchers":455,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123"},"html":{"href":"https://github.com/bugsnag/bugsnag-android/pull/123"},"issue":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/123"},"comments":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/bugsnag/bugsnag-android/statuses/976173ca51c1e5de1e798faccd83d0639fc00fee"}}}}
{"actor":{"display_login":"Pezzah"}}