Git v2 is available for GitHub repositories. To have Git v2 turned on for your organization, reach out to Omni support.
.omni/config.yaml file sets the severity of each pull request check. To add the file to a repository, see Add a configuration file.
Omni reads the file from the pull request’s commit. If a pull request changes the file, Omni uses the new version to check that pull request.
If the file has an error, the commit status fails and the checks don’t run. See The configuration file has an error.
Syntax
version is the one required property. Leave out checks, a single check, or models to use the default for that part.
Properties
Key names, check names, and severities are case-insensitive.Sets the severity of each check for every model in the repository. Use the check names as keys:
build, sync, and validation. If you don’t list a check, it uses its default severity.Overrides the repository-wide severities for specific models. Use each model’s path as a key.
Severity and defaults
A check’s severity controls what happens when the check fails.
Each check has a default severity:
Examples
Set a different severity for base branch commits
In this example, validation errors show as a warning on pull requests. On the base branch, a commit with validation errors fails the check, and Omni doesn’t pull it into the shared model..omni/config.yaml
Default settings
These are Omni’s default settings. If a sync or validation check fails, Omni warns you in its comment, and the commit status passes..omni/config.yaml
Set sync and validation to error
In this example, a failed sync or validation check fails the commit status. To block the merge, see Block merges on a failed check..omni/config.yaml
Override one model
In this example, validation is set toerror for omni/Marketing and stays at warn for every other model.
.omni/config.yaml

