mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
Scopes CodeRabbit to main, runs on every non-draft PR, enables sequence diagrams for controller/service flows, excludes build artifacts, and provides seven project-specific path_instructions: - docs/services/*.md: verify op counts match docs/services/index.md - service *Controller.java: docs updates, AWS error/wire-format parity, thread-safety on shared state - CHANGELOG.md: skip (semantic-release owned) - SDK compatibility tests: prefer TestFixtures.java reuse - pom.xml: dependency hygiene, Quarkus BOM alignment - Dockerfile*: multi-stage, pinned tags, layer hygiene - *.sh: quoted expansions, strict mode, shellcheck context The config is inert until the CodeRabbit GitHub App is installed on the repo. Profile remains chill and request_changes_workflow stays false, the bot suggests but never submits Request Changes reviews.
60 lines
2.9 KiB
YAML
60 lines
2.9 KiB
YAML
reviews:
|
|
poem: false
|
|
sequence_diagrams: true
|
|
auto_review:
|
|
drafts: false
|
|
base_branches:
|
|
- main
|
|
path_filters:
|
|
- "!**/target/**"
|
|
- "!**/*.lock"
|
|
- "!compatibility-tests/sdk-test-*/target/**"
|
|
path_instructions:
|
|
- path: "docs/services/*.md"
|
|
instructions: |
|
|
Verify the operation count listed for this service matches the row in
|
|
docs/services/index.md. Counts come from controller dispatch handlers
|
|
(not @Path annotation totals), so one @Path can serve multiple AWS
|
|
operations via query-string or header markers. If a new operation is
|
|
added to the table, check the corresponding Java handler exists in
|
|
src/main/java/io/github/hectorvent/floci/services/.
|
|
- path: "src/main/java/io/github/hectorvent/floci/services/**/*Controller.java"
|
|
instructions: |
|
|
When adding a new @Path handler or AWS operation branch:
|
|
1. Check that the corresponding docs/services/{service}.md Supported
|
|
Operations table and the row in docs/services/index.md are updated
|
|
in the same PR. The repo has a history of doc drift; flag any new
|
|
operation that lacks a docs update.
|
|
2. Verify error responses map to the correct AWS error code, HTTP
|
|
status, and wire format (XML for S3/SQS/SNS/IAM, JSON for most
|
|
others). Real AWS clients parse these strictly.
|
|
3. Flag any shared mutable state (static fields, singleton beans,
|
|
in-memory stores) that is not thread-safe. Prefer ConcurrentHashMap
|
|
or explicit synchronization.
|
|
- path: "CHANGELOG.md"
|
|
instructions: |
|
|
Generated/maintained via semantic-release. Skip review of formatting
|
|
and content; only flag entries that reference non-existent commits or
|
|
issue numbers.
|
|
- path: "compatibility-tests/sdk-test-*/**/*Test.java"
|
|
instructions: |
|
|
Prefer reusing fixtures from TestFixtures.java over duplicating setup
|
|
inline. Flag hard-coded credentials, region strings, or endpoint URLs
|
|
that should live in shared helpers.
|
|
- path: "pom.xml"
|
|
instructions: |
|
|
Review dependency changes for version conflicts, transitive upgrades,
|
|
and license compatibility. Flag new dependencies without clear
|
|
justification. Ensure the Quarkus BOM drives version alignment for
|
|
Quarkus extensions rather than pinning individual versions.
|
|
- path: "**/Dockerfile*"
|
|
instructions: |
|
|
Prefer multi-stage builds, pinned base image tags (never :latest),
|
|
and minimal final layers. Flag any RUN steps that could be combined
|
|
or that leave package manager caches in the image.
|
|
- path: "**/*.sh"
|
|
instructions: |
|
|
Flag unquoted variable expansions, missing `set -euo pipefail`, and
|
|
portability issues. shellcheck runs automatically but add context on
|
|
intent where a warning is intentionally suppressed.
|