-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
136 lines (125 loc) · 6.09 KB
/
.coderabbit.yaml
File metadata and controls
136 lines (125 loc) · 6.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
reviews:
profile: chill
high_level_summary: true
auto_review:
base_branches:
- "main"
- "release/.*"
pre_merge_checks:
docstrings:
threshold: 65
path_instructions:
- path: "apps/**"
instructions: >
apps/** directory contains a demo application for testing purposes.
It can be used as a reference for SDK usage examples.
# ─────────────────────────────────────────────────────────
# DOCS HIERARCHY & WORKFLOW
# ─────────────────────────────────────────────────────────
# Latest rendered docs for current minor – GENERATED ONLY
- path: "docs/live/**"
instructions: >
This folder contains the latest Mintlify documentation for the CURRENT minor
version, using SEO-friendly paths (e.g. "docs/getting-started/welcome").
These files are generated/updated by the Codex GitHub Action, NOT manually.
When reviewing a PR:
- If a contributor edits files under docs/docs/** directly, ask them to revert
those changes and instead update the corresponding draft under docs/draft/docs/**.
- Do NOT suggest manual edits here; suggest editing drafts and letting automation
regenerate docs/docs/**.
- The release process for a new minor is:
1) Copy the current docs/docs/** into docs/v/{previous-minor}/** to freeze them.
2) Update docs/docs/** based on docs/draft/docs/** and the code changes.
# Frozen archived docs for old minors – NEVER EDIT
- path: "docs/live/docs/v/**"
instructions: >
This folder contains frozen, archived documentation for previous minor versions,
e.g. docs/v/0.1/**, docs/v/0.2/**.
These are historical snapshots and must NEVER be edited.
When reviewing a PR:
- If any file under docs/v/** is modified, treat it as a mistake and ask the author
to revert. Explain that archived docs are read-only.
- If authors want to fix or improve docs, they should work in docs/draft/docs/**
and let the release/automation flow handle new minors.
# Drafts – THIS is where humans should edit docs
- path: "docs/draft/docs/**"
instructions: >
This folder holds the draft/source docs that humans are expected to edit.
When authors want to add or change documentation, they should do it here.
The Codex workflow uses these drafts, together with the code diff, to generate
the latest docs under docs/live/docs/**.
As a reviewer:
- Encourage contributors to add/update content here instead of docs/live/docs/**.
- It is fine to do structural/content feedback here (clarity, examples, etc).
# Blogs – human edited, not touched by Codex
- path: "docs/live/blogs/**"
instructions: >
This folder contains blog posts (e.g. "docs/live/blogs/november-2025/...").
These are NOT managed by the Codex docs automation.
Human-authored changes here are expected and allowed.
As a reviewer, ensure the changes look intentional and not like bulk/automated
rewrites of the entire blog tree.
# Mintlify navigation config
- path: "docs/live/docs.json"
instructions: >
Mintlify navigation configuration.
Important structure:
- dropdowns[].dropdown == "Documentation":
- Contains a "versions" array.
- Latest version entry: "version": "vX.Y (latest)", "default": true, with
paths like "docs/live/docs/getting-started/welcome" and "updates" (NO "v/X.Y" prefix).
- Older versions: "version": "v0.2", "version": "v0.1", etc., with paths
like "docs/live/docs/v/0.2/getting-started/welcome".
- dropdowns[].dropdown == "Blog":
- Contains blog groups (e.g. "blog/november-2025/introducing-frontmcp").
Review guidelines:
- Do NOT suggest editing the Blog dropdown unless the PR explicitly adds/changes blogs.
- Ensure latest version uses non-versioned "docs/..." paths, and older versions
use "docs/v/{minor}/..." paths.
- If you see changes that try to route archived versions away from docs/v/**,
flag that as incorrect.
# Generic docs catch-all (for anything not covered above)
- path: "docs/**"
instructions: >
Repository documentation for the SDK, using MDX and hosted by Mintlify.
See more specific rules for:
- docs/live/docs/** (latest rendered docs, automation-only)
- docs/live/docs/v/** (archived versions, read-only)
- docs/draft/docs/** (human-editable drafts)
- docs/live/blogs/** (blogs, human edited)
- docs/draft/blogs/** (blogs, human edited)
- docs/live/docs.json (Mintlify navigation)
- docs/draft/docs.json (Mintlify navigation)
# SDK libs
- path: "libs/**"
instructions: >
Contains publishable SDK libraries.
Review for API correctness, breaking changes, and consistency with docs.
When public APIs change, ensure there is a matching docs/draft/docs/** update
(not direct edits under docs/docs/**).
# SDK Plugins
- path: "plugins/**"
instructions: >
Contains publishable SDK plugins.
Review for API correctness, breaking changes, and consistency with docs.
When public APIs change, ensure there is a matching docs/draft/docs/** update
(not direct edits under docs/docs/**).
path_filters:
- "!**/dist/**"
- "!**/build/**"
- "!**/coverage/**"
- "!**/.next/**"
- "!**/.nuxt/**"
- "!**/.svelte-kit/**"
- "!**/.turbo/**"
- "!**/.swc/**"
- "!**/.parcel-cache/**"
- "!**/node_modules/**"
- "!**/.yarn/**"
- "!**/.pnpm-store/**"
- "!**/*.min.{js,css}"
- "!**/*.map"
- "!**/public/**"
- "!**/*.svg"
- "!**/*lock*.{json,yaml,yml}"