Exclude repositories from review
Make sure no code from chosen repositories leaves an engineer's machine: no reviews and no context scans.
Excluding a repository keeps LeoPrevent out of it anywhere in your organisation: its turns are not reviewed and the agent gets no advice there. No code from an excluded repository leaves an engineer's machine. The plugin sends only the repository's address, to check whether it is excluded.
Available to Admins and Owners, on the Org or a group. Workspaces inside inherit the list.
Exclude repositories#
- 1Open the list
In Settings, open Controls and select the Repositories LeoPrevent doesn't review row.
- 2Add repositories
Under Exclude more, enter a repository or a pattern, such as a whole organisation like
github.com/example/*, and select Add, or search the repositories at this level and tick them. - 3Save
Select Save. Each engineer's plugin picks up the change shortly after.
An excluded repository is listed under Excluded on Repository placement, in Settings. Findings already made stay readable.
Check it worked#
Make a change in the repository with an agent. When the turn ends, this notice appears once per session:
LeoPrevent: your organisation's policy excludes this repository from review, so nothing from this turn was sent or reviewed.Once your organisation excludes any repository, a turn whose repository the plugin cannot check, because it cannot reach LeoPrevent, is not sent or reviewed either, and the plugin says so. See Terminal messages.
Include a repository again#
Remove its pattern from the list and save. Its turns are reviewed again, and the repository waits in Needs a home on Repository placement until it is placed in a workspace.
Exclude files in one repository#
To keep some files of a repository out of review while the rest is reviewed, open the repository's drawer on Repositories and select Add beside Excluded files. Enter one pattern per line, from the repository root, such as prototypes/** for a folder or **/*.stories.tsx for a file type, then select Done, then Save. Matching files are never sent for review.
Available to Admins and Owners, once the repository is in a workspace.