CUSTOM WORKFLOWS & AUTOMATION
Define review conditions, automated approvals, and routing gates.
GitRabbit Custom Workflows allow you to adapt review actions based on metadata like files changed, branch name, or PR size. Send structural changes (e.g., database schema modifications) to senior engineers, auto-approve documentation fixes, and trigger deep static testing for code targeting production.
Key_Capabilities
Conditional Review Gates
Change review filters and models depending on which directory has modifications.
Automated Merging
Configure safe branches (like translation updates) to auto-merge when GitRabbit confirms zero style or security issues.
Reviewer Assignee Mapping
Automatically assign the correct human reviewers based on the impact scope evaluated by the AI summary.
Setup_Sequence
Open Workflows Panel
Access repository Settings in the GitRabbit dashboard and choose Custom Workflows.
Create a Trigger Rule
Specify files or author targets (e.g., changes to 'db/**/*.sql').
Define Actions
Select options such as adding specific labels, assigning reviews, or requesting secondary approvals.
Code_Example
# Custom Review Pipelines
workflows:
- name: "Database Protections"
trigger:
files: ["db/**/*.sql", "models/**/*.ts"]
actions:
- add_labels: ["database", "needs-migration-audit"]
- request_reviewers: ["senior-dba-team"]
- severity_override: strict
- name: "Auto-Approve Docs"
trigger:
files: ["**/*.md", "docs/**/*"]
actions:
- auto_approve: true
- auto_merge: falsePro_Tips
- ✦Set up an auto-approve workflow for translations (.json files) to speed up localization pipelines.
- ✦Ensure workflows are tested on staging branches before applying them to critical release structures.