Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .auto-resolution/.coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
reviews:
auto_review:
base_branches:
- ".*"

profile: assertive
request_changes_workflow: false
review_details: true
collapse_walkthrough: false
sequence_diagrams: false
estimate_code_review_effort: false
auto_apply_labels: true
auto_assign_reviewers: false
poem: false

path_instructions:
- path: "*"
instructions: >-
Focus on providing constructive criticism. Whenever you see a
suboptimal approach, suggest more idiomatic or robust alternative(s).
Flag potential footguns. Suggest FP alternatives to mutable/imperative
code. Point out architectural flaws like leaky abstractions, tight
coupling, wrong level of abstraction, poor type modeling,
over-abstraction, unclear domain boundaries. Code should generally be
organized based on business concerns rather than technical aspects -
suggest improvements if you find violations. Point out gaps in test
coverage but suggest tests that are not too coupled to the
implementation and actually test domain invariants and business logic

- path: "**/*.md"
instructions: >-
Focus on the contents of the docs and not on cosmetic things like
markdown formatting. We use markdown files for various docs including
but not limited to guidelines for AI contributors (AGENTS.md), project
overview and instructions for human contributors (README.md), and
topic-focused references under docs/ (cqrs.md, sqlx.md, ttdd.md).
Think about the target audience of a document when deciding what
comment to leave. For instructions, suggest better rules and
guidelines and point out missing instructions. For topic references,
suggest improvements that would make non-obvious framework behavior or
pitfalls easier to discover. In all cases, flag needless bloat, prefer
clear concise writing, and consider the structure of the document and
order of the sections
12 changes: 12 additions & 0 deletions .auto-resolution/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# shellcheck disable=SC2148

if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
URL=https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc
HASH=sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4=
source_url "$URL" "$HASH"
fi

watch_file flake.lock
watch_file flake.nix

use flake . --show-trace
10 changes: 10 additions & 0 deletions .auto-resolution/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Motivation

<!-- Why is this change needed? Link the issue/ADR it advances. State the problem
and the desired end state, not the diff. -->

## Solution

<!-- How does this PR solve it? Approach and key design decisions. One line per
bullet; detail belongs in the code or the linked issue. Note stack
relationships and any trade-offs or follow-ups. -->
80 changes: 80 additions & 0 deletions .auto-resolution/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- master

concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

permissions:
contents: read

jobs:
cargo:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: check
command: cargo check --workspace --all-targets --all-features
- name: test
command: cargo nextest run --workspace --all-features --all-targets
- name: clippy
command: cargo clippy --workspace --all-targets --all-features
- name: fmt
command: cargo fmt --all -- --check
- name: examples
command: nu scripts/check-examples.nu

env:
CARGO_INCREMENTAL: "0"

steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@b6e4494ddccc51b56de1189099089a3514a69245
with:
extra-conf: |
accept-flake-config = true
fallback = true

- uses: DeterminateSystems/magic-nix-cache-action@5626df0a8b8f16cb060538f6d3041500a2d10cb0

- name: Cache cargo artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/git/db/
~/.cargo/registry/cache/
~/.cargo/registry/index/
target/
key: cargo-${{ runner.os }}-${{ matrix.name }}-${{ hashFiles('Cargo.lock', '**/Cargo.toml', 'flake.lock', 'flake.nix') }}
restore-keys: |
cargo-${{ runner.os }}-${{ matrix.name }}-

- name: ${{ matrix.name }}
run: nix develop -c ${{ matrix.command }}

hooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@b6e4494ddccc51b56de1189099089a3514a69245
with:
extra-conf: |
accept-flake-config = true
fallback = true

- uses: DeterminateSystems/magic-nix-cache-action@5626df0a8b8f16cb060538f6d3041500a2d10cb0

- name: pre-commit hooks
run: nix develop -c pre-commit run --all-files
10 changes: 10 additions & 0 deletions .auto-resolution/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.direnv/
.sqlx/
.tmp/
target/
.env
.pre-commit-config.yaml
*.db
*.db-shm
*.db-wal
*.log
10 changes: 10 additions & 0 deletions .auto-resolution/.yamlfmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
formatter:
type: basic
retain_line_breaks: true
preserve_quotes: true
scan_folded_as_literal: true
indentless_arrays: false
drop_merge_tag: false
pad_line_comments: 2
line_ending: lf
unicode: false
Loading
Loading