{"id":25830471,"url":"https://github.com/EmberExperts/ember-cli-deploy-sentry-cli","last_synced_at":"2025-02-28T19:20:10.619Z","repository":{"id":36059633,"uuid":"221188479","full_name":"EmberExperts/ember-cli-deploy-sentry-cli","owner":"EmberExperts","description":"Sentry CLI integration for ember-cli-deploy. Integrate your deploy pipeline with Sentry. Upload sourcemaps, assign related commits and manage releases.","archived":false,"fork":false,"pushed_at":"2023-03-04T05:10:15.000Z","size":1245,"stargazers_count":9,"open_issues_count":9,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T10:45:28.506Z","etag":null,"topics":["emberjs","sentry-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmberExperts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-12T10:14:37.000Z","updated_at":"2022-08-12T15:40:30.000Z","dependencies_parsed_at":"2024-06-19T11:23:38.921Z","dependency_job_id":"9a90237e-8ce9-401a-b7ba-99bbc8753dfe","html_url":"https://github.com/EmberExperts/ember-cli-deploy-sentry-cli","commit_stats":null,"previous_names":["exelord/ember-cli-deploy-sentry-cli"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmberExperts%2Fember-cli-deploy-sentry-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmberExperts%2Fember-cli-deploy-sentry-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmberExperts%2Fember-cli-deploy-sentry-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmberExperts%2Fember-cli-deploy-sentry-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmberExperts","download_url":"https://codeload.github.com/EmberExperts/ember-cli-deploy-sentry-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241210116,"owners_count":19927792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emberjs","sentry-cli"],"created_at":"2025-02-28T19:20:09.115Z","updated_at":"2025-02-28T19:20:10.613Z","avatar_url":"https://github.com/EmberExperts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-deploy-sentry-cli\n\nIntegrate your deploy pipeline with Sentry. Upload sourcemaps, assign related commits and manage releases.\n\n\n# Compatibility\n\n* ember-cli-deploy v1.0 or above\n* Node.js v12 or above\n\n\n## Installation\n\n```\nember install ember-cli-deploy-sentry-cli\n```\n\n\n## Usage\n\nTurn on `sourcemaps` generation in `ember-cli-build.js` config:\n```js\n{\n  sourcemaps: {\n    enabled: true,\n    extensions: ['js']\n  }\n}\n```\n\nAdd plugin config to your `config/deploy.js`:\n```js\n{\n  'sentry-cli': {\n    appName: 'sentry-app-name',\n    orgName: 'sentry-org-name',\n    authToken: process.env.SENTRY_AUTH_TOKEN,\n    urlPrefix: '', // if you need prefix for Sentry to catch like ~/assets\n    // url: 'https://your-custom-sentry-server.test/` // in case of self-hosted server\n  }\n}\n```\n\nOptionaly set revision type to `version-commit` to have unified versioning pattern:\n```js\n{\n  'revision-data': {\n    type: 'version-commit'\n  }\n}\n```\n\nLeave the rest for sentry-cli ;) Deploy! 🚀✌️\n\n## FAQ \u0026 Possible errors\n\n#### 1. `You do not have permission to perform this action`\nMake sure your authToken is present [https://sentry.io/settings/account/api/auth-tokens/](https://sentry.io/settings/account/api/auth-tokens/) and has following scopes: `org:read` and `project:releases`\n\n#### 2. `Could not determine any commits to be associated automatically.`\nYour application repository needs to be connected on Sentry to your ogranization account and connected with the project.\n\n#### 3. Your app's issues and not correctly related with app deploy version\nMake sure your app's `moudlePrefix` is equal to your Sentry `appName`, and your `revision-data` `type` in `config/deploy.js` is using the same versioning strategy. In most cases you should use `version-commit`\n\n## BONUS: Integrate your app with Sentry\n\n1. Install Sentry:\n\n`npm i @sentry/browser @sentry/integrations`\n\n2. Add sentry config to `config/environment.js` file\n\n```js\n// config/environment.js\n\n// Add following config\n{\n  sentry: {\n    dsn: 'your-app-dsn'\n  }\n}\n```\n\n3. Configure Sentry instance with defaults.\n**Remember to define `environment` and `release`**\n\n```js\n// app/sentry.js\n\nimport * as Sentry from '@sentry/browser';\nimport { Ember } from '@sentry/integrations/esm/ember';\nimport config from 'web-app/config/environment';\n\nconst sentryConfig = config.sentry || {};\n\nexport function startSentry() {\n  Sentry.init({\n    environment: config.environment,\n    release: `${config.modulePrefix}@${config.APP.version}`,\n    ...sentryConfig,\n    integrations: [new Ember()]\n  });\n}\n```\n\n4. Initialize Sentry at the begining of `app/app.js` file\n\n```js\n// app/app.js\n\nimport { startSentry } from './sentry';\n\nstartSentry();\n\n```\n\nMore info: https://simplabs.com/blog/2019/07/15/sentry-and-ember\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEmberExperts%2Fember-cli-deploy-sentry-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEmberExperts%2Fember-cli-deploy-sentry-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEmberExperts%2Fember-cli-deploy-sentry-cli/lists"}