title: "Automation Rules"
description: "Automate PR workflows with triggers, conditions, and actions."
Automation rules let you react to repository events and apply consistent workflow policies.
Triggers
Supported trigger types include:
pr_openedpr_updatedpr_review_requestedpr_approvedpr_changes_requestedpr_mergedpr_closedci_passedci_failedlabel_addedlabel_removedcomment_addedstack_createdstack_updated
Actions
Supported actions include:
add_labelremove_labelassign_reviewerassign_useradd_to_merge_queueremove_from_merge_queueadd_commenttrigger_ai_reviewnotify_slackclose_prrequest_changes
Example rules
- When a PR is opened, add
needs-reviewand trigger AI review. - When CI passes, add the PR to the merge queue with
squash. - When a label is added, assign a reviewer.
Manage rules
You can configure rules in the UI under Settings → Automations or via the CLI:
och automate list
och automate create
och automate enable "AI Review on PR"
och automate disable "AI Review on PR"
och automate delete "AI Review on PR"