Repository navigation
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
87 lines (81 loc) · 4.55 KB
/
Copy path.coderabbit.yaml
File metadata and controls
87 lines (81 loc) · 4.55 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
#
# Central CodeRabbit config for every repo of its owner. kleinbem/coderabbit is
# the source; sync-org.yaml copies it to kleinbem-dev/coderabbit. A repo's own
# .coderabbit.yaml replaces this file unless it sets `inheritance: true`, in
# which case it merges on top. The web UI settings don't apply while this file
# exists.
language: en-GB
tone_instructions: "Short and direct. Lead with the problem and the fix. No praise, no filler."
early_access: false
reviews:
profile: chill
high_level_summary: true
poem: false
in_progress_fortune: false
sequence_diagrams: false
review_status: true
# The CodeRabbit check is required: a review that errors must block, not pass.
fail_commit_status: true
collapse_walkthrough: true
auto_review:
enabled: true
# A skipped draft review passes the required check: a draft with auto-merge
# armed merges unreviewed the moment it goes ready. no-link: GitHub documents
# skipped as passing; nothing upstream to wait on.
drafts: true
# Never pause on a busy branch: a paused review reports "skipped", which
# passes the required check and lets the PR merge unreviewed (kleinbem#21).
auto_pause_after_reviewed_commits: 0
# Lock bumps, docs syncs and dependency updates: not worth the rate limit.
ignore_usernames:
- "kleinbem-bot[bot]"
- "dependabot[bot]"
# Opt-in: the free plan gives about one review per hour and repo, so only PRs
# labelled cr-review get one; the rest report skipped, which passes the gate.
# fleet-lint requires the label on risky paths; agent-ops covers the rest.
labels:
- "cr-review"
# Review-only PRs (bin/cr-full-review, coderabbit-steward) sit on review/*
# bases; without this the label isn't enough there and they need a comment.
base_branches:
- "review/.*"
# Fix pushes would each spend a review; ask with `@coderabbitai review` instead.
auto_incremental_review: false
# Generated or vendored files.
path_filters:
- "!**/flake.lock"
- "!**/Cargo.lock"
- "!**/package-lock.json"
- "!**/INFRASTRUCTURE.yaml"
- "!infra/*.json"
- "!traffic_data/**"
- "!governance-report.json"
- "!DASHBOARD.md"
path_instructions:
- path: "**"
instructions: |
Every workaround or fix for someone else's bug (patch, override, pin, disabled tests, blacklisted module, feature switched off, "drop once …") needs a comment linking the upstream issue or PR it waits on: a URL or owner/repo#123. Flag new or changed workarounds without one, and links that point at a closed or merged report (the workaround may be droppable). A comment that only mentions a workaround may say "no-link: <why>".
- path: "**/*.nix"
instructions: |
NixOS fleet config. Check especially:
- sops.secrets for a feature must be gated behind that feature's enable option; a secret for a disabled feature breaks activation.
- /var is tmpfs on every host: new service state needs an impermanence/persistence entry.
- No plaintext secrets; they belong in kleinbem-secrets (sops).
- Prefer upstream nixpkgs options over custom wrappers.
- path: "**/*.sh"
instructions: "Scripts run under `set -euo pipefail`: flag unbound variables and unquoted expansions."
- path: ".github/workflows/**"
instructions: "Third-party actions must be pinned by commit SHA. Secrets must not reach pull_request runs from forks; flag pull_request_target and self-hosted runners."
- path: "**/*.tf"
instructions: "OpenTofu. Watch for changes that force replacement or destroy existing resources, and for secrets in plain variables or outputs."
# Agent skills and agents copied from upstream projects (e.g. sveltejs/ai-tools)
# stay byte-identical to upstream. no-link: not a bug workaround; doc fixes go upstream.
- path: ".agents/skills/**"
instructions: |
Vendored from upstream projects and kept identical to upstream. Only flag security and permission problems: agent permission modes or tool grants, commands that run code, unpinned installs or downloads, hooks. Skip wording, links, code examples, markdown style and version notes.
- path: ".claude/agents/**"
instructions: |
Vendored from upstream projects and kept identical to upstream. Only flag security and permission problems: agent permission modes or tool grants, commands that run code, unpinned installs or downloads, hooks. Skip wording, links, code examples, markdown style and version notes.
chat:
auto_reply: true