Creating Teams
Learn how to create and configure teams for collaborative code review workflows.
Prerequisites
Before creating a team, ensure you have:
- Active Mesrai account
- Subscription plan (Starter or higher)
- Repository access (optional, can add later)
Creating Your First Team
Step 1: Access Teams Page
- Log in to your Mesrai dashboard
- Click Teams in the sidebar
- Click Create Team button
Step 2: Basic Information
Provide team details:
Team Name (required)
- Clear, descriptive name
- Examples: “Frontend Team”, “Backend Engineers”
Team Description (optional)
- Brief purpose or scope
- Visible to all members
Example:
Name: Mobile Engineering
Description: iOS and Android development teamStep 3: Initial Settings
Configure team preferences:
Default Role for New Members
- Owner (full control)
- Admin (management access)
- Member (read access)
Notification Settings
- Email notifications
- Slack integration
- In-app alerts
Step 4: Add Team Members
Invite initial members:
- Enter email addresses
- Assign roles
- Add invitation message
- Send invitations
Can be done later if preferred.
Step 5: Connect Repositories
Link repositories to team:
- Click “Connect Repository”
- Select from your GitHub organizations
- Choose specific repos
- Set access permissions
- Save connections
Step 6: Review and Create
Review configuration:
- Team name and description
- Member invitations
- Connected repositories
- Settings
Click Create Team to finish.
Team Configuration
Notification Preferences
Configure how team is notified:
notifications:
email:
enabled: true
events:
- member_joined
- pr_reviewed
- high_token_usage
slack:
enabled: true
webhook_url: https://hooks.slack.com/...
channel: "#engineering"
in_app:
enabled: trueRepository Settings
Control repository access:
Access Levels
- Read: View code and reviews
- Write: Trigger reviews manually
- Admin: Manage repository settings
Auto-Review Settings
auto_review:
enabled: true
on:
- pull_request
- push_to_main
exclude_branches:
- staging
- developTeam Limits
Understand plan limits:
| Plan | Max Teams | Members/Team | Repos/Team |
|---|---|---|---|
| Starter | 1 | 5 | 10 |
| Pro | 3 | 15 | 50 |
| Team | Unlimited | 50 | 200 |
| Enterprise | Unlimited | Unlimited | Unlimited |
Best Practices
1. Clear Team Structure
Organize teams by:
- Product: Frontend, Backend, Mobile
- Project: Project A, Project B
- Function: DevOps, QA, Security
2. Descriptive Names
Use clear naming conventions:
- ✅ “iOS Engineering Team”
- ✅ “Backend API Team”
- ❌ “Team 1”
- ❌ “Dev Group”
3. Start Small
Begin with core members:
- 3-5 initial members
- Add more as team grows
- Test workflows first
4. Document Guidelines
Create team documentation:
- Code review standards
- Response time expectations
- Escalation procedures
- Communication channels
Team Templates
Use templates for common setups:
Startup Template
team:
name: Engineering
members: 3-10
repositories: all
roles:
- 1 owner
- 2 admins
- rest membersEnterprise Template
team:
name: Platform Engineering
members: 20-50
repositories: by-domain
roles:
- 2 owners
- 5 admins
- rest members
settings:
sso_required: true
audit_logging: trueMigrating Existing Teams
Import from other platforms:
From GitHub Teams
- Export GitHub team members
- Create Mesrai team
- Bulk invite members
- Connect repositories
- Map permissions
From GitLab Groups
- List GitLab group members
- Create equivalent Mesrai team
- Invite members with roles
- Link repositories
Managing Multiple Teams
Team Hierarchy
Organize related teams:
Organization
├── Frontend Team
│ ├── Web Team
│ └── Mobile Team
├── Backend Team
│ ├── API Team
│ └── Database Team
└── DevOps TeamCross-Team Collaboration
Enable collaboration:
- Shared repositories across teams
- Cross-team member access
- Unified analytics dashboard
- Consolidated billing
Troubleshooting
Can’t Create Team
Problem: “Create Team” button disabled
Solutions:
- Check subscription plan limits
- Verify account permissions
- Complete account setup
- Contact support
Members Can’t See Team
Problem: Invitees don’t see team after accepting
Solutions:
- Verify invitation was accepted
- Check member’s email matches invitation
- Ensure member logged in
- Refresh dashboard
Repository Connection Failed
Problem: Can’t connect repository to team
Solutions:
- Verify GitHub/GitLab access
- Check organization permissions
- Ensure repository isn’t already connected
- Re-authenticate connection
Next Steps
API Reference
Create teams programmatically:
POST /v1/teams
{
"name": "Engineering Team",
"description": "Main engineering team",
"settings": {
"defaultRole": "MEMBER",
"autoReview": true
}
}Response:
{
"id": "team_123",
"name": "Engineering Team",
"createdAt": "2025-01-15T10:30:00Z",
"memberCount": 1,
"owner": "user@example.com"
}Support
Need help creating teams?