{"action":"created","comment":{"url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/comments/225196633","pull_request_review_id":164745109,"id":225196633,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTE5NjYzMw==","diff_hunk":"@@ -154,4 +168,31 @@ public function verifyWebhook()\n             throw new WebapiException(__('Precondition Failed'), 6001, 412);\n         }\n     }\n+\n+    /**\n+     * Set bugsnag metadata bolt_trace_id\n+     */\n+    public function setMetadata()\n+    {\n+        if ($bolt_trace_id = $this->request->getHeader(ConfigHelper::BOLT_TRACE_ID_HEADER)) {\n+            $this->bugsnag->registerCallback(function ($report) use ($bolt_trace_id) {\n+                $report->setMetaData([","path":"Helper/Hook.php","position":63,"original_position":63,"commit_id":"9e65c2b7d7b6ac3a31c67e68c47a3eeae5a2f678","original_commit_id":"9e65c2b7d7b6ac3a31c67e68c47a3eeae5a2f678","user":{"login":"daisy1754","id":980077,"node_id":"MDQ6VXNlcjk4MDA3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/980077?v=4","gravatar_id":"","url":"https://api.github.com/users/daisy1754","html_url":"https://github.com/daisy1754","followers_url":"https://api.github.com/users/daisy1754/followers","following_url":"https://api.github.com/users/daisy1754/following{/other_user}","gists_url":"https://api.github.com/users/daisy1754/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy1754/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy1754/subscriptions","organizations_url":"https://api.github.com/users/daisy1754/orgs","repos_url":"https://api.github.com/users/daisy1754/repos","events_url":"https://api.github.com/users/daisy1754/events{/privacy}","received_events_url":"https://api.github.com/users/daisy1754/received_events","type":"User","site_admin":false},"body":"shouldn't this addMetaData so it won't override existing metadata with store URL?","created_at":"2018-10-15T14:53:57Z","updated_at":"2018-10-15T14:55:06Z","html_url":"https://github.com/BoltApp/bolt-magento2/pull/131#discussion_r225196633","pull_request_url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/comments/225196633"},"html":{"href":"https://github.com/BoltApp/bolt-magento2/pull/131#discussion_r225196633"},"pull_request":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131","id":222820817,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyODIwODE3","html_url":"https://github.com/BoltApp/bolt-magento2/pull/131","diff_url":"https://github.com/BoltApp/bolt-magento2/pull/131.diff","patch_url":"https://github.com/BoltApp/bolt-magento2/pull/131.patch","issue_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/131","number":131,"state":"open","locked":false,"title":"add store url to bugsnag metadata, DRY - move adding API metadata and…","user":{"login":"danac-gs","id":37150717,"node_id":"MDQ6VXNlcjM3MTUwNzE3","avatar_url":"https://avatars1.githubusercontent.com/u/37150717?v=4","gravatar_id":"","url":"https://api.github.com/users/danac-gs","html_url":"https://github.com/danac-gs","followers_url":"https://api.github.com/users/danac-gs/followers","following_url":"https://api.github.com/users/danac-gs/following{/other_user}","gists_url":"https://api.github.com/users/danac-gs/gists{/gist_id}","starred_url":"https://api.github.com/users/danac-gs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danac-gs/subscriptions","organizations_url":"https://api.github.com/users/danac-gs/orgs","repos_url":"https://api.github.com/users/danac-gs/repos","events_url":"https://api.github.com/users/danac-gs/events{/privacy}","received_events_url":"https://api.github.com/users/danac-gs/received_events","type":"User","site_admin":false},"body":"… headers to Hook Helper","created_at":"2018-10-15T08:27:28Z","updated_at":"2018-10-15T14:55:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"871994cf65e8e9241a60044a9d6ec152a0ed59f6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dumega","id":3198527,"node_id":"MDQ6VXNlcjMxOTg1Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3198527?v=4","gravatar_id":"","url":"https://api.github.com/users/dumega","html_url":"https://github.com/dumega","followers_url":"https://api.github.com/users/dumega/followers","following_url":"https://api.github.com/users/dumega/following{/other_user}","gists_url":"https://api.github.com/users/dumega/gists{/gist_id}","starred_url":"https://api.github.com/users/dumega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumega/subscriptions","organizations_url":"https://api.github.com/users/dumega/orgs","repos_url":"https://api.github.com/users/dumega/repos","events_url":"https://api.github.com/users/dumega/events{/privacy}","received_events_url":"https://api.github.com/users/dumega/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131/commits","review_comments_url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131/comments","review_comment_url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/131/comments","statuses_url":"https://api.github.com/repos/BoltApp/bolt-magento2/statuses/9e65c2b7d7b6ac3a31c67e68c47a3eeae5a2f678","head":{"label":"BoltApp:bugsnag-meta-data","ref":"bugsnag-meta-data","sha":"9e65c2b7d7b6ac3a31c67e68c47a3eeae5a2f678","user":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"repo":{"id":125257411,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUyNTc0MTE=","name":"bolt-magento2","full_name":"BoltApp/bolt-magento2","private":false,"owner":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BoltApp/bolt-magento2","description":"Bolt plugin for magento2","fork":false,"url":"https://api.github.com/repos/BoltApp/bolt-magento2","forks_url":"https://api.github.com/repos/BoltApp/bolt-magento2/forks","keys_url":"https://api.github.com/repos/BoltApp/bolt-magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoltApp/bolt-magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoltApp/bolt-magento2/teams","hooks_url":"https://api.github.com/repos/BoltApp/bolt-magento2/hooks","issue_events_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/events{/number}","events_url":"https://api.github.com/repos/BoltApp/bolt-magento2/events","assignees_url":"https://api.github.com/repos/BoltApp/bolt-magento2/assignees{/user}","branches_url":"https://api.github.com/repos/BoltApp/bolt-magento2/branches{/branch}","tags_url":"https://api.github.com/repos/BoltApp/bolt-magento2/tags","blobs_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoltApp/bolt-magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/BoltApp/bolt-magento2/languages","stargazers_url":"https://api.github.com/repos/BoltApp/bolt-magento2/stargazers","contributors_url":"https://api.github.com/repos/BoltApp/bolt-magento2/contributors","subscribers_url":"https://api.github.com/repos/BoltApp/bolt-magento2/subscribers","subscription_url":"https://api.github.com/repos/BoltApp/bolt-magento2/subscription","commits_url":"https://api.github.com/repos/BoltApp/bolt-magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoltApp/bolt-magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoltApp/bolt-magento2/contents/{+path}","compare_url":"https://api.github.com/repos/BoltApp/bolt-magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoltApp/bolt-magento2/merges","archive_url":"https://api.github.com/repos/BoltApp/bolt-magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoltApp/bolt-magento2/downloads","issues_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues{/number}","pulls_url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/BoltApp/bolt-magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/BoltApp/bolt-magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoltApp/bolt-magento2/labels{/name}","releases_url":"https://api.github.com/repos/BoltApp/bolt-magento2/releases{/id}","deployments_url":"https://api.github.com/repos/BoltApp/bolt-magento2/deployments","created_at":"2018-03-14T18:34:24Z","updated_at":"2018-10-11T20:42:32Z","pushed_at":"2018-10-15T09:38:07Z","git_url":"git://github.com/BoltApp/bolt-magento2.git","ssh_url":"git@github.com:BoltApp/bolt-magento2.git","clone_url":"https://github.com/BoltApp/bolt-magento2.git","svn_url":"https://github.com/BoltApp/bolt-magento2","homepage":null,"size":760,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"osl-3.0","name":"Open Software License 3.0","spdx_id":"OSL-3.0","url":"https://api.github.com/licenses/osl-3.0","node_id":"MDc6TGljZW5zZTE2"},"forks":4,"open_issues":2,"watchers":1,"default_branch":"develop"}},"base":{"label":"BoltApp:develop","ref":"develop","sha":"c5749fc453083988c3f523570e5f6ee053411f67","user":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"repo":{"id":125257411,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUyNTc0MTE=","name":"bolt-magento2","full_name":"BoltApp/bolt-magento2","private":false,"owner":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BoltApp/bolt-magento2","description":"Bolt plugin for magento2","fork":false,"url":"https://api.github.com/repos/BoltApp/bolt-magento2","forks_url":"https://api.github.com/repos/BoltApp/bolt-magento2/forks","keys_url":"https://api.github.com/repos/BoltApp/bolt-magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoltApp/bolt-magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoltApp/bolt-magento2/teams","hooks_url":"https://api.github.com/repos/BoltApp/bolt-magento2/hooks","issue_events_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/events{/number}","events_url":"https://api.github.com/repos/BoltApp/bolt-magento2/events","assignees_url":"https://api.github.com/repos/BoltApp/bolt-magento2/assignees{/user}","branches_url":"https://api.github.com/repos/BoltApp/bolt-magento2/branches{/branch}","tags_url":"https://api.github.com/repos/BoltApp/bolt-magento2/tags","blobs_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoltApp/bolt-magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/BoltApp/bolt-magento2/languages","stargazers_url":"https://api.github.com/repos/BoltApp/bolt-magento2/stargazers","contributors_url":"https://api.github.com/repos/BoltApp/bolt-magento2/contributors","subscribers_url":"https://api.github.com/repos/BoltApp/bolt-magento2/subscribers","subscription_url":"https://api.github.com/repos/BoltApp/bolt-magento2/subscription","commits_url":"https://api.github.com/repos/BoltApp/bolt-magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoltApp/bolt-magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoltApp/bolt-magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoltApp/bolt-magento2/contents/{+path}","compare_url":"https://api.github.com/repos/BoltApp/bolt-magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoltApp/bolt-magento2/merges","archive_url":"https://api.github.com/repos/BoltApp/bolt-magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoltApp/bolt-magento2/downloads","issues_url":"https://api.github.com/repos/BoltApp/bolt-magento2/issues{/number}","pulls_url":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/BoltApp/bolt-magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/BoltApp/bolt-magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoltApp/bolt-magento2/labels{/name}","releases_url":"https://api.github.com/repos/BoltApp/bolt-magento2/releases{/id}","deployments_url":"https://api.github.com/repos/BoltApp/bolt-magento2/deployments","created_at":"2018-03-14T18:34:24Z","updated_at":"2018-10-11T20:42:32Z","pushed_at":"2018-10-15T09:38:07Z","git_url":"git://github.com/BoltApp/bolt-magento2.git","ssh_url":"git@github.com:BoltApp/bolt-magento2.git","clone_url":"https://github.com/BoltApp/bolt-magento2.git","svn_url":"https://github.com/BoltApp/bolt-magento2","homepage":null,"size":760,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"osl-3.0","name":"Open Software License 3.0","spdx_id":"OSL-3.0","url":"https://api.github.com/licenses/osl-3.0","node_id":"MDc6TGljZW5zZTE2"},"forks":4,"open_issues":2,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131"},"html":{"href":"https://github.com/BoltApp/bolt-magento2/pull/131"},"issue":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/131"},"comments":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/BoltApp/bolt-magento2/statuses/9e65c2b7d7b6ac3a31c67e68c47a3eeae5a2f678"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"daisy1754"}}