Skip to content

Commit 3b314ac

Browse files
committed
chore(review): point CodeRabbit at the Effect services guide
CodeRabbit uses `docs/internals/effect-services.md` only when its guideline discovery picks it. Of 20 recent reviews of pull requests that changed server, package, or infra TypeScript and listed the guidelines they used, 3 left the guide out. Map the guide to the TypeScript under `apps`, `packages`, and `infra`, and add a path instruction for those paths that names it. Path instructions always reach reviews of matching files, so each one is told to apply the guide; the mapping brings in its text. The guide stays the only copy of the rules.
1 parent 83b5dd0 commit 3b314ac

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.coderabbit.config.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,18 @@ export default defineConfig({
1212
// (see scripts/lib/reference-repos.ts). Nothing imports from them.
1313
"!.repos/**",
1414
],
15+
path_instructions: [
16+
{
17+
path: "{apps,packages,infra}/**/*.ts",
18+
instructions: "Hold changed code to the rules in docs/internals/effect-services.md.",
19+
},
20+
],
21+
},
22+
knowledge_base: {
23+
code_guidelines: {
24+
filePatterns: [
25+
{ files: "docs/internals/effect-services.md", applyTo: "{apps,packages,infra}/**/*.ts" },
26+
],
27+
},
1528
},
1629
});

0 commit comments

Comments
 (0)