Automation Rules
Automation rules let you react to repository events and apply consistent workflow policies.
Triggers
Section titled “Triggers”Supported trigger types include:
pr_openedpr_updatedpr_review_requestedpr_approvedpr_changes_requestedpr_mergedpr_closedci_passedci_failedlabel_addedlabel_removedcomment_addedstack_createdstack_updated
Actions
Section titled “Actions”Supported actions include:
add_labelremove_labelassign_reviewerassign_useradd_to_merge_queueremove_from_merge_queueadd_commenttrigger_ai_reviewnotify_slackclose_prrequest_changes
Example rules
Section titled “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
Section titled “Manage rules”You can configure rules in the UI under Settings → Automations or via the CLI:
och automate listoch automate createoch automate enable "AI Review on PR"och automate disable "AI Review on PR"och automate delete "AI Review on PR"