Company
Date Published
Author
Liz Krane
Word count
1238
Language
English
Hacker News points
None

Summary

At Sentry, they use GitHub integration to link issues, identify suspect commits, and suggest assignees who can resolve each issue, utilizing their own Integration Platform to create customized workflows and combine third-party tools within a repository. They recently released an official GitHub Action for creating Sentry releases, allowing developers to automate the process of creating new releases and deploying them to various environments. The workflow file defines environment variables, steps to run, and jobs that can be triggered by events such as push events to a specific branch. To authenticate with Sentry's API, developers need to create an internal integration token which is stored in GitHub secrets. This token is used to install the Sentry CLI, create a new release, finalize it, and deploy it to a specified environment. The workflow also demonstrates how to update Heroku's environment variable for the SENTRY_RELEASE and deploy the app to Heroku. Once the workflow completes, new events from the project can be associated with the latest release by triggering an error in the project, such as adding an Express route that throws an error. Additionally, developers can use pre-defined GitHub Actions created by others or create their own custom workflows using Sentry's command line interface and REST API.