-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
44 lines (43 loc) · 1.89 KB
/
.coderabbit.yaml
File metadata and controls
44 lines (43 loc) · 1.89 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
---
tone_instructions: "Be direct and concise. Focus on correctness of semver logic and conventional commit parsing."
reviews:
auto_review:
drafts: false
path_instructions:
- path: src/bumper.js
instructions: |
Core semver bumping logic. Review for:
- Correct semantic versioning calculations
- Proper handling of 'v' prefix preservation (v1.2.3 -> v1.2.4)
- Edge cases: no tags (defaults to 1.0.0), invalid semver, breaking changes
- Conventional commit parsing via conventional-recommended-bump
- Dev label must start with hyphen per semver spec
- path: src/cli.js
instructions: |
CLI entrypoint using minimist. Review for:
- Backward compatibility of deprecated aliases (repopath -> repo, bumpoverride -> bump)
- Correct option parsing and defaults
- Help text accuracy matching actual behavior
- path: src/index.js
instructions: |
ES module entrypoint. Review for correct default option merging.
- path: tests/**/*.js
instructions: |
Mocha/Chai tests. Review for coverage of:
- Manual bumps (major/minor/patch with various labels)
- Auto bumps from git (fix->patch, feat->minor, BREAKING CHANGE->major)
- Error cases (invalid semver, unreachable path, non-git folder, bad labels)
- Edge case: no existing tags
- path: Dockerfile
instructions: |
Review for:
- Minimal image size (node:slim base, apt cleanup)
- Security (non-root 'node' user, safe.directory config)
- Correct WORKDIR (/repo) and ENTRYPOINT
- path: .github/workflows/*.yml
instructions: |
GitHub Actions workflows. Review for:
- Correct trigger conditions
- Proper use of reusable workflows
- Security (minimal permissions)