-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
59 lines (56 loc) · 2.56 KB
/
.coderabbit.yaml
File metadata and controls
59 lines (56 loc) · 2.56 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
language: "en"
early_access: true
tone_instructions: |
Be casual, friendly, and egoless, using approachable, clear, and conversational language that feels warm and engaging.
Keep the writing light, concise, and positive, as if speaking to a peer.
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: true
path_filters:
- "!**/*.mod"
- "!**/*.sum"
- "!**/openapi.yaml"
- "!**/openapi.cloud.yaml"
- "!api/client/**"
- "!api/spec/patches/**"
- "!**/node_modules/**"
- "!**/ent/db/**"
- "!**/*.lock"
- "!**/*.log"
path_instructions:
- path: "**/*.go"
instructions: |
In general when reviewing the Golang code make readability and maintainability a priority, even potentially suggest restructuring the code to improve them.
Performance should be a priority in critical code paths. Anything related to event ingestion, message processing, database operations (regardless of database) should be vetted for potential performance bottlenecks.
- path: "**/*.tsp"
instructions: |
Review the TypeSpec code for conformity with TypeSpec best practices. When recommending changes also consider the fact that multiple codegeneration toolchains depend on the TypeSpec code, each of which have their idiosyncrasies and bugs.
The declared API should be accurate, in parity with the actual implementation, and easy to understand for the user.
- path: "**/*_test.go"
instructions: |
Make sure the tests are comprehensive and cover the changes. Keep a strong focus on unit tests and in-code integration tests.
When appropriate, recommend e2e tests for critical changes.
- path: "**/*.md"
instructions: |
"Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"
- path: "**/*.md"
instructions: |
Review markdown documentation with these guidelines:
- Structure: Ensure consistent heading hierarchy and document organization
- Content: Verify accuracy of technical details, code examples, and API references
- Quality: Check for spelling, grammar, and broken links
- Completeness: Confirm all features and changes are properly documented
- Style: Follow project's documentation style guide and formatting conventions
auto_review:
enabled: true
ignore_title_keywords:
- "WIP"
drafts: false
base_branches:
- ".*" # review against all branches
chat:
auto_reply: true