Types of Custom Context
There are three types of custom context:Custom Rules
You can define rules such as āuse loops instead of list comprehensionā, and Greptile will enforce this rule across your PRs. Examples:Style Guides & Docs
You can point Greptile to your existing style guides and docs, and Greptile will use those as context when reviewing your PRs.Other Context
There is also free-form space for you to explain any idiosyncracies with your team or codebase to personalize Greptile. Here is an example:Scopes
Each type of context, rules, guides, and āotherā, can be scoped to apply to specific repos and specific file patterns. For example, I might want to enforce use ofprop types
but only in acme/web_app
and only in files matching the pattern src/frontend/*.tsx
.
If you donāt explicitly define a scope, Greptile will intelligently determine when the rule/stylegude etc. should be applied.
Learning
Greptile can infer rules by observing other developers in your team commenting on PRs, as well as from interaction data such as replies to Greptile comments and š/š reactions to Greptile comments. Greptileās latest learnings can be found on the custom context page on the Greptile dashboard.Auto-Enable Learnings
By default, learnings are automatically enabled. You can disable this feature by toggling theAUTO-ENABLE LEARNINGS
switch in the top right of the Custom Context page. When disabled, new learnings will still be generated but wonāt be automatically applied to your code reviews until you manually enable them.