mergeguide init creates one for you at
.mergeguide/config.yaml, along with a sample custom-policy file.
Where config lives
MergeGuide looks for configuration in this order:.mergeguide/config.yaml(project).mergeguide.yaml(project, alternate location)~/.mergeguide/config.yaml(user-global)
The default config
mergeguide init writes this starting configuration:
.mergeguide/config.yaml
| Key | Description |
|---|---|
version | Config schema version. |
fail_mode | closed blocks on blocking findings; controls how MergeGuide behaves when a check fails. |
enforcement_mode | graduated applies enforcement progressively across your workflow layers. |
policies.use_defaults | Whether to run MergeGuide’s default policy set. |
policies.custom_dir | Directory holding your custom policy files. |
This page documents the keys created by
init. The full configuration-key
reference — including every optional key, its type, default, and precedence — is
being expanded in Configuration keys. Until that page is
complete, treat the keys above as the verified set and add new keys only after
confirming them against the running CLI.Custom policies
init also creates a sample custom-policy file at
.mergeguide/policies/custom.yaml. Policies in custom_dir are loaded alongside
the defaults:
.mergeguide/policies/custom.yaml
Next steps
Policies & frameworks
Choose which policies and frameworks apply.
Thresholds
Decide what severity blocks a commit or a merge.