Before you start
You need:- Sentry connected, with the projects you want to watch.
- GitHub connected, with the GitHub App granted access to the repositories behind those projects.
- Slack connected, if you want the summary in a channel.
Create the automation
1
Pick the template
Open Automations. Under Start from a template, filter by Bug triage and click Alert on critical Sentry issues. The editor opens with the trigger, instructions, and the Sentry, GitHub, and Slack connectors filled in. See Templates.
2
Choose the Sentry projects
The template adds a Sentry New issue trigger. Under Project, pick the projects to watch, up to 100.
3
Exclude environments
Under Environment, clear the environments that should not start a run, such as
staging or development. The default is All environments. Environments that appear in Sentry later are included.4
Add repositories
Under Repositories, click Add repository and pick the code behind the projects. The first one is the agent’s working directory.
5
Add a Slack channel
Under Notifications, click Add notification, then Post to Slack, and pick the channel for the summaries.
6
Choose a model and save
Click Choose model in the instructions toolbar, pick a model, then click Save. See Models and harnesses.
Trigger options
The Sentry trigger has three events:
To narrow what starts a run, select fewer projects or exclude more environments. See Triggers.
Adjust the instructions
The template tells the agent to:- Rate the issue from SEV-1 to SEV-3, and stay quiet on a complete false positive.
- Post a short message with the severity, what broke, the suspected commit and author, and who is affected.
- Add the root cause and proposed fix in the thread, open a pull request, and link it there.