{"action":"created","issue":{"url":"https://api.github.com/repos/Exelord/ember-rollbar-client/issues/4","repository_url":"https://api.github.com/repos/Exelord/ember-rollbar-client","labels_url":"https://api.github.com/repos/Exelord/ember-rollbar-client/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Exelord/ember-rollbar-client/issues/4/comments","events_url":"https://api.github.com/repos/Exelord/ember-rollbar-client/issues/4/events","html_url":"https://github.com/Exelord/ember-rollbar-client/pull/4","id":246533197,"node_id":"MDExOlB1bGxSZXF1ZXN0MTMzMDk5Mzc2","number":4,"title":"Add automatic source maps notifier command","user":{"login":"Exelord","id":1469375,"node_id":"MDQ6VXNlcjE0NjkzNzU=","avatar_url":"https://avatars1.githubusercontent.com/u/1469375?v=4","gravatar_id":"","url":"https://api.github.com/users/Exelord","html_url":"https://github.com/Exelord","followers_url":"https://api.github.com/users/Exelord/followers","following_url":"https://api.github.com/users/Exelord/following{/other_user}","gists_url":"https://api.github.com/users/Exelord/gists{/gist_id}","starred_url":"https://api.github.com/users/Exelord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exelord/subscriptions","organizations_url":"https://api.github.com/users/Exelord/orgs","repos_url":"https://api.github.com/users/Exelord/repos","events_url":"https://api.github.com/users/Exelord/events{/privacy}","received_events_url":"https://api.github.com/users/Exelord/received_events","type":"User","site_admin":false},"labels":[{"id":616615869,"node_id":"MDU6TGFiZWw2MTY2MTU4Njk=","url":"https://api.github.com/repos/Exelord/ember-rollbar-client/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-07-29T17:07:16Z","updated_at":"2018-06-29T23:32:06Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/Exelord/ember-rollbar-client/pulls/4","html_url":"https://github.com/Exelord/ember-rollbar-client/pull/4","diff_url":"https://github.com/Exelord/ember-rollbar-client/pull/4.diff","patch_url":"https://github.com/Exelord/ember-rollbar-client/pull/4.patch"},"body":"# Description\r\nThis PR will add ember cli command: `notify-rollbar-sourcemaps` \r\nIt will automatically notify Rollbar about new source maps.\r\n\r\n>Trigger a download for each of your minified files. Doing this will reduce the number of errors that the source map isn't applied to (since we'll have a greater chance of downloading the source map before the first error after a deploy occurs).\r\n\r\nREF: https://rollbar.com/docs/source-maps/\r\n\r\n## TODO\r\n- [ ] Readme\r\n- [ ] Tests\r\n\r\n# API\r\n## Command\r\n`ember notify-rollbar-sourcemaps`\r\n## Required options\r\n`token` [alias: `t`] - Your rollbar access token. Should be a post_server_item token (the same one that you use for sending deploy notifications).\r\n`host` [alias: `h`] - Your app host url eg: `https://exelord.github.io/ember-rollbar-client`\r\n\r\n## Example\r\n```\r\nember notify-rollbar-sourcemaps -t MY123SUPER877TOKEN -h https://exelord.github.io/ember-rollbar-client\r\n```\r\n\r\n## Using Source Maps On Many Domains\r\nIf you'd like to use source maps with the same code that is deployed on many domains, use the following code:\r\n```js\r\nvar _rollbarConfig = {\r\n  // ...\r\n  transform: function(payload) {\r\n    var trace = payload.body.trace;\r\n    // Change 'yourdomainhere' to your domain.\r\n    var locRegex = /^(https?):\\/\\/[a-zA-Z0-9._-]+\\.yourdomainhere\\.com(.*)/;\r\n    if (trace && trace.frames) {\r\n      for (var i = 0; i < trace.frames.length; i++) {\r\n        var filename = trace.frames[i].filename;\r\n        if (filename) {\r\n          var m = filename.match(locRegex);\r\n          // Be sure that the minified_url when uploading includes 'dynamichost'\r\n          trace.frames[i].filename = m[1] + '://dynamichost' + m[2];          \r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Exelord/ember-rollbar-client/issues/comments/401498327","html_url":"https://github.com/Exelord/ember-rollbar-client/pull/4#issuecomment-401498327","issue_url":"https://api.github.com/repos/Exelord/ember-rollbar-client/issues/4","id":401498327,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTQ5ODMyNw==","user":{"login":"Exelord","id":1469375,"node_id":"MDQ6VXNlcjE0NjkzNzU=","avatar_url":"https://avatars1.githubusercontent.com/u/1469375?v=4","gravatar_id":"","url":"https://api.github.com/users/Exelord","html_url":"https://github.com/Exelord","followers_url":"https://api.github.com/users/Exelord/followers","following_url":"https://api.github.com/users/Exelord/following{/other_user}","gists_url":"https://api.github.com/users/Exelord/gists{/gist_id}","starred_url":"https://api.github.com/users/Exelord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exelord/subscriptions","organizations_url":"https://api.github.com/users/Exelord/orgs","repos_url":"https://api.github.com/users/Exelord/repos","events_url":"https://api.github.com/users/Exelord/events{/privacy}","received_events_url":"https://api.github.com/users/Exelord/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T23:32:06Z","updated_at":"2018-06-29T23:32:06Z","author_association":"OWNER","body":"Thanks for your help. :) I don't need this feature anymore, if you want it there are still few things missing:\r\n- Fixing Tests\r\n- Add readme\r\n- Add tests\r\n\r\nFeel free to open PRs to this one. I would be more than happy to merge it."}}
{"actor":{"display_login":"Exelord"}}