-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
124 lines (110 loc) · 3.96 KB
/
.coderabbit.yaml
File metadata and controls
124 lines (110 loc) · 3.96 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# CodeRabbit Pro Configuration for AI-Assisted DevOps Framework
# https://docs.coderabbit.ai/guides/review-instructions
language: "en-US"
early_access: false
tone_instructions: |
This is an AI-Assisted DevOps Framework with comprehensive automation tools.
Focus on shell script quality, security best practices, and DevOps automation patterns.
Zero Technical Debt achieved - maintain A-grade ratings across all quality tools.
reviews:
profile: "chill"
high_level_summary: true
poem: true
review_status: true
collapse_walkthrough: false
sequence_diagrams: true
# Abort in-progress reviews when PR is closed/merged to free up quota.
# GH#3827: reduces wasted review cycles on PRs that are already resolved.
abort_on_close: true
# Auto-review settings — tuned to reduce rate-limit pressure (GH#3827).
# When many PRs are open simultaneously, CodeRabbit's hourly commit review
# limit is exhausted. These settings reduce the review volume per PR:
# - auto_pause_after_reviewed_commits: pause after 3 commits (default 5)
# so each PR consumes fewer review slots before requiring manual resume
# - auto_incremental_review: keep enabled so pushes get reviewed, but the
# pause threshold above limits how many times per PR
# - ignore_title_keywords: skip WIP/draft-like PRs that aren't ready
# - ignore_usernames: skip bot-authored PRs (dependabot, renovate) that
# have their own security review pipelines
auto_review:
enabled: true
drafts: false
auto_incremental_review: true
auto_pause_after_reviewed_commits: 3
ignore_title_keywords:
- "WIP"
- "DO NOT REVIEW"
- "[skip review]"
ignore_usernames:
- "dependabot[bot]"
- "renovate[bot]"
labels:
- "!no-review"
# Request changes for critical issues — this is the setting that controls
# whether CodeRabbit submits formal APPROVED/CHANGES_REQUESTED reviews.
# Without this, CodeRabbit only posts comments (no formal review).
# GH#3932: Confirmed via schema that review_status only controls status
# messages in walkthrough comments, NOT formal review submission.
request_changes_workflow: true
# GH#3932: Enable commit status checks so review-bot-gate-helper.sh can
# detect CodeRabbit activity via status API when formal reviews are missing
# due to rate limiting. This provides a fallback signal for the merge gate.
commit_status: true
# Exclude certain files from review — expanded to reduce review scope
# and conserve rate-limit budget (GH#3827).
path_filters:
- "!.agents/tmp/**"
- "!.agents/memory/**"
- "!*.log"
- "!*.tmp"
- "!*.lock"
- "!package-lock.json"
- "!yarn.lock"
- "!pnpm-lock.yaml"
- "!todo/tasks/*-brief.md"
# Path-specific instructions
path_instructions:
- path: "providers/*.sh"
instructions: |
Provider helper scripts - focus on:
- Consistent API patterns
- Proper error handling
- Security of credential handling
- Input validation
- path: ".agents/scripts/*.sh"
instructions: |
Automation scripts - focus on:
- Reliability and robustness
- Clear logging and feedback
- Proper exit codes
- Error recovery mechanisms
- path: "templates/*.sh"
instructions: |
Template scripts - focus on:
- Security (prompt injection protection)
- Flexibility and reusability
- Clear documentation
- Safe defaults
- path: "**/*.ts"
instructions: |
TypeScript files - focus on:
- Type safety and proper typing
- Error handling patterns
- Clean code principles
# Enable static analysis tools
tools:
shellcheck:
enabled: true
markdownlint:
enabled: true
hadolint:
enabled: true
actionlint:
enabled: true
yamllint:
enabled: true
gitleaks:
enabled: true
chat:
auto_reply: true