Skip to content

Commit f3b8be6

Browse files
committed
ci: add Manki AI code review configuration (#73)
* chore: add Manki AI code review configuration * fix: pass `claude_code_oauth_token` to Manki action
1 parent 383b306 commit f3b8be6

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/manki.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Manki Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
issue_comment:
7+
types: [created, edited]
8+
pull_request_review:
9+
types: [submitted]
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
issues: write
15+
id-token: write
16+
17+
concurrency:
18+
group: manki-${{ github.event_name }}-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }}
19+
cancel-in-progress: false
20+
21+
jobs:
22+
review:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: xdustinface/manki@v4
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}

.manki.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Manki — AI Code Review Configuration
2+
# https://github.com/xdustinface/manki
3+
4+
auto_review: true
5+
auto_approve: true
6+
7+
exclude_paths:
8+
- "*.lock"
9+
- "fuzz/**"
10+
11+
instructions: |
12+
This is a Rust implementation of the Dash cryptocurrency protocol.
13+
Pay special attention to:
14+
- Consensus-critical code paths — changes here can cause chain splits
15+
- FFI safety for C/Swift bindings in dash-spv-* crates
16+
- Proper error handling — prefer Result over unwrap/expect in library code
17+
- DIP (Dash Improvement Proposal) compliance for protocol changes
18+
- Memory safety in hash/crypto implementations

0 commit comments

Comments
 (0)