Getting Started
Get started with Lens
Getting Started with Lens
Install the Lens App
Lens is available as an application for GitHub, GitLab, and Bitbucket. Install it on your repository:
- Visit the Lens app marketplace for your Git provider
- Click Install and authorize Lens
- Select which repositories Lens should monitor
- Confirm the installation
Lens will start analyzing pull requests immediately.
Your first AI code review
Open a pull request in one of your connected repositories. Lens analyzes the code and leaves comments on:
- Logic bugs or edge cases
- Anti-patterns or code smells
- Complexity hot spots
- Missing test coverage
These appear as PR comments before human reviewers see the diff.
Enable security scanning
Lens scans every PR against OWASP Top 10, known CVEs, and secret-leakage rules. To enable:
- Go to your Lens dashboard
- Click Security settings
- Toggle Scan for vulnerabilities and Scan dependencies
- Save
Now every PR will show security findings as blocking checks.
Set up the merge queue
The merge queue ensures main stays green:
- Go to Merge queue settings
- Toggle Enable merge queue
- Configure batch size (how many PRs to test together)
Now when you queue a PR to merge, Lens runs CI tests before merging.