Auto-Monitoring GitHub and GitLab Repositories
If your organization uses GitHub or GitLab as your code host, LinearB's Auto-Monitoring feature allows you to automatically track new repositories as they are created.
Updated
by Steven Silverstone
This feature requires admin permissions in LinearB.
LinearB's Auto-Monitoring feature ensures that repository data is synced into LinearB’s metrics platform without requiring manual updates, providing seamless integration and up-to-date insights.
Configuring Repository Auto-Monitoring
- Access Monitoring Rules:
- In the LinearB side menu, click Settings to open the Company Settings window.
- Navigate to the Git tab.
- Click the three-dot menu next to "Add Repositories" and select Monitoring Rules.

- Set Up Monitoring Rules:
- Define a regular expression (regex) to specify which repositories should be auto-monitored.
- To monitor all new repositories, use
.*
.
- To monitor all new repositories, use
- If there are repositories you want to exclude (e.g., documentation repos), add a separate regex to describe them in the exclusion field.
- Define a regular expression (regex) to specify which repositories should be auto-monitored.
- Ensure Token Access:
- Verify that your Git token has access to the repositories you want to monitor. If the token lacks permissions, LinearB cannot detect and sync those repositories.
- Select Repository Visibility Levels:
- Choose the visibility levels to monitor: private, internal, and/or public repositories.
- Configure Organizational Scope (GitHub Only):
- Select the organizations you want to include or exclude from auto-monitoring.
- To exclude an organization and all its repositories, uncheck it in the list that appears.
- Save Your Configuration:
- Click Save once you’re satisfied with your detection patterns, visibility levels, and organizational scope.

Important Notes
- New Repository Sync:
Allow up to 24 hours for newly added repositories to appear in LinearB. If they do not appear after this period, contact LinearB's support team for assistance. - Adding New Organizations:
New GitHub organizations will not be automatically synced to LinearB. To monitor repositories from new organizations, manually select the organization in the monitoring settings and configure it using the steps above. - Exclusion Precision:
Ensure that your exclusion rules are precise to avoid unintentionally monitoring irrelevant repositories.

Next Steps
After configuring auto-monitoring for repositories, ensure your PM tool data is also synced with LinearB to complete your setup. Follow the appropriate steps to integrate your project management tool for comprehensive tracking.
By enabling auto-monitoring, you can streamline repository management, maintain up-to-date metrics, and save time by reducing manual configuration efforts.
How did we do?
JIRA-based Coding Time