Skip to main content

How it works

Incident Detection automatically creates incidents when it detects problematic deployments. Incident Detection is enabled and pre-configured by default for every workspace. You can disable or customize the detection rules as needed.

Rollback detection

Detects when a deployment reverts to a previously deployed version. Sweetr compares the commit history between deployments to identify rollbacks automatically.
Incident fieldValue
Cause deploymentThe first deployment after the version that was rolled back to.
Fix deploymentThe rollback deployment itself.
Detected atThe time of the rollback deployment.
For example, given deployment versions A → B → C → D -> B²:
  • Cause deployment: C (the first deployment after B, where the problem was introduced)
  • Fix deployment: (the rollback deployment itself)

Hotfix detection

Detects incidents based on patterns in pull request titles, branch names, or labels. Configure regular expressions to match your team’s conventions.
PatternDescription
PR title regexMatch pull request titles (e.g., hotfix, emergency).
Branch regexMatch branch names (e.g., ^hotfix/.+).
PR label regexMatch pull request labels.
Incident fieldValue
Cause deploymentThe deployment immediately before the hotfix deployment.
Fix deploymentThe deployment containing the hotfix pull request.
Detected atThe time of the hotfix deployment.

Revert detection

Detects when a pull request is a revert of a previous change.
Incident fieldValue
Cause deploymentThe deployment that contained the original (now-reverted) pull request.
Fix deploymentThe deployment containing the revert pull request.
Detected atThe time of the revert deployment.

Benefits

Improves data accuracy

More accurate failure rate on your DORA metrics. Remove manual work from incident reporting.