Writing code review rules from scratch can be tedious. Mesrai can analyze your team’s review history and automatically suggest rules based on the patterns it finds.
How it works
- Go to Code Review Settings → Mesrai Rules
- Click Generate Mesrai Rules
- Mesrai scans 3 months of code review history in your repository
- It identifies recurring feedback patterns and coding preferences
- Generates rule suggestions tailored to your team
What happens next
- Review the generated suggestions — they’re not active yet
- Import the rules that match your team’s needs
- Customize them if needed before activating
- Only imported rules are enforced during code reviews
Continuous learning
After the initial setup, Mesrai generates new rule suggestions weekly as your team’s coding style evolves. Check back regularly for new suggestions.
Requirements
- At least 3 months of review history in the repository
- Regular code review activity for better pattern detection
- Repository access with proper permissions
For details, see Automatic Rules Generation.