-
Notifications
You must be signed in to change notification settings - Fork 257
/
Copy path.coderabbit.yaml
61 lines (61 loc) · 2.75 KB
/
.coderabbit.yaml
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
language: "en"
early_access: false
reviews:
high_level_summary: false
poem: false
review_status: false
collapse_walkthrough: true
changed_files_summary: false
path_instructions:
- path: "**/*.mdx"
instructions: |
"ALWAYS review Markdown content THOROUGHLY with the following criteria:
- First, check the frontmatter section at the top of the file:
1. For regular pages, ensure ALL these fields are present and not empty:
```yaml
---
title: [non-empty]
lang: [non-empty]
description: [non-empty]
topic: [non-empty]
personas: [non-empty array]
categories: [non-empty array]
content_type: [valid type]
---
```
2. For landing pages (index.mdx or files with <Cards>), only these fields are required:
```yaml
---
title: [non-empty]
lang: [non-empty]
description: [non-empty]
topic: [non-empty]
---
```
3. If any required fields are missing or empty, comment:
'This file appears to be missing required metadata. You can fix this by running:
```bash
pnpm metadata-batch-cli:dry "path/to/this/file.mdx"
```
Review the changes, then run without :dry to apply them.'
- Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
- Avoid gender-specific language and use the imperative form.
- Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
- Ensure proper nouns are capitalized in sentences.
- Apply the Oxford comma.
- Use proper title case for buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
- Use correct spelling and grammar at all times (IMPORTANT).
- For H1, H2, and H3 headers:
1. Use sentence case, capitalizing only the first word.
2. Preserve the capitalization of proper nouns, technical terms, and acronyms as defined in the 'nouns.txt' file located in the root directory of the project.
3. Do not automatically lowercase words that appear in the 'nouns.txt' file, regardless of their position in the header.
- Flag any headers that seem to inconsistently apply these rules for manual review.
- When reviewing capitalization, always refer to the 'nouns.txt' file for the correct capitalization of proper nouns and technical terms specific to the project.
"
auto_review:
enabled: true
drafts: false
base_branches:
- "main"
chat:
auto_reply: true